community.general.onyx_ospf (0.1.1) — module

Manage OSPF protocol on Mellanox ONYX network devices

Authors: Samer Deeb (@samerd)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

This module provides declarative management and configuration of OSPF protocol on Mellanox ONYX network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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

Inputs

    
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

Outputs

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