]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Initialize port_info dict as blank in OVS agent
authorKevin Benton <blak111@gmail.com>
Tue, 28 Jul 2015 23:15:34 +0000 (16:15 -0700)
committerKevin Benton <blak111@gmail.com>
Fri, 31 Jul 2015 10:02:28 +0000 (04:02 -0600)
commit4021fe30a915c5478d1053b08e693c7f5c6270f4
tree3f872b7fe2c9feb117d34510adee1dd3db9d8276
parente6e54f4477347db794e5a62d26d46079515ffcf4
Initialize port_info dict as blank in OVS agent

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

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

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