]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
ovs-agent exception non-existent ports
authorAaron Rosen <arosen@nicira.com>
Fri, 13 Jul 2012 23:01:34 +0000 (19:01 -0400)
committerAaron Rosen <arosen@nicira.com>
Fri, 13 Jul 2012 23:03:53 +0000 (19:03 -0400)
Bug #1019491

Change-Id: Ica3aa3f6c81e4fd062b752867487c89515fb9446

quantum/plugins/openvswitch/agent/ovs_quantum_agent.py

index be46942d820e4432f854eae795e6d46b678e0e61..8fae799fed010664abed6ef74b8f29c47e7feb29 100755 (executable)
@@ -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.