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:
Trishna Guha
2018-01-08 10:10:34 +05:30
committed by GitHub
parent 7f59f7d80e
commit 5e6b2495c0
8 changed files with 500 additions and 132 deletions

View File

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