Merge "lb-agent: use 'replace' instead of 'add' with 'bridge fdb'" into stable/juno
This commit is contained in:
commit
0494eef885
|
@ -625,7 +625,8 @@ class LinuxBridgeManager:
|
|||
for mac, ip in ports:
|
||||
if mac != constants.FLOODING_ENTRY[0]:
|
||||
self.add_fdb_ip_entry(mac, ip, interface)
|
||||
self.add_fdb_bridge_entry(mac, agent_ip, interface)
|
||||
self.add_fdb_bridge_entry(mac, agent_ip, interface,
|
||||
operation="replace")
|
||||
elif self.vxlan_mode == lconst.VXLAN_UCAST:
|
||||
if self.fdb_bridge_entry_exists(mac, interface):
|
||||
self.add_fdb_bridge_entry(mac, agent_ip, interface,
|
||||
|
|
|
@ -994,7 +994,7 @@ class TestLinuxBridgeRpcCallbacks(base.BaseTestCase):
|
|||
'port_mac', 'dev', 'vxlan-1', 'nud', 'permanent'],
|
||||
root_helper=self.root_helper,
|
||||
check_exit_code=False),
|
||||
mock.call(['bridge', 'fdb', 'add', 'port_mac', 'dev',
|
||||
mock.call(['bridge', 'fdb', 'replace', 'port_mac', 'dev',
|
||||
'vxlan-1', 'dst', 'agent_ip'],
|
||||
root_helper=self.root_helper,
|
||||
check_exit_code=False),
|
||||
|
|
Loading…
Reference in New Issue