From: peusterm Date: Wed, 16 May 2018 11:10:30 +0000 (+0200) Subject: Fix: Made port deleteion more robust. Do not rely on IPs of ports only on names. X-Git-Tag: v4.0.1~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F50%2F6150%2F1;p=osm%2Fvim-emu.git Fix: Made port deleteion more robust. Do not rely on IPs of ports only on names. Bug was discovered during R4 int testing and does only appear in some border cases. Change-Id: I6e9d4ca0e131486bee3592ceb71101f5a593a357 Signed-off-by: peusterm --- diff --git a/src/emuvim/api/openstack/compute.py b/src/emuvim/api/openstack/compute.py index 6fc4c1b..ce6f636 100755 --- a/src/emuvim/api/openstack/compute.py +++ b/src/emuvim/api/openstack/compute.py @@ -732,8 +732,7 @@ class OpenstackCompute(object): my_links = self.dc.net.links for link in my_links: - if str(link.intf1) == port.intf_name and \ - str(link.intf1.ip) == port.ip_address.split('/')[0]: + if str(link.intf1) == port.intf_name: self._remove_link(link.intf1.node.name, link) break