]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix ovs agent restore local_vlan_map failed
authorshihanzhang <shihanzhang@huawei.com>
Tue, 26 May 2015 01:29:58 +0000 (09:29 +0800)
committershihanzhang <shihanzhang@huawei.com>
Fri, 29 May 2015 04:11:51 +0000 (12:11 +0800)
commitc9fcbc2e7758acf08867db9a7bc89685cd916bbb
tree098baa6b9998a56d6cb5148a72ae6351b1887d42
parent8bb29087553da8d1d2d620e5c12e2f336e971b31
Fix ovs agent restore local_vlan_map failed

when ovs agent restart, it will restore the local_vlan_map, but in
some condition, if a device does not be set tag in ovsdb, the function
'db_get_val("Port", port.port_name, "tag")' will return a empty list,
it does not need 'provision_local_vlan' for this device.

Change-Id: I70ed30e6ea5d13e6f14bb41c957320cc21dbca1b
Closes-bug: #1458709
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/openvswitch/agent/test_ovs_neutron_agent.py