community / community.general / 0.1.1 / module / onyx_ospf Manage OSPF protocol on Mellanox ONYX network devices Authors: Samer Deeb (@samerd) preview | supported by communitycommunity.general.onyx_ospf (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
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