mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Convert nxos_vrf to DI module (#34274)
* Convert nxos_vrf to DI module Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Add purge example and improve logic Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * revert version_added for rd param Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * update test to use network_cli Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -59,7 +59,7 @@ class TestNxosVrfModule(TestNxosModule):
|
||||
|
||||
def test_nxos_vrf_present(self):
|
||||
set_module_args(dict(vrf='ntc', state='present', admin_state='up'))
|
||||
self.execute_module(changed=True, commands=['vrf context ntc', 'no shutdown'])
|
||||
self.execute_module(changed=True, commands=['vrf context ntc', 'no shutdown', 'exit'])
|
||||
|
||||
def test_nxos_vrf_present_no_change(self):
|
||||
set_module_args(dict(vrf='management', state='present', admin_state='up'))
|
||||
|
||||
Reference in New Issue
Block a user