summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Stygstra <david.stygstra@gmail.com>2016-12-05 17:29:46 -0500
committerAdrian Likins <alikins@redhat.com>2016-12-05 17:29:46 -0500
commit409bce2fa19705578615df0c7559ee20f1412cc3 (patch)
tree93ad1ebc2c90603d65050e211176aabe6e573dab
parent1853e00f2c6e2a96ef2917a094e634f8d545eb75 (diff)
downloadansible-modules-extras-409bce2fa19705578615df0c7559ee20f1412cc3.tar.gz
Fix #3410 (#3411)
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`.
-rw-r--r--network/openvswitch_port.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/network/openvswitch_port.py b/network/openvswitch_port.py
index 52c2d94b..ad7ec086 100644
--- a/network/openvswitch_port.py
+++ b/network/openvswitch_port.py
@@ -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. """