]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
get_vif_ports: ignore non-Interface ports
authorDan Prince <dprince@redhat.com>
Thu, 9 Jul 2015 19:31:13 +0000 (15:31 -0400)
committerDan Prince <dprince@redhat.com>
Fri, 10 Jul 2015 14:47:50 +0000 (10:47 -0400)
commitdfbe804994a576994768c95720b4f0ba53e313d7
treed5bda9f7a6c2fda84d68bb564e46876c4126dba4
parentc499fe501995acd0453cd3e11c082fa4fcde262d
get_vif_ports: ignore non-Interface ports

This patch updates get_vif_ports so that it skips
ports which aren't in the 'Interfaces' table.

This fixes an issue where neutron-ovs-cleanup would
fail if any sort of OVS bond was on the bridge getting
cleaned up.  This is because bonds don't have the same
attributes as ports, and thus fail subsequent ovs-vsctl
queries.

Change-Id: Ic9d30e5916122ce23c5dc8631fbb71115ae8a960
Closes-bug: #1473179
neutron/agent/common/ovs_lib.py
neutron/tests/unit/agent/common/test_ovs_lib.py