Deprecated

Removed in 2.12

i

Reason:Doesn't support latest Pluribus Networks netvisor | Alternative:Latest modules will be pushed in Ansible future versions.

community.general.pn_vrouterif (0.1.1) — module

CLI command to add/remove/modify vrouter-interface.

Authors: Pluribus Networks (@amitsi)

deprecated | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

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).

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add vrouter-interface
  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
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add VRRP..
  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
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove vrouter-interface
  pn_vrouterif:
    pn_cliusername: admin
    pn_clipassword: admin
    state: 'absent'
    pn_vrouter_name: 'ansible-vrouter'
    pn_interface_ip: 101.101.101.2/24

Inputs

    
state:
    choices:
    - present
    - absent
    - update
    description:
    - State the action to perform. Use 'present' to add vrouter interface, 'absent' to
      remove vrouter interface and 'update' to modify vrouter interface.
    required: true

pn_vlan:
    description:
    - Specify the VLAN identifier. This is a value between 1 and 4092.

pn_alias:
    description:
    - Specify an alias for the interface.

pn_vxlan:
    description:
    - Specify the VXLAN identifier. This is a value between 1 and 16777215.

pn_l3port:
    description:
    - Specify a Layer 3 port for the interface.

pn_nic_str:
    description:
    - Specify the type of NIC. Used for vrouter-interface remove/modify.

pn_vrrp_id:
    description:
    - Specify the ID for the VRRP interface. The IDs on both vRouters must be the same
      IS number.

pn_cliswitch:
    default: local
    description:
    - Target switch to run the cli on.
    required: false

pn_exclusive:
    description:
    - 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.
    required: false
    type: bool

pn_interface:
    choices:
    - mgmt
    - data
    - span
    description:
    - Specify if the interface is management, data or span interface.

pn_assignment:
    choices:
    - none
    - dhcp
    - dhcpv6
    - autov6
    description:
    - Specify the DHCP method for IP address assignment.

pn_nic_enable:
    description:
    - Specify if the NIC is enabled or not
    type: bool

pn_clipassword:
    description:
    - Provide login password if user is not root.
    required: false

pn_cliusername:
    description:
    - Provide login username if user is not root.
    required: false

pn_interface_ip:
    description:
    - Specify the IP address of the interface in x.x.x.x/n format.

pn_vrouter_name:
    description:
    - Specify the name of the vRouter interface.
    required: true

pn_vrrp_adv_int:
    description:
    - Specify a VRRP advertisement interval in milliseconds. The range is from 30 to 40950
      with a default value of 1000.

pn_vrrp_priority:
    description:
    - Specify the priority for the VRRP interface. This is a value between 1 (lowest)
      and 255 (highest).

pn_secondary_macs:
    description:
    - Specify a secondary MAC address for the interface.

Outputs

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(s).
  returned: always
  type: str
stderr:
  description: The set of error responses from the vrouterif command.
  returned: on error
  type: str
stdout:
  description: The set of responses from the vrouterif command.
  returned: on success
  type: list