mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
fix nxos_overlay_global idempotence (#28150)
* fix nxos_overlay_global idempotence Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * modify nxos_overlay_global unittest Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
a8b7f2a7e2
commit
60ce6438e3
3 changed files with 11 additions and 6 deletions
|
@ -0,0 +1 @@
|
|||
fabric forwarding anycast-gateway-mac 000B.000B.000B
|
|
@ -42,9 +42,10 @@ class TestNxosOverlayGlobalModule(TestNxosModule):
|
|||
self.mock_get_config.stop()
|
||||
|
||||
def load_fixtures(self, commands=None, device=''):
|
||||
self.get_config.return_value = load_fixture('', 'nxos_overlay_global_config.cfg')
|
||||
self.load_config.return_value = None
|
||||
|
||||
def test_nxos_overlay_global_up(self):
|
||||
set_module_args(dict(anycast_gateway_mac="b.b.b"))
|
||||
set_module_args(dict(anycast_gateway_mac="a.a.a"))
|
||||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(result['commands'], ['fabric forwarding anycast-gateway-mac 000B.000B.000B'])
|
||||
self.assertEqual(result['commands'], ['fabric forwarding anycast-gateway-mac 000A.000A.000A'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue