Handle empty bridge case in OVSBridge.get_ports_attributes
Before this patch, get_ports_attributes would call
get_port_name_list. In the case of an empty bridge,
get_port_name_list would return an empty list and feed that
in to ovsdb.db_list, thereby returning all ports instead of
no ports.
Reviewed: https:/ /review. openstack. org/227982 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=9c3e3a0fcee 012ee0187b19931 d63927379a621f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9c3e3a0fcee012e e0187b19931d639 27379a621f
Author: Assaf Muller <email address hidden>
Date: Fri Sep 25 14:20:21 2015 -0400
Handle empty bridge case in OVSBridge. get_ports_ attributes
Before this patch, get_ports_ attributes would call port_name_ list. In the case of an empty bridge, port_name_ list would return an empty list and feed that
get_
get_
in to ovsdb.db_list, thereby returning all ports instead of
no ports.
Change-Id: I5a91028c59d719 43b7cef86a94fa6 ab1cc3d667c
Closes-Bug: #1499821