Change-Id: If0e501c218b1ea981caa255b5e217b5118b772b0
Signed-off-by: Tim Rozet <trozet@redhat.com>
try:
output = subprocess.check_output(['ovs-vsctl', 'list-ports', bridge],
stderr=subprocess.STDOUT)
try:
output = subprocess.check_output(['ovs-vsctl', 'list-ports', bridge],
stderr=subprocess.STDOUT)
+ if interface in output.decode('utf-8'):
logging.debug("Interface already attached to bridge")
return
except subprocess.CalledProcessError as e:
logging.debug("Interface already attached to bridge")
return
except subprocess.CalledProcessError as e: