mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Update slxos_vlan for new SLX-OS versions, linting fixes (#52956)
This commit is contained in:
committed by
John R Barker
parent
4ea09d4d96
commit
b92d81cc01
@@ -22,7 +22,6 @@ __metaclass__ = type
|
||||
import os
|
||||
import json
|
||||
|
||||
from ansible.module_utils import basic
|
||||
from units.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase
|
||||
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
from units.compat.mock import patch
|
||||
from ansible.modules.network.ironware import ironware_command
|
||||
from units.modules.utils import set_module_args
|
||||
from ansible.modules.network.ironware import ironware_command
|
||||
from .ironware_module import TestIronwareModule, load_fixture
|
||||
|
||||
|
||||
|
||||
@@ -20,12 +20,10 @@
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
import json
|
||||
|
||||
from units.compat.mock import patch
|
||||
from units.modules.utils import set_module_args
|
||||
from ansible.modules.network.ironware import ironware_config
|
||||
from .ironware_module import TestIronwareModule, load_fixture
|
||||
from units.modules.utils import set_module_args
|
||||
|
||||
|
||||
class TestIronwareConfigModule(TestIronwareModule):
|
||||
@@ -143,7 +141,7 @@ class TestIronwareConfigModule(TestIronwareModule):
|
||||
set_module_args(dict(lines=lines, match='none'))
|
||||
self.execute_module(changed=True, updates=lines)
|
||||
|
||||
def test_ironware_config_match_none(self):
|
||||
def test_ironware_config_match_none_parents(self):
|
||||
lines = ['ip address 1.2.3.4 255.255.255.0', 'port-name test string']
|
||||
parents = ['interface ethernet 1/1']
|
||||
set_module_args(dict(lines=lines, parents=parents, match='none'))
|
||||
|
||||
@@ -22,9 +22,9 @@ __metaclass__ = type
|
||||
import json
|
||||
|
||||
from units.compat.mock import patch
|
||||
from .ironware_module import TestIronwareModule, load_fixture
|
||||
from ansible.modules.network.ironware import ironware_facts
|
||||
from units.modules.utils import set_module_args
|
||||
from ansible.modules.network.ironware import ironware_facts
|
||||
from .ironware_module import TestIronwareModule, load_fixture
|
||||
|
||||
|
||||
class TestIronwareFacts(TestIronwareModule):
|
||||
|
||||
Reference in New Issue
Block a user