ansible / ansible.builtin / v2.9.26 / module / onyx_ospf Manage OSPF protocol on Mellanox ONYX network devices | "added in version" 2.5 of ansible.builtin" Authors: Samer Deeb (@samerd) preview | supported by communityansible.builtin.onyx_ospf (v2.9.26) — module
pip
Install with pip install ansible==2.9.26
This module provides declarative management and configuration of OSPF protocol on Mellanox ONYX network devices.
- name: add ospf router to interface onyx_ospf: ospf: 2 router_id: 192.168.8.2 interfaces: - name: Eth1/1 - area: 0.0.0.0
ospf: description: - OSPF instance number 1-65535 required: true state: choices: - present - absent default: present description: - OSPF state. router_id: description: - OSPF router ID. Required if I(state=present). interfaces: description: - List of interfaces and areas. Required if I(state=present). suboptions: area: description: - OSPF area. required: true name: description: - Interface name. required: true
commands: description: The list of configuration mode commands to send to the device. returned: always sample: - router ospf 2 - router-id 192.168.8.2 - exit - interface ethernet 1/1 ip ospf area 0.0.0.0 type: list