summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apex/network/jumphost.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apex/network/jumphost.py b/apex/network/jumphost.py
index 81562c7a..1afcea72 100644
--- a/apex/network/jumphost.py
+++ b/apex/network/jumphost.py
@@ -90,7 +90,7 @@ def attach_interface_to_ovs(bridge, interface, network):
try:
output = subprocess.check_output(['ovs-vsctl', 'list-ports', bridge],
stderr=subprocess.STDOUT)
- if bridge in output:
+ if interface in output.decode('utf-8'):
logging.debug("Interface already attached to bridge")
return
except subprocess.CalledProcessError as e: