]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Initialize ancillary_port_info dict as blank in OVS agent
authorIhar Hrachyshka <ihrachys@redhat.com>
Wed, 29 Jul 2015 08:52:59 +0000 (10:52 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Wed, 5 Aug 2015 18:51:09 +0000 (18:51 +0000)
commit3b18aa3e1f4bb6d4d2f1264b37f8d784d57c4a28
treeb721adfa2b2825cd5771ce919d58a8704eea97ff
parentdf35d21141dc4544421ccbff8715ea6da3e03def
Initialize ancillary_port_info dict as blank in OVS agent

The first assignment of ancillary_port_info was from the scan_ancillary_ports
function which could result in an exception and result in ancillary_port_info
being unbound for the port stats scan below.

This patch just initializes ancillary_port_info as an empty dict so the port
stats will always have an input.

Closes-Bug: #1479265
Change-Id: I37084bf27d4c328a7b78ca71cf26813207697361
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py