mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
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:
parent
8a2f069468
commit
173c41aefe
12 changed files with 228 additions and 37 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue