From: Aaron Rosen Date: Fri, 13 Jul 2012 23:01:34 +0000 (-0400) Subject: ovs-agent exception non-existent ports X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a74b3a55ac6d239a04bb6cfe3ba0e1ad825450bf;p=openstack-build%2Fneutron-build.git ovs-agent exception non-existent ports Bug #1019491 Change-Id: Ica3aa3f6c81e4fd062b752867487c89515fb9446 --- diff --git a/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py b/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py index be46942d8..8fae799fe 100755 --- a/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py +++ b/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py @@ -346,7 +346,8 @@ class OVSQuantumTunnelAgent(object): self.int_br.set_db_attribute("Port", port.port_name, "tag", str(lvm.vlan)) - self.int_br.delete_flows(in_port=port.ofport) + if int(port.ofport) != -1: + self.int_br.delete_flows(in_port=port.ofport) def port_unbound(self, port, net_uuid): '''Unbind port.