ansible.builtin.pn_access_list_ip (v2.9.27) — module

CLI command to add/remove access-list-ip

| "added in version" 2.8 of ansible.builtin"

Authors: Pluribus Networks (@rajaspachipulusu17)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

This modules can be used to add and remove IPs associated with access list.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: access list ip functionality
  pn_access_list_ip:
    pn_cliswitch: "sw01"
    pn_name: "foo"
    pn_ip: "172.16.3.1"
    state: "present"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: access list ip functionality
  pn_access_list_ip:
    pn_cliswitch: "sw01"
    pn_name: "foo"
    pn_ip: "172.16.3.1"
    state: "absent"

Inputs

    
pn_ip:
    default: '::'
    description:
    - IP associated with the access list.
    required: false
    type: str

state:
    choices:
    - present
    - absent
    description:
    - State the action to perform. Use 'present' to add access-list-ip and 'absent' to
      remove access-list-ip.
    required: true

pn_name:
    description:
    - Access List Name.
    required: false
    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 access-list-ip command.
  returned: on error
  type: list
stdout:
  description: set of responses from the access-list-ip command.
  returned: always
  type: list