New in version 2.2.
Execute vrouter-ospf-add, vrouter-ospf-remove command. This command adds/removes Open Shortest Path First(OSPF) routing protocol to a virtual router(vRouter) service.
parameter | required | default | choices | comments |
---|---|---|---|---|
pn_clipassword | no | Provide login password if user is not root. |
||
pn_cliswitch | no | Target switch to run the CLI on. |
||
pn_cliusername | no | Provide login username if user is not root. |
||
pn_network_ip | yes | Specify the network IP (IPv4 or IPv6) address. |
||
pn_ospf_area | no | Stub area number for the configuration. Required for vrouter-ospf-add. |
||
pn_vrouter_name | yes | Specify the name of the vRouter. |
||
state | yes | present |
| Assert the state of the ospf. Use 'present' to add ospf and 'absent' to remove ospf. |
- name: "Add OSPF to vrouter" pn_ospf: state: present pn_vrouter_name: name-string pn_network_ip: 192.168.11.2/24 pn_ospf_area: 1.0.0.0 - name: "Remove OSPF from vrouter" pn_ospf: state: absent pn_vrouter_name: name-string
Common return values are documented here Common Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
changed | Indicates whether the CLI caused changes on the target. | always | bool | |
command | The CLI command run on the target node(s). | |||
stderr | The set of error responses from the ospf command. | on error | list | |
stdout | The set of responses from the ospf command. | always | list |
For more information on what this means please read Core Modules
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, developing_test_pr and Developing Modules.
© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/pn_ospf_module.html