mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-03 06:49:10 -07:00
fix mtu check nxos_interface (#32880)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
c3636108bc
commit
c40de24e9c
2 changed files with 5 additions and 3 deletions
|
@ -62,12 +62,14 @@ class TestNxosInterfaceModule(TestNxosModule):
|
|||
def test_nxos_interface_up(self):
|
||||
set_module_args(dict(interface='loopback0'))
|
||||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(result['commands'], ['interface loopback0', 'no shutdown'])
|
||||
self.assertIn('interface loopback0', result['commands'])
|
||||
self.assertIn('no shutdown', result['commands'])
|
||||
|
||||
def test_nxos_interface_down(self):
|
||||
set_module_args(dict(interface='loopback0', admin_state='down'))
|
||||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(result['commands'], ['interface loopback0', 'shutdown'])
|
||||
self.assertIn('interface loopback0', result['commands'])
|
||||
self.assertIn('shutdown', result['commands'])
|
||||
|
||||
def test_nxos_interface_delete(self):
|
||||
set_module_args(dict(interface='loopback0', state='absent'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue