]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fixing lost vlan ids on interfaces
authorYves-Gwenael Bourhis <yves-gwenael.bourhis@cloudwatt.com>
Mon, 13 Jan 2014 17:27:27 +0000 (18:27 +0100)
committerYves-Gwenael Bourhis <yves-gwenael.bourhis@cloudwatt.com>
Tue, 11 Mar 2014 10:32:46 +0000 (11:32 +0100)
commit60cb0911712ad11688b4d09e5c01ac39c49f5aea
tree5d8823559b669b73d5cbd538e279b9865b054388
parente17a90347de2cc4eabf4a26b80c7fa4cb639e044
Fixing lost vlan ids on interfaces

Sometimes a vm gets its tap interface unset and reset too fast to be caught in
an agent loop, and its vlan tag was not reset.

We now detect if an interface loses its vlan tag, and if it happens the
interface will be reconfigured.

Since the TAG ID is only available via the "Port" table (in the 'tag' column),
we couldn't reuse the get_vif_port_set() method's run_vsctl call which queries
the "Interface" table, and needed a specific run_vsct call to the "Port" table
in the new get_port_tag_dict() method.

Change-Id: I7f59e2c1e757c28dae35c44ebfad9d764ae1d3c5
Closes-Bug: 1240849
neutron/agent/linux/ovs_lib.py
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_lib.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py