From: schillinge Date: Thu, 31 Jan 2019 07:56:46 +0000 (+0100) Subject: Support identical ingress and egress ports in port pairs X-Git-Tag: v6.0.0~35 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=64d1436431fbf61e21bd4cc40ad015e32dbac560;p=osm%2Fvim-emu.git Support identical ingress and egress ports in port pairs Change-Id: Id58c428594b115a5e343a7b2c701f2ddddb89f81 Signed-off-by: schillinge --- diff --git a/src/emuvim/api/openstack/resources/port_chain.py b/src/emuvim/api/openstack/resources/port_chain.py index f712312..7c0a2b0 100644 --- a/src/emuvim/api/openstack/resources/port_chain.py +++ b/src/emuvim/api/openstack/resources/port_chain.py @@ -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