Public bug reported: Currently, when lb agent needs to check if an interface exists on a bridge, it will get all interfaces on the bridge and looks for the interface:
for filename in os.listdir(BRIDGE_INTERFACES_FS): if filename == interface: return True return False when we can directly check os.path.join(BRIDGE_INTERFACE_FS, interface) existence. ** Affects: neutron Importance: Undecided Assignee: Cedric Brandily (cbrandily) Status: New ** Tags: linuxbridge loadimpact low-hanging-fruit -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1509890 Title: Linux bridge agent "interface_exists_on_bridge" can be optimized Status in neutron: New Bug description: Currently, when lb agent needs to check if an interface exists on a bridge, it will get all interfaces on the bridge and looks for the interface: for filename in os.listdir(BRIDGE_INTERFACES_FS): if filename == interface: return True return False when we can directly check os.path.join(BRIDGE_INTERFACE_FS, interface) existence. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1509890/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp