ovs-agent exception non-existent ports

Bug #1019491

Change-Id: Ica3aa3f6c81e4fd062b752867487c89515fb9446
This commit is contained in:
Aaron Rosen 2012-07-13 19:01:34 -04:00
parent ffac2b42e5
commit 08229158be

View File

@ -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.