]> 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)
committerKyle Mestery <kmestery@cisco.com>
Thu, 29 May 2014 20:41:31 +0000 (20:41 +0000)
commitb5d596877f538a84e8336b45026b552df8e53be6
tree40909f6ee6c697ae57415ad0a6a1798a5b478e76
parent2f51406748d029b3689218a9fcd524fcafc7fc0f
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
neutron/agent/linux/ovs_lib.py
neutron/tests/unit/agent/linux/test_ovs_lib.py