Add mlnxos_config module (#33356)

* Add new module mlnxos_config

Signed-off-by: Samer Deeb <samerd@mellanox.com>

* Add unit-test for mlnxos_config module

Signed-off-by: Samer Deeb <samerd@mellanox.com>
This commit is contained in:
Samer Deeb 2017-12-01 09:03:02 -08:00 committed by John R Barker
parent addb882138
commit 717b6e7c1a
8 changed files with 624 additions and 7 deletions

View file

@ -29,7 +29,6 @@ from ansible.utils.display import Display
from ansible.module_utils.mlnxos import mlnxos_provider_spec
try:
from __main__ import display
except ImportError:
@ -61,6 +60,8 @@ class ActionModule(_ActionModule):
self._play_context.private_key_file
pc.timeout = int(provider['timeout'] or C.PERSISTENT_COMMAND_TIMEOUT)
pc.become = provider['authorize'] or False
if pc.become:
pc.become_method = 'enable'
pc.become_pass = provider['auth_pass']
display.vvv('using connection plugin %s' %