- Docs »
- community.network.pn_vrouterif – CLI command to add/remove/modify vrouter-interface.
-
You are reading an older version of the Ansible documentation. Use the version selection to the left if you want the latest stable released version.
community.network.pn_vrouterif – CLI command to add/remove/modify vrouter-interface.
Note
This plugin is part of the community.network collection (version 1.3.2).
To install it use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.pn_vrouterif
.
- Removed in
version 2.0.0
- Why
Doesn’t support latest Pluribus Networks netvisor
- Alternative
Latest modules will be pushed in Ansible future versions.
Execute vrouter-interface-add, vrouter-interface-remove, vrouter-interface-modify command.
You configure interfaces to vRouter services on a fabric, cluster, standalone switch or virtual network(VNET).
Parameter |
Choices/Defaults |
Comments |
pn_alias
string
|
|
Specify an alias for the interface.
|
pn_assignment
string
|
Choices:
- none
- dhcp
- dhcpv6
- autov6
|
Specify the DHCP method for IP address assignment.
|
pn_clipassword
string
|
|
Provide login password if user is not root.
|
pn_cliswitch
string
|
Default:
"local"
|
Target switch to run the cli on.
|
pn_cliusername
string
|
|
Provide login username if user is not root.
|
pn_exclusive
boolean
|
|
Specify if the interface is exclusive to the configuration. Exclusive means that other configurations cannot use the interface. Exclusive is specified when you configure the interface as span interface and allows higher throughput through the interface.
|
pn_interface
string
|
|
Specify if the interface is management, data or span interface.
|
pn_interface_ip
string
|
|
Specify the IP address of the interface in x.x.x.x/n format.
|
pn_l3port
string
|
|
Specify a Layer 3 port for the interface.
|
pn_nic_enable
boolean
|
|
Specify if the NIC is enabled or not
|
pn_nic_str
string
|
|
Specify the type of NIC. Used for vrouter-interface remove/modify.
|
pn_secondary_macs
string
|
|
Specify a secondary MAC address for the interface.
|
pn_vlan
string
|
|
Specify the VLAN identifier. This is a value between 1 and 4092.
|
pn_vrouter_name
string
/ required
|
|
Specify the name of the vRouter interface.
|
pn_vrrp_adv_int
string
|
|
Specify a VRRP advertisement interval in milliseconds. The range is from 30 to 40950 with a default value of 1000.
|
pn_vrrp_id
string
|
|
Specify the ID for the VRRP interface. The IDs on both vRouters must be the same IS number.
|
pn_vrrp_priority
string
|
|
Specify the priority for the VRRP interface. This is a value between 1 (lowest) and 255 (highest).
|
pn_vxlan
string
|
|
Specify the VXLAN identifier. This is a value between 1 and 16777215.
|
state
string
/ required
|
Choices:
- present
- absent
- update
|
State the action to perform. Use 'present' to add vrouter interface, 'absent' to remove vrouter interface and 'update' to modify vrouter interface.
|
- name: Add vrouter-interface
community.network.pn_vrouterif:
pn_cliusername: admin
pn_clipassword: admin
state: 'present'
pn_vrouter_name: 'ansible-vrouter'
pn_interface_ip: 101.101.101.2/24
pn_vlan: 101
- name: Add VRRP..
community.network.pn_vrouterif:
pn_cliusername: admin
pn_clipassword: admin
state: 'present'
pn_vrouter_name: 'ansible-vrouter'
pn_interface_ip: 101.101.101.2/24
pn_vrrp_ip: 101.101.101.1/24
pn_vrrp_priority: 100
pn_vlan: 101
- name: Remove vrouter-interface
community.network.pn_vrouterif:
pn_cliusername: admin
pn_clipassword: admin
state: 'absent'
pn_vrouter_name: 'ansible-vrouter'
pn_interface_ip: 101.101.101.2/24
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
string
|
on error |
The set of error responses from the vrouterif command.
|
stdout
list
/ elements=string
|
on success |
The set of responses from the vrouterif command.
|