]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
lb-agent: use 'replace' instead of 'add' with 'bridge fdb'
authorDarragh O'Reilly <darragh.oreilly@hp.com>
Tue, 17 Mar 2015 16:03:51 +0000 (16:03 +0000)
committerDarragh O'Reilly <darragh.oreilly@hp.com>
Wed, 25 Mar 2015 11:33:59 +0000 (11:33 +0000)
commit1476ee63ad9251d8956f6c3c9aece18c351a3ba9
tree4460b8d19fe571a9b06096d408de0dcb09a5155c
parentb5f7cc0d7d3823543ce3510f75a8ac2ced552f6a
lb-agent: use 'replace' instead of 'add' with 'bridge fdb'

l2pop on the linuxbridge agent can fail to add permanent entries
because the 'bridge fdb add' command fails if a temporary entry
exists. This patch uses 'replace' which always works.

Closes-Bug: 1367999
Change-Id: I4371f508ad23d96de950634b4a90218ea474f3f0
neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py