mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-03 00:58:53 +00:00
Convert nxos_interface to DI (#34240)
* Convert nxos_interface to DI Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Add integration test Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * commit for ganeshrn's comment Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
a3c185bfa8
commit
80ba767204
9 changed files with 670 additions and 1503 deletions
|
|
@ -73,8 +73,3 @@ class TestNxosInterfaceModule(TestNxosModule):
|
|||
set_module_args(dict(interface='loopback0', state='absent'))
|
||||
result = self.execute_module(changed=False)
|
||||
self.assertEqual(result['commands'], [])
|
||||
|
||||
def test_nxos_interface_mtu_change(self):
|
||||
set_module_args(dict(interface='Ethernet2/5', mtu=1606, state='present'))
|
||||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(result['commands'], ['interface Ethernet2/5', 'mtu 1606', 'no shutdown'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue