A port with the same name as the bridge is implicitly created for every
bridge, but it doesn't show in in `ovs-vsctl list-ports BRIDGE`.
This commit is contained in:
David Stygstra
2016-12-05 17:29:46 -05:00
committed by Matt Clay
parent 7d8d830aee
commit 5454c562e9

View File

@@ -159,7 +159,7 @@ class OVSPort(object):
if rtc != 0:
self.module.fail_json(msg=err)
return any(port.rstrip() == self.port for port in out.split('\n'))
return any(port.rstrip() == self.port for port in out.split('\n')) or self.port == self.bridge
def set(self, set_opt):
""" Set attributes on a port. """