mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Adding network_cli support in mlnxos (and removing provider) (#33511)
Signed-off-by: Samer Deeb <samerd@mellanox.com>
This commit is contained in:
parent
e73d3dfe20
commit
48d3cbfc0f
6 changed files with 7 additions and 122 deletions
|
@ -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']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue