Fix: Made port deleteion more robust. Do not rely on IPs of ports only on names. 50/6150/1
authorpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 16 May 2018 11:10:30 +0000 (13:10 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 16 May 2018 11:10:30 +0000 (13:10 +0200)
Bug was discovered during R4 int testing and does only appear in some border cases.

Change-Id: I6e9d4ca0e131486bee3592ceb71101f5a593a357
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
src/emuvim/api/openstack/compute.py

index 6fc4c1b..ce6f636 100755 (executable)
@@ -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