diff --git a/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py b/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py index 6bf1e05d23..e974ef2dc2 100755 --- a/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py +++ b/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py @@ -564,7 +564,7 @@ class LinuxBridgeManager: return (agent_ip in entries and mac in entries) def add_fdb_ip_entry(self, mac, ip, interface): - utils.execute(['ip', 'neigh', 'add', ip, 'lladdr', mac, + utils.execute(['ip', 'neigh', 'replace', ip, 'lladdr', mac, 'dev', interface, 'nud', 'permanent'], root_helper=self.root_helper, check_exit_code=False) diff --git a/neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py b/neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py index 0687d023ec..629ab338cf 100644 --- a/neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py +++ b/neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py @@ -863,7 +863,7 @@ class TestLinuxBridgeRpcCallbacks(base.BaseTestCase): 'dev', 'vxlan-1', 'dst', 'agent_ip'], root_helper=self.root_helper, check_exit_code=False), - mock.call(['ip', 'neigh', 'add', 'port_ip', 'lladdr', + mock.call(['ip', 'neigh', 'replace', 'port_ip', 'lladdr', 'port_mac', 'dev', 'vxlan-1', 'nud', 'permanent'], root_helper=self.root_helper, check_exit_code=False), @@ -944,7 +944,7 @@ class TestLinuxBridgeRpcCallbacks(base.BaseTestCase): self.lb_rpc.fdb_update(None, fdb_entries) expected = [ - mock.call(['ip', 'neigh', 'add', 'port_ip_2', 'lladdr', + mock.call(['ip', 'neigh', 'replace', 'port_ip_2', 'lladdr', 'port_mac', 'dev', 'vxlan-1', 'nud', 'permanent'], root_helper=self.root_helper, check_exit_code=False),