Adding network_cli support in mlnxos (and removing provider) (#33511)

Signed-off-by: Samer Deeb <samerd@mellanox.com>
This commit is contained in:
Samer Deeb 2017-12-06 06:22:15 -08:00 committed by John R Barker
commit 48d3cbfc0f
6 changed files with 7 additions and 122 deletions

View file

@ -145,7 +145,7 @@ from ansible.module_utils.network.common.parsing import Conditional
from ansible.module_utils.network.common.utils import ComplexList
from ansible.module_utils.six import string_types
from ansible.module_utils.network.mlnxos.mlnxos import mlnxos_argument_spec, run_commands
from ansible.module_utils.network.mlnxos.mlnxos import run_commands
def to_lines(stdout):
@ -190,8 +190,6 @@ def main():
interval=dict(default=1, type='int')
)
argument_spec.update(mlnxos_argument_spec)
module = AnsibleModule(argument_spec=argument_spec,
supports_check_mode=True)

View file

@ -154,7 +154,7 @@ backup_path:
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.network.common.config import NetworkConfig, dumps
from ansible.module_utils.network.mlnxos.mlnxos import mlnxos_argument_spec, get_config, \
from ansible.module_utils.network.mlnxos.mlnxos import get_config, \
load_config, run_commands
@ -230,8 +230,6 @@ def main():
save=dict(type='bool', default=False),
)
argument_spec.update(mlnxos_argument_spec)
mutually_exclusive = [('lines', 'src'), ]
required_if = [('match', 'strict', ['lines']),