.. _cisco.ios.ios_acl_interfaces_module:
****************************
cisco.ios.ios_acl_interfaces
****************************
**Resource module to configure ACL interfaces.**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module configures and manages the access-control (ACL) attributes of interfaces on IOS platforms.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
list
/ elements=dictionary
|
|
A dictionary of ACL interfaces options
|
|
access_groups
list
/ elements=dictionary
|
|
Specify access-group for IP access list (standard or extended).
|
|
|
acls
list
/ elements=dictionary
|
|
Specifies the ACLs for the provided AFI.
|
|
|
|
direction
string
/ required
|
|
Specifies the direction of packets that the ACL will be applied on.
With one direction already assigned, other acl direction cannot be same.
|
|
|
|
name
string
/ required
|
|
Specifies the name of the IPv4/IPv4 ACL for the interface.
|
|
|
afi
string
/ required
|
|
Specifies the AFI for the ACLs to be configured on this interface.
|
|
name
string
/ required
|
|
Full name of the interface excluding any logical unit number, i.e. GigabitEthernet0/1.
|
running_config
string
|
|
The module, by default, will connect to the remote device and retrieve the current running-config to use as a base for comparing against the contents of source. There are times when it is not desirable to have the task get the current running-config for every task in a playbook. The running_config argument allows the implementer to pass in the configuration to use as the base config for comparison. This value of this option should be the output received from device by executing command.
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- gathered
- parsed
- rendered
|
The state the configuration should be left in
The states rendered, gathered and parsed does not perform any change on the device.
The state rendered will transform the configuration in config option to platform specific CLI commands which will be returned in the rendered key within the result. For state rendered active connection to remote host is not required.
The state gathered will fetch the running configuration from device and transform it into structured data in the format as per the resource module argspec and the value is returned in the gathered key within the result.
The state parsed reads the configuration from running_config option and transforms it into JSON format as per the resource module parameters and the value is returned in the parsed key within the result. The value of running_config option should be the same format as the output of command show running-config | include ^interface|ip access-group|ipv6 traffic-filter executed on device. For state parsed active connection to remote host is not required.
|