mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +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:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user