From 9679e9a33c8667d3da5fb0aa7ddb0700670b4baf Mon Sep 17 00:00:00 2001 From: peusterm Date: Wed, 16 May 2018 13:10:30 +0200 Subject: [PATCH] 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 --- src/emuvim/api/openstack/compute.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.25.1