community.general.pn_vrouter_ospf (0.1.1) — module

CLI command to add/remove vrouter-ospf

Authors: Pluribus Networks (@rajaspachipulusu17)

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 can be used to add OSPF protocol to vRouter and remove OSPF protocol from a vRouter

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add OSPF to vRouter
  pn_vrouter_ospf:
    state: 'present'
    pn_vrouter_name: 'sw01-vrouter'
    pn_network: '105.104.104.1'
    pn_netmask: '24'
    pn_ospf_area: '0'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Remove OSPF to vRouter"
  pn_vrouter_ospf:
    state: 'absent'
    pn_vrouter_name: 'sw01-vrouter'
    pn_network: '105.104.104.1'

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - vrouter-ospf configuration command.
    required: false
    type: str

pn_netmask:
    description:
    - OSPF network IP address netmask.
    required: false
    type: str

pn_network:
    description:
    - OSPF network IP address.
    required: true
    type: str

pn_cliswitch:
    description:
    - Target switch to run the CLI on.
    required: false
    type: str

pn_ospf_area:
    description:
    - stub area number for the configuration.
    required: false
    type: str

pn_vrouter_name:
    description:
    - name of service config.
    required: true
    type: str

Outputs

changed:
  description: indicates whether the CLI caused changes on the target.
  returned: always
  type: bool
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stderr:
  description: set of error responses from the vrouter-ospf command.
  returned: on error
  type: list
stdout:
  description: set of responses from the vrouter-ospf command.
  returned: always
  type: list