mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
* adding the desired state config to the new vrf fixes #32111 * fix default vrf initial configured * add unit test
This commit is contained in:
committed by
Ganesh Nalawade
parent
4faf4ff215
commit
2c99cbc874
@@ -134,6 +134,11 @@ class TestEosEapiModule(TestEosModule):
|
||||
commands = ['management api http-commands', 'vrf test', 'no shutdown']
|
||||
self.start_unconfigured(changed=True, commands=commands)
|
||||
|
||||
def test_eos_eapi_change_from_default_vrf(self):
|
||||
set_module_args(dict(vrf='test'))
|
||||
commands = ['management api http-commands', 'vrf test', 'no shutdown']
|
||||
self.start_configured(changed=True, commands=commands)
|
||||
|
||||
def test_eos_eapi_vrf_missing(self):
|
||||
set_module_args(dict(vrf='missing'))
|
||||
self.start_unconfigured(failed=True)
|
||||
|
||||
Reference in New Issue
Block a user