ansible-collections / cisco.ios

Ansible Network Collection for Cisco IOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation of examples for the range in port_protocols for "cisco.ios.ios_acls" module.

snehald12 opened this issue · comments

Due to the lack of documentation for examples related to the port_protocol with range on the module, opening issue on the collection module for clarification.

https://docs.ansible.com/ansible/latest/collections/cisco/ios/ios_acls_module.html#examples

if config_data[attr].get("port_protocol"):
if config_data[attr].get("port_protocol").get("range"):
command += " range {0} {1}".format(
config_data[attr]["port_protocol"]["range"].get("start"),
config_data[attr]["port_protocol"]["range"].get("end"),
)

The collection documentation should include examples for range in port_protocol variable.