]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Check for missing network in _bind_devices
authorKevin Benton <blak111@gmail.com>
Sun, 3 May 2015 06:10:52 +0000 (23:10 -0700)
committerKevin Benton <kevinbenton@buttewifi.com>
Thu, 7 May 2015 22:56:56 +0000 (22:56 +0000)
commit3a1175b88a436eecf00b8f04e5cc9f5cbce3ee06
tree36b777b224e3685d15e728cf9ca8cb4b573b6af1
parentd3fcb16050a21dd19069796a5c2f8f4953acafb0
Check for missing network in _bind_devices

_bind_devices was making the assumption that the ports it
was operating had local VLAN map entries for their network.
This wasn't the case when a network was deleted right before
_bind_ports was called because the VLAN was reclaimed.

This patch just checks to see if the the network ID has an entry
in the map. If not, it skips the port. The port will be handled
on the next scan_ports iteration when the agent will discover that
the port is no longer defined on the plugin and it will be placed
in the DEAD vlan.

Change-Id: Ica51d727aceb41848fec0f4edbd16916365941ee
Closes-Bug: #1452903
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/openvswitch/agent/test_ovs_neutron_agent.py