]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Handle errors from run_ofctl() when dumping flows
authorKyle Mestery <kmestery@cisco.com>
Thu, 29 May 2014 13:07:55 +0000 (13:07 +0000)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 15:06:55 +0000 (23:06 +0800)
commitfc13a008ec469d411d083aa2898c52b6057cea11
tree32fc8bf992784a27357e2482d0ce90fd5986eafc
parentc3664b5e171a4d30b8a6f0ba89670d39ea3bc34e
Handle errors from run_ofctl() when dumping flows

The function dump_flows_for_table() calls run_ofctl(). If this occurs during an OVS
restart, run_ofctl() will return None. dump_flows_for_table() needs to realize this
and not try to call splitlines() on a None object.

Change-Id: Ide26028656e634113f955dfc89569149d4d5b306
Closes-Bug: #1324659
(cherry picked from commit b5d596877f538a84e8336b45026b552df8e53be6)
neutron/agent/linux/ovs_lib.py
neutron/tests/unit/openvswitch/test_ovs_lib.py