]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Handle empty bridge case in OVSBridge.get_ports_attributes
authorAssaf Muller <amuller@redhat.com>
Fri, 25 Sep 2015 18:20:21 +0000 (14:20 -0400)
committerAssaf Muller <amuller@redhat.com>
Sun, 27 Sep 2015 13:41:17 +0000 (09:41 -0400)
commit9c3e3a0fcee012ee0187b19931d63927379a621f
treeddcf7d754d06c5d9f223d3bcbbb3f1cde58eee22
parentb10e3bc46fa5f5e870c84b65b672e2fb69cc2b4b
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.

Change-Id: I5a91028c59d71943b7cef86a94fa6ab1cc3d667c
Closes-Bug: #1499821
neutron/agent/common/ovs_lib.py
neutron/tests/functional/agent/test_ovs_lib.py