New in version 2.2.
Execute vrouter-ospf-add, vrouter-ospf-remove command. This command adds/removes Open Shortest Path First(OSPF) area to/from a virtual router(vRouter) service.
| parameter | required | default | choices | comments |
|---|---|---|---|---|
| pn_clipassword | yes | Login password. |
||
| pn_cliswitch | no | Target switch(es) to run the CLI on. |
||
| pn_cliusername | yes | Login username. |
||
| pn_ospf_area | yes | Specify the OSPF area number. |
||
| pn_prefix_listin | no | OSPF prefix list for filtering incoming packets. |
||
| pn_prefix_listout | no | OSPF prefix list for filtering outgoing packets. |
||
| pn_quiet | no | True | Enable/disable system information. |
|
| pn_stub_type | no |
| Specify the OSPF stub type. |
|
| pn_vrouter_name | yes | Specify the name of the vRouter. |
||
| state | yes |
| State the action to perform. Use 'present' to add ospf-area, 'absent' to remove ospf-area and 'update' to modify ospf-area. |
- name: "Add OSPF area to vrouter"
pn_ospfarea:
state: present
pn_cliusername: admin
pn_clipassword: admin
pn_ospf_area: 1.0.0.0
pn_stub_type: stub
- name: "Remove OSPF from vrouter"
pn_ospf:
state: absent
pn_cliusername: admin
pn_clipassword: admin
pn_vrouter_name: name-string
pn_ospf_area: 1.0.0.0
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_ospfarea_module.html