]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Do not run "ovs-ofctl add-flow" with an invalid in_port
authorArata Notsu <notsu@virtualtech.jp>
Fri, 25 Oct 2013 07:34:22 +0000 (16:34 +0900)
committerArata Notsu <notsu@virtualtech.jp>
Tue, 12 Nov 2013 05:34:47 +0000 (14:34 +0900)
commitedddad586332335578477df464be13f5a2b4a45f
tree9fce734c4773290348588bcc2e43699b9c7b2157
parent30ba5b38fe320a5009a909828219eac11ac06625
Do not run "ovs-ofctl add-flow" with an invalid in_port

Since ofport is a string, we have to convert it to integer to
check it expresses a negative number or not.

Also unit tests are added/corrected.

Change-Id: If85595f1b8ecb40ea41edda52706fb1bd41cb1ab
Related-Bug: 1238445
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_tunnel.py