ansible.builtin.nxos_acl_interface (v2.7.16) — module

Manages applying ACLs to interfaces.

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

Authors: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.7.16

Description

Manages applying ACLs to interfaces.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: apply egress acl to ethernet1/41
  nxos_acl_interface:
    name: ANSIBLE
    interface: ethernet1/41
    direction: egress
    state: present

Inputs

    
name:
    description:
    - Case sensitive name of the access list (ACL).
    required: true

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Specify desired state of the resource.
    required: false

direction:
    choices:
    - ingress
    - egress
    description:
    - Direction ACL to be applied in on the interface.
    required: true

interface:
    description:
    - Full name of interface, e.g. I(Ethernet1/1).
    required: true

Outputs

acl_applied_to:
  description: list of interfaces the ACL is applied to
  returned: always
  sample:
  - acl_type: Router ACL
    direction: egress
    interface: Ethernet1/41
    name: ANSIBLE
  type: list
commands:
  description: commands sent to the device
  returned: always
  sample:
  - interface ethernet1/41
  - ip access-group ANSIBLE out
  type: list