mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-24 13:04:00 -07:00
fix nxos_hsrp (#27306)
* fix nxos_hsrp Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * modify nxos_hsrp test Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
5fbd42eca5
commit
41ce724801
2 changed files with 10 additions and 8 deletions
|
|
@ -46,15 +46,16 @@ class TestNxosHsrpModule(TestNxosModule):
|
|||
|
||||
def test_nxos_hsrp(self):
|
||||
set_module_args(dict(group='10',
|
||||
vip='192.0.2.2',
|
||||
vip='192.0.2.2/8',
|
||||
priority='150',
|
||||
interface='Ethernet1/2',
|
||||
preempt='enabled',
|
||||
host='192.0.2.1'))
|
||||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(sorted(result['commands']), sorted(['interface ethernet1/2',
|
||||
self.assertEqual(sorted(result['commands']), sorted(['config t',
|
||||
'interface ethernet1/2',
|
||||
'hsrp version 2',
|
||||
'hsrp 10',
|
||||
'priority 150',
|
||||
'ip 192.0.2.2',
|
||||
'ip 192.0.2.2/8',
|
||||
'preempt']))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue