From 64d1436431fbf61e21bd4cc40ad015e32dbac560 Mon Sep 17 00:00:00 2001 From: schillinge Date: Thu, 31 Jan 2019 08:56:46 +0100 Subject: [PATCH] Support identical ingress and egress ports in port pairs Change-Id: Id58c428594b115a5e343a7b2c701f2ddddb89f81 Signed-off-by: schillinge --- src/emuvim/api/openstack/resources/port_chain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1