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:
Trishna Guha 2017-07-26 11:38:55 +05:30 committed by GitHub
commit 41ce724801
2 changed files with 10 additions and 8 deletions

View file

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