]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Validate interface_mappings on Linux bridge init
authorKevin Benton <blak111@gmail.com>
Thu, 30 Jul 2015 00:28:50 +0000 (17:28 -0700)
committerKevin Benton <blak111@gmail.com>
Wed, 5 Aug 2015 20:41:35 +0000 (13:41 -0700)
commit58e388261313025d1e713d4c17c99db12404b75f
tree8222e6407903870428904ffb3717ebea740a46cc
parentde2dd7aafeb4de49103d48e6a56083173bd40973
Validate interface_mappings on Linux bridge init

Verify that the interfaces actually exist that are defined in
interface_mappings on Linux bridge startup. If they do not, exit
immediately similar to how OVS handles incorrect bridge_mappings.

This prevents an unfriendly exception in the rpc setup routine.

Change-Id: I050b9b66aa0b27f148e67123eedf29fe332e6f65
Closes-Bug: #1470584
neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/tests/functional/agent/linux/test_ip_lib.py
neutron/tests/functional/agent/test_l2_lb_agent.py [new file with mode: 0644]
neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py