mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00: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:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user