mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07: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:
parent
7f59f7d80e
commit
5e6b2495c0
8 changed files with 500 additions and 132 deletions
|
@ -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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue