|
|
|
@ -134,7 +134,7 @@ class TestEosEapiModule(TestEosModule):
|
|
|
|
|
|
|
|
|
|
|
|
def test_eos_eapi_vrf(self):
|
|
|
|
def test_eos_eapi_vrf(self):
|
|
|
|
set_module_args(dict(vrf='test'))
|
|
|
|
set_module_args(dict(vrf='test'))
|
|
|
|
commands = ['management api http-commands', 'vrf test', 'no shutdown']
|
|
|
|
commands = ['management api http-commands', 'no shutdown', 'vrf test', 'no shutdown']
|
|
|
|
self.start_unconfigured(changed=True, commands=commands)
|
|
|
|
self.start_unconfigured(changed=True, commands=commands)
|
|
|
|
|
|
|
|
|
|
|
|
def test_eos_eapi_change_from_default_vrf(self):
|
|
|
|
def test_eos_eapi_change_from_default_vrf(self):
|
|
|
|
@ -142,6 +142,10 @@ class TestEosEapiModule(TestEosModule):
|
|
|
|
commands = ['management api http-commands', 'vrf test', 'no shutdown']
|
|
|
|
commands = ['management api http-commands', 'vrf test', 'no shutdown']
|
|
|
|
self.start_configured(changed=True, commands=commands)
|
|
|
|
self.start_configured(changed=True, commands=commands)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_eos_eapi_default(self):
|
|
|
|
|
|
|
|
set_module_args(dict())
|
|
|
|
|
|
|
|
self.start_configured(changed=False, commands=[])
|
|
|
|
|
|
|
|
|
|
|
|
def test_eos_eapi_vrf_missing(self):
|
|
|
|
def test_eos_eapi_vrf_missing(self):
|
|
|
|
set_module_args(dict(vrf='missing'))
|
|
|
|
set_module_args(dict(vrf='missing'))
|
|
|
|
self.start_unconfigured(failed=True)
|
|
|
|
self.start_unconfigured(failed=True)
|
|
|
|
|