Rel240/fix nxos pim interface (#29885)

* fix nxos_pim_interface

* Add integration test coverage and fix unit test

* Add clarifying comments

* Make ansibot happy
This commit is contained in:
Mike Wiebe 2017-09-14 16:36:32 -04:00 committed by Nathaniel Case
commit 173c41aefe
12 changed files with 228 additions and 37 deletions

View file

@ -62,12 +62,12 @@ class TestNxosIPInterfaceModule(TestNxosModule):
self.run_commands.side_effect = load_from_file
def test_nxos_pim_interface_present(self):
set_module_args(dict(interface='eth2/1', dr_prio=10, hello_interval=40, sparse=True, border=True))
set_module_args(dict(interface='eth2/1', dr_prio=10, hello_interval=40, sparse=True, border=False))
self.execute_module(
changed=True,
commands=[
'interface eth2/1', 'ip pim dr-priority 10', 'ip pim hello-interval 40000',
'ip pim sparse-mode', 'ip pim border']
'ip pim sparse-mode', 'no ip pim border']
)
def test_nxos_pim_interface_jp(self):