|
|
@ -23,7 +23,6 @@
|
|
|
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# along with this software. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
import syslog
|
|
|
|
import syslog
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
---
|
|
|
|
---
|
|
|
@ -243,14 +242,10 @@ def main():
|
|
|
|
'timeout': {'default': 5, 'type': 'int'},
|
|
|
|
'timeout': {'default': 5, 'type': 'int'},
|
|
|
|
'set': {'required': False, 'default': None},
|
|
|
|
'set': {'required': False, 'default': None},
|
|
|
|
'external_ids': {'default': {}, 'required': False},
|
|
|
|
'external_ids': {'default': {}, 'required': False},
|
|
|
|
'syslogging': {'required': False, 'type': "bool", 'default': True}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
supports_check_mode=True,
|
|
|
|
supports_check_mode=True,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if (module.params["syslogging"]):
|
|
|
|
|
|
|
|
syslog.openlog('ansible-%s' % os.path.basename(__file__))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
port = OVSPort(module)
|
|
|
|
port = OVSPort(module)
|
|
|
|
if module.check_mode:
|
|
|
|
if module.check_mode:
|
|
|
|
port.check()
|
|
|
|
port.check()
|
|
|
|