1
0
Fork 0
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:
Trishna Guha 2017-12-28 16:41:09 +05:30 committed by GitHub
parent a3c185bfa8
commit 80ba767204
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 670 additions and 1503 deletions

View file

@ -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'])