]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Check that VXLAN is not in use in LB VXLAN check
authorKevin Benton <blak111@gmail.com>
Wed, 29 Jul 2015 23:32:43 +0000 (16:32 -0700)
committerKevin Benton <blak111@gmail.com>
Fri, 31 Jul 2015 10:04:24 +0000 (04:04 -0600)
commita8d1b7218038025d066472cfb9c17037f31bf791
tree390a0047d151bf9f04c8430a13b05c69e3b08a93
parent50d662d95a03fa7986c0ddadb386cad12590c0ab
Check that VXLAN is not in use in LB VXLAN check

The Linux bridge VXLAN supported check was only checking that the
test interface didn't exist instead of checking that both the interface
and the VXLAN didn't exist. This caused it to fail on startup if
a VXLAN interface existed under a different name using one of the
VXLANs that the agent tried to test support with.

This patch adds a check to ensure that the VXLAN ID isn't in use as well.

Closes-Bug: #1470579
Change-Id: I3a91ce54da86e319b7a4485dfae3fc99885383d4
neutron/agent/linux/ip_lib.py
neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/tests/functional/agent/linux/test_ip_lib.py
neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py