mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Adding network_cli support in mlnxos (and removing provider) (#33511)
Signed-off-by: Samer Deeb <samerd@mellanox.com>
This commit is contained in:
committed by
John R Barker
parent
e73d3dfe20
commit
48d3cbfc0f
@@ -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)
|
||||
|
||||
|
||||
@@ -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']),
|
||||
|
||||
Reference in New Issue
Block a user