Note
This plugin is part of the community.network collection.
To install it use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.pn_vrouter
.
version 2.0.0
Doesn’t support latest Pluribus Networks netvisor
Latest modules will be pushed in Ansible future versions.
vrouter-create
creates a new vRouter service.vrouter-delete
deletes a vRouter service.vrouter-modify
modifies a vRouter service.Parameter | Choices/Defaults | Comments |
---|---|---|
pn_bgp_as string | Specify the Autonomous System Number(ASN) if the vRouter runs Border Gateway Protocol(BGP). | |
pn_bgp_max_paths string | Specify the maximum number of paths for BGP. This is a number between 1 and 255 or 0 to unset. | |
pn_bgp_options string | Specify other BGP options as a whitespaces separated string within single quotes ''. | |
pn_bgp_redistribute string |
| Specify how BGP routes are redistributed. |
pn_clipassword string | Provide login password if user is not root. | |
pn_cliswitch string | Default: "local" | Target switch(es) to run the CLI on. |
pn_cliusername string | Provide login username if user is not root. | |
pn_hw_vrrp_id string | Specifies the VRRP ID for a hardware vrouter. | |
pn_name string / required | Specify the name of the vRouter. | |
pn_ospf_options string | Specify other OSPF options as a whitespaces separated string within single quotes ''. | |
pn_ospf_redistribute string |
| Specify how OSPF routes are redistributed. |
pn_rip_redistribute string |
| Specify how RIP routes are redistributed. |
pn_router_id string | Specify the vRouter IP address. | |
pn_router_type string |
| Specify if the vRouter uses software or hardware. Note that if you specify hardware as router type, you cannot assign IP addresses using DHCP. You must specify a static IP address. |
pn_service_state string |
| Specify to enable or disable vRouter service. |
pn_service_type string |
| Specify if the vRouter is a dedicated or shared VNET service. |
pn_vnet string | Specify the name of the VNET. Required for vrouter-create. | |
pn_vrrp_track_port string | Specify list of ports and port ranges. | |
state string / required |
| State the action to perform. Use 'present' to create vrouter, 'absent' to delete vrouter and 'update' to modify vrouter. |
- name: Create vrouter community.network.pn_vrouter: state: 'present' pn_name: 'ansible-vrouter' pn_vnet: 'ansible-fab-global' pn_router_id: 208.74.182.1 - name: Delete vrouter community.network.pn_vrouter: state: 'absent' pn_name: 'ansible-vrouter'
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
changed boolean | always | Indicates whether the CLI caused changes on the target. |
command string | always | The CLI command run on the target node(s). |
stderr list / elements=string | on error | The set of error responses from the vrouter command. |
stdout list / elements=string | always | The set of responses from the vrouter command. |
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/network/pn_vrouter_module.html