community.general.pn_ipv6security_raguard_vlan (0.1.1) — module

CLI command to add/remove ipv6security-raguard-vlan

Authors: Pluribus Networks (@rajaspachipulusu17)

preview | 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

This module can be used to Add vlans to RA Guard Policy and Remove vlans to RA Guard Policy.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: ipv6 security raguard vlan add
  pn_ipv6security_raguard_vlan:
    pn_cliswitch: "sw01"
    pn_name: "foo"
    pn_vlans: "100-105"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: ipv6 security raguard vlan add
  pn_ipv6security_raguard_vlan:
    pn_cliswitch: "sw01"
    pn_name: "foo"
    pn_vlans: "100"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: ipv6 security raguard vlan remove
  pn_ipv6security_raguard_vlan:
    pn_cliswitch: "sw01"
    pn_name: "foo"
    pn_vlans: "100-105"
    state: 'absent'

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - ipv6security-raguard-vlan configuration command.
    required: false
    type: str

pn_name:
    description:
    - RA Guard Policy Name.
    required: true
    type: str

pn_vlans:
    description:
    - Vlans attached to RA Guard Policy.
    required: true
    type: str

pn_cliswitch:
    description:
    - Target switch to run the CLI on.
    required: false
    type: str

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.
  returned: always
  type: str
stderr:
  description: set of error responses from the ipv6security-raguard-vlan command.
  returned: on error
  type: list
stdout:
  description: set of responses from the ipv6security-raguard-vlan command.
  returned: always
  type: list