Fix logic issue in OVSQuantumAgent.port_unbound method

Fixes bug 1173463

Change-Id: If2978fc4c38304667f6910085cb220491d236a11
This commit is contained in:
Eugene Nikanorov
2013-04-27 20:43:13 +04:00
parent fb927db0da
commit 7dddca7ebd

View File

@@ -472,13 +472,11 @@ class OVSQuantumAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin):
net_uuid)
return
lvm = self.local_vlan_map[net_uuid]
if lvm.network_type == 'gre':
if self.enable_tunneling:
if vif_id in lvm.vif_ports:
if lvm.network_type == 'gre' and self.enable_tunneling:
# remove inbound unicast flow
self.tun_br.delete_flows(tun_id=lvm.segmentation_id,
dl_dst=lvm.vif_ports[vif_id].vif_mac)
if vif_id in lvm.vif_ports:
del lvm.vif_ports[vif_id]
else:
LOG.info(_('port_unbound: vif_id %s not in local_vlan_map'),