community.general.pn_ipv6security_raguard (0.1.1) — module

CLI command to create/modify/delete ipv6security-raguard

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 ipv6 RA Guard Policy, Update ipv6 RA guard Policy and Remove ipv6 RA Guard Policy.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: ipv6 security ragurad create
  pn_ipv6security_raguard:
    pn_cliswitch: "sw01"
    pn_name: "foo"
    pn_device: "host"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: ipv6 security ragurad create
  pn_ipv6security_raguard:
    pn_cliswitch: "sw01"
    pn_name: "foo1"
    pn_device: "host"
    pn_access_list: "sample"
    pn_prefix_list: "sample"
    pn_router_priority: "low"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: ipv6 security ragurad modify
  pn_ipv6security_raguard:
    pn_cliswitch: "sw01"
    pn_name: "foo1"
    pn_device: "router"
    pn_router_priority: "medium"
    state: "update"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: ipv6 security ragurad delete
  pn_ipv6security_raguard:
    pn_cliswitch: "sw01"
    pn_name: "foo"
    state: "absent"

Inputs

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

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

pn_device:
    choices:
    - host
    - router
    description:
    - RA Guard Device. host or router.
    required: false
    type: str

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

pn_access_list:
    description:
    - RA Guard Access List of Source IPs.
    required: false
    type: str

pn_prefix_list:
    description:
    - RA Guard Prefix List.
    required: false
    type: str

pn_router_priority:
    choices:
    - low
    - medium
    - high
    description:
    - RA Guard Router Priority.
    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 command.
  returned: on error
  type: list
stdout:
  description: set of responses from the ipv6security-raguard command.
  returned: always
  type: list