Support identical ingress and egress ports in port pairs 57/7157/5
authorschillinge <ablu@mail.uni-paderborn.de>
Thu, 31 Jan 2019 07:56:46 +0000 (08:56 +0100)
committerschillinge <ablu@mail.uni-paderborn.de>
Wed, 6 Feb 2019 09:17:03 +0000 (10:17 +0100)
Change-Id: Id58c428594b115a5e343a7b2c701f2ddddb89f81
Signed-off-by: schillinge <ablu@mail.uni-paderborn.de>
src/emuvim/api/openstack/resources/port_chain.py

index f712312..7c0a2b0 100644 (file)
@@ -73,7 +73,7 @@ class PortChain(object):
                 for server in compute.computeUnits.values():
                     if port_pair.ingress.name in server.port_names or port_pair.ingress.id in server.port_names:
                         server_ingress = server
-                    elif port_pair.egress.name in server.port_names or port_pair.egress.id in server.port_names:
+                    if port_pair.egress.name in server.port_names or port_pair.egress.id in server.port_names:
                         server_egress = server
 
                 # TODO: Not sure, if this should throw an error