ansible / ansible.builtin / v2.7.16 / module / nxos_interface_ospf Manages configuration of an OSPF interface instance. | "added in version" 2.2 of ansible.builtin" Authors: Gabriele Gerbino (@GGabriele) preview | supported by networkansible.builtin.nxos_interface_ospf (v2.7.16) — module
pip
Install with pip install ansible==2.7.16
Manages configuration of an OSPF interface instance.
- nxos_interface_ospf: interface: ethernet1/32 ospf: 1 area: 1 cost: default
area: description: - Ospf area associated with this cisco_interface_ospf instance. Valid values are a string, formatted as an IP address (i.e. "0.0.0.0") or as an integer. required: true cost: description: - The cost associated with this cisco_interface_ospf instance. ospf: description: - Name of the ospf instance. required: true state: choices: - present - absent default: present description: - Determines whether the config should be present or not on the device. interface: description: - Name of this cisco_interface resource. Valid value is a string. required: true dead_interval: description: - Time interval an ospf neighbor waits for a hello packet before tearing down adjacencies. Valid values are an integer or the keyword 'default'. hello_interval: description: - Time between sending successive hello packets. Valid values are an integer or the keyword 'default'. message_digest: description: - Enables or disables the usage of message digest authentication. type: bool passive_interface: description: - Enable or disable passive-interface state on this interface. true - (enable) Prevent OSPF from establishing an adjacency or sending routing updates on this interface. false - (disable) Override global 'passive-interface default' for this interface. type: bool message_digest_key_id: description: - Md5 authentication key-id associated with the ospf instance. If this is present, message_digest_encryption_type, message_digest_algorithm_type and message_digest_password are mandatory. Valid value is an integer and 'default'. message_digest_password: description: - Specifies the message_digest password. Valid value is a string. message_digest_algorithm_type: choices: - md5 - default description: - Algorithm used for authentication among neighboring routers within an area. Valid values are 'md5' and 'default'. message_digest_encryption_type: choices: - cisco_type_7 - 3des - default description: - Specifies the scheme used for encrypting message_digest_password. Valid values are '3des' or 'cisco_type_7' encryption or 'default'.
commands: description: commands sent to the device returned: always sample: - interface Ethernet1/32 - ip router ospf 1 area 0.0.0.1 type: list