community / community.network / 0.2.1 / module / pn_vrouter_ospf CLI command to add/remove vrouter-ospf Authors: Pluribus Networks (@rajaspachipulusu17)community.network.pn_vrouter_ospf (0.2.1) — module
Install with ansible-galaxy collection install community.network:==0.2.1
collections: - name: community.network version: 0.2.1
This module can be used to add OSPF protocol to vRouter and remove OSPF protocol from a vRouter
- 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'
- name: "Remove OSPF to vRouter" pn_vrouter_ospf: state: 'absent' pn_vrouter_name: 'sw01-vrouter' pn_network: '105.104.104.1'
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
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