mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-08 17:24:12 +00:00
fix nxos_vrf_af nxapi & cli (#27307)
* fix nxapi failure #27142 Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * fix nxos_vrf_af nxapi and cli Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
87d434ed68
commit
a49c419651
2 changed files with 10 additions and 24 deletions
|
|
@ -51,10 +51,7 @@ class TestNxosVrfafModule(TestNxosModule):
|
|||
set_module_args(dict(vrf='ntc', afi='ipv4', safi='unicast', state='present'))
|
||||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(sorted(result['commands']), sorted(['vrf context ntc',
|
||||
'address-family ipv4 unicast',
|
||||
'afi ipv4',
|
||||
'vrf ntc',
|
||||
'safi unicast']))
|
||||
'address-family ipv4 unicast']))
|
||||
|
||||
def test_nxos_vrf_af_absent(self):
|
||||
set_module_args(dict(vrf='ntc', afi='ipv4', safi='unicast', state='absent'))
|
||||
|
|
@ -66,7 +63,4 @@ class TestNxosVrfafModule(TestNxosModule):
|
|||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(sorted(result['commands']), sorted(['vrf context ntc',
|
||||
'address-family ipv4 unicast',
|
||||
'afi ipv4',
|
||||
'route-target both auto evpn',
|
||||
'vrf ntc',
|
||||
'safi unicast']))
|
||||
'route-target both auto evpn']))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue