]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Optimize interface_exists_on_bridge
authorCedric Brandily <zzelle@gmail.com>
Mon, 26 Oct 2015 00:19:26 +0000 (09:19 +0900)
committerCedric Brandily <zzelle@gmail.com>
Mon, 26 Oct 2015 01:03:39 +0000 (10:03 +0900)
commit0f471be1de5aadc935c3b48625193dc23360e467
treef60a937434864a370b414274f9a816b00deb83e1
parent44d73d1ad3073958c8d5cce933deedc7e6ea5f83
Optimize interface_exists_on_bridge

Currently interface_exists_on_bridge[1] lists all files in a folder and
searchs for the file associated to the interface.

This change proposes to look for the file existence directly.

[1] neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent

Closes-Bug: #1509890
Change-Id: I23cd1edc92912b35bdc23ba0af2318b86f2cfd48
neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/tests/common/net_helpers.py
neutron/tests/functional/agent/test_l2_lb_agent.py
neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py