Add ospf net type (#45904)

* Added ospf network type option to nxos_interface_ospf module

* Added documentation and example for the 'network' parameter

* adding version
This commit is contained in:
Dan
2018-09-25 07:08:39 +01:00
committed by Trishna Guha
parent d5f8738bf2
commit a6c20488d3
3 changed files with 28 additions and 1 deletions

View File

@@ -55,6 +55,7 @@
passive_interface: true
hello_interval: 15
dead_interval: 75
network: point-to-point
provider: "{{ connection }}"
state: present
register: result
@@ -80,6 +81,7 @@
passive_interface: false
hello_interval: 17
dead_interval: 70
network: broadcast
provider: "{{ connection }}"
state: present
register: result

View File

@@ -54,3 +54,5 @@ class TestNxosInterfaceOspfModule(TestNxosModule):
def test_loopback_interface_failed(self):
set_module_args(dict(interface='loopback0', ospf=1, area=0, passive_interface=True))
self.execute_module(failed=True, changed=False)
set_module_args(dict(interface='loopback0', ospf=1, area=0, network='broadcast'))
self.execute_module(failed=True, changed=False)