ansible-collections / cisco.ios

Ansible Network Collection for Cisco IOS
GNU General Public License v3.0
289 stars 171 forks source link

cisco.ios.ios_acls Unsupported parameters for (basic.py) module: std_source found in config -> acls -> aces. #320

Closed michalstaporek closed 3 years ago

michalstaporek commented 3 years ago
SUMMARY

When Ansible tries to collect ipv6 ACL details from a 4500 switch running IOS ver 03.11.02.E or 03.11.04.E it throws out the following error: "msg": "Unsupported parameters for (basic.py) module: std_source found in config -> acls -> aces.

ISSUE TYPE
COMPONENT NAME

cisco.ios.ios_acls

ANSIBLE VERSION
ansible 2.10.2
  config file = /home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg
  configured module search path = ['/home/local/UK/michalstaporek/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.6.8 (default, Aug 13 2020, 07:46:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
CONFIGURATION
COLLECTIONS_PATHS(/home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg) = ['/home/local/UK/michalstaporek/code/inv-ansible-cisco']
DEFAULT_ACTION_PLUGIN_PATH(/home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg) = ['/usr/local/lib/python3.6/site-packages/ara/plugins/action']
DEFAULT_ASK_VAULT_PASS(/home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg) = True
DEFAULT_CALLBACK_PLUGIN_PATH(/home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg) = ['/usr/local/lib/python3.6/site-packages/ara/plugins/callback']
DEFAULT_CALLBACK_WHITELIST(/home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg) = ['ansible.posix.profile_tasks']
DEFAULT_HOST_LIST(/home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg) = ['/home/local/UK/michalstaporek/code/inv-ansible-cisco/inventory']
DEFAULT_LOOKUP_PLUGIN_PATH(/home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg) = ['/usr/local/lib/python3.6/site-packages/ara/plugins/lookup']
DEFAULT_ROLES_PATH(/home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg) = ['/home/local/UK/michalstaporek/code/inv-ansible-cisco/roles']
DISPLAY_SKIPPED_HOSTS(/home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg) = False
HOST_KEY_CHECKING(/home/local/UK/michalstaporek/code/inv-ansible-cisco/ansible.cfg) = False
OS / ENVIRONMENT
STEPS TO REPRODUCE

Trying to collect ACL details from a 4500 series switch running IOS ver 03.11.02.E or 03.11.04.E.

    cisco.ios.ios_acls:
      config:
      state: gathered
EXPECTED RESULTS

ACL details from the switch

gbln65-00a-sua1#show ipv6 access-list 
IPv6 access list DHCP Sever
    permit udp any eq 546 any eq 547 sequence 10
    permit udp any eq 547 any eq 546 sequence 20
IPv6 access list preauth_ipv6_acl (per-user)
    permit udp any any eq domain sequence 10
    permit tcp any any eq domain sequence 20
    permit icmp any any nd-ns sequence 30
    permit icmp any any nd-na sequence 40
    permit icmp any any router-solicitation sequence 50
    permit icmp any any router-advertisement sequence 60
    permit icmp any any redirect sequence 70
    permit udp any eq 547 any eq 546 sequence 80
    permit udp any eq 546 any eq 547 sequence 90
    deny ipv6 any any sequence 100
IPv6 access list system-cpp-dhcpv6-cs
    permit udp any eq 546 any eq 547 sequence 10
IPv6 access list system-cpp-dhcpv6-sc
    permit udp any eq 547 any eq 546 sequence 10
IPv6 access list system-cpp-icmpv6-na
    permit icmp any any nd-na sequence 10
IPv6 access list system-cpp-icmpv6-ns
    permit icmp any any nd-ns sequence 10
IPv6 access list system-cpp-icmpv6-ra
    permit icmp any any router-advertisement sequence 10
IPv6 access list system-cpp-icmpv6-rr
    permit icmp any any redirect sequence 10
IPv6 access list system-cpp-icmpv6-rs
    permit icmp any any router-solicitation sequence 10
ACTUAL RESULTS
"msg": "Unsupported parameters for (basic.py) module: std_source found in config -> acls -> aces. Supported parameters include: destination, dscp, evaluate, fragments, grant, log, log_input, option, precedence, protocol, protocol_options, sequence, source, time_range, tos, ttl"
                {
                    "acls": [
                        {
                            "aces": [
                                {
                                    "destination": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": "547",
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "dscp": null,
                                    "evaluate": null,
                                    "fragments": null,
                                    "grant": "permit",
                                    "log": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "log_input": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "option": {
                                        "add_ext": null,
                                        "any_options": null,
                                        "com_security": null,
                                        "dps": null,
                                        "encode": null,
                                        "eool": null,
                                        "ext_ip": null,
                                        "ext_security": null,
                                        "finn": null,
                                        "imitd": null,
                                        "lsr": null,
                                        "mtup": null,
                                        "mtur": null,
                                        "no_op": null,
                                        "nsapa": null,
                                        "record_route": null,
                                        "router_alert": null,
                                        "sdb": null,
                                        "security": null,
                                        "ssr": null,
                                        "stream_id": null,
                                        "timestamp": null,
                                        "traceroute": null,
                                        "ump": null,
                                        "visa": null,
                                        "zsu": null
                                    },
                                    "precedence": null,
                                    "protocol": "udp",
                                    "protocol_options": null,
                                    "sequence": 10,
                                    "source": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": "546",
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "time_range": null,
                                    "tos": {
                                        "max_reliability": null,
                                        "max_throughput": null,
                                        "min_delay": null,
                                        "min_monetary_cost": null,
                                        "normal": null,
                                        "service_value": null
                                    },
                                    "ttl": {
                                        "eq": null,
                                        "gt": null,
                                        "lt": null,
                                        "neq": null,
                                        "range": null
                                    }
                                }
                            ],
                            "acl_type": null,
                            "name": "system-cpp-dhcpv6-cs"
                        },
                        {
                            "aces": [
                                {
                                    "destination": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": "546",
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "dscp": null,
                                    "evaluate": null,
                                    "fragments": null,
                                    "grant": "permit",
                                    "log": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "log_input": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "option": {
                                        "add_ext": null,
                                        "any_options": null,
                                        "com_security": null,
                                        "dps": null,
                                        "encode": null,
                                        "eool": null,
                                        "ext_ip": null,
                                        "ext_security": null,
                                        "finn": null,
                                        "imitd": null,
                                        "lsr": null,
                                        "mtup": null,
                                        "mtur": null,
                                        "no_op": null,
                                        "nsapa": null,
                                        "record_route": null,
                                        "router_alert": null,
                                        "sdb": null,
                                        "security": null,
                                        "ssr": null,
                                        "stream_id": null,
                                        "timestamp": null,
                                        "traceroute": null,
                                        "ump": null,
                                        "visa": null,
                                        "zsu": null
                                    },
                                    "precedence": null,
                                    "protocol": "udp",
                                    "protocol_options": null,
                                    "sequence": 10,
                                    "source": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": "547",
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "time_range": null,
                                    "tos": {
                                        "max_reliability": null,
                                        "max_throughput": null,
                                        "min_delay": null,
                                        "min_monetary_cost": null,
                                        "normal": null,
                                        "service_value": null
                                    },
                                    "ttl": {
                                        "eq": null,
                                        "gt": null,
                                        "lt": null,
                                        "neq": null,
                                        "range": null
                                    }
                                }
                            ],
                            "acl_type": null,
                            "name": "system-cpp-dhcpv6-sc"
                        },
                        {
                            "aces": [
                                {
                                    "destination": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "dscp": null,
                                    "evaluate": null,
                                    "fragments": null,
                                    "grant": "permit",
                                    "log": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "log_input": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "option": {
                                        "add_ext": null,
                                        "any_options": null,
                                        "com_security": null,
                                        "dps": null,
                                        "encode": null,
                                        "eool": null,
                                        "ext_ip": null,
                                        "ext_security": null,
                                        "finn": null,
                                        "imitd": null,
                                        "lsr": null,
                                        "mtup": null,
                                        "mtur": null,
                                        "no_op": null,
                                        "nsapa": null,
                                        "record_route": null,
                                        "router_alert": null,
                                        "sdb": null,
                                        "security": null,
                                        "ssr": null,
                                        "stream_id": null,
                                        "timestamp": null,
                                        "traceroute": null,
                                        "ump": null,
                                        "visa": null,
                                        "zsu": null
                                    },
                                    "precedence": null,
                                    "protocol": "icmp",
                                    "protocol_options": null,
                                    "sequence": null,
                                    "source": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "time_range": null,
                                    "tos": {
                                        "max_reliability": null,
                                        "max_throughput": null,
                                        "min_delay": null,
                                        "min_monetary_cost": null,
                                        "normal": null,
                                        "service_value": null
                                    },
                                    "ttl": {
                                        "eq": null,
                                        "gt": null,
                                        "lt": null,
                                        "neq": null,
                                        "range": null
                                    }
                                }
                            ],
                            "acl_type": null,
                            "name": "system-cpp-icmpv6-na"
                        },
                        {
                            "aces": [
                                {
                                    "destination": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "dscp": null,
                                    "evaluate": null,
                                    "fragments": null,
                                    "grant": "permit",
                                    "log": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "log_input": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "option": {
                                        "add_ext": null,
                                        "any_options": null,
                                        "com_security": null,
                                        "dps": null,
                                        "encode": null,
                                        "eool": null,
                                        "ext_ip": null,
                                        "ext_security": null,
                                        "finn": null,
                                        "imitd": null,
                                        "lsr": null,
                                        "mtup": null,
                                        "mtur": null,
                                        "no_op": null,
                                        "nsapa": null,
                                        "record_route": null,
                                        "router_alert": null,
                                        "sdb": null,
                                        "security": null,
                                        "ssr": null,
                                        "stream_id": null,
                                        "timestamp": null,
                                        "traceroute": null,
                                        "ump": null,
                                        "visa": null,
                                        "zsu": null
                                    },
                                    "precedence": null,
                                    "protocol": "icmp",
                                    "protocol_options": null,
                                    "sequence": null,
                                    "source": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "time_range": null,
                                    "tos": {
                                        "max_reliability": null,
                                        "max_throughput": null,
                                        "min_delay": null,
                                        "min_monetary_cost": null,
                                        "normal": null,
                                        "service_value": null
                                    },
                                    "ttl": {
                                        "eq": null,
                                        "gt": null,
                                        "lt": null,
                                        "neq": null,
                                        "range": null
                                    }
                                }
                            ],
                            "acl_type": null,
                            "name": "system-cpp-icmpv6-ns"
                        },
                        {
                            "aces": [
                                {
                                    "destination": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "dscp": null,
                                    "evaluate": null,
                                    "fragments": null,
                                    "grant": "permit",
                                    "log": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "log_input": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "option": {
                                        "add_ext": null,
                                        "any_options": null,
                                        "com_security": null,
                                        "dps": null,
                                        "encode": null,
                                        "eool": null,
                                        "ext_ip": null,
                                        "ext_security": null,
                                        "finn": null,
                                        "imitd": null,
                                        "lsr": null,
                                        "mtup": null,
                                        "mtur": null,
                                        "no_op": null,
                                        "nsapa": null,
                                        "record_route": null,
                                        "router_alert": null,
                                        "sdb": null,
                                        "security": null,
                                        "ssr": null,
                                        "stream_id": null,
                                        "timestamp": null,
                                        "traceroute": null,
                                        "ump": null,
                                        "visa": null,
                                        "zsu": null
                                    },
                                    "precedence": null,
                                    "protocol": "icmp",
                                    "protocol_options": {
                                        "ahp": null,
                                        "eigrp": null,
                                        "esp": null,
                                        "gre": null,
                                        "hbh": null,
                                        "icmp": {
                                            "administratively_prohibited": null,
                                            "alternate_address": null,
                                            "conversion_error": null,
                                            "dod_host_prohibited": null,
                                            "dod_net_prohibited": null,
                                            "echo": null,
                                            "echo_reply": null,
                                            "general_parameter_problem": null,
                                            "host_isolated": null,
                                            "host_precedence_unreachable": null,
                                            "host_redirect": null,
                                            "host_tos_redirect": null,
                                            "host_tos_unreachable": null,
                                            "host_unknown": null,
                                            "host_unreachable": null,
                                            "information_reply": null,
                                            "information_request": null,
                                            "mask_reply": null,
                                            "mask_request": null,
                                            "mobile_redirect": null,
                                            "net_redirect": null,
                                            "net_tos_redirect": null,
                                            "net_tos_unreachable": null,
                                            "net_unreachable": null,
                                            "network_unknown": null,
                                            "no_room_for_option": null,
                                            "option_missing": null,
                                            "packet_too_big": null,
                                            "parameter_problem": null,
                                            "port_unreachable": null,
                                            "precedence_unreachable": null,
                                            "protocol_unreachable": null,
                                            "reassembly_timeout": null,
                                            "redirect": null,
                                            "router_advertisement": true,
                                            "router_solicitation": null,
                                            "source_quench": null,
                                            "source_route_failed": null,
                                            "time_exceeded": null,
                                            "timestamp_reply": null,
                                            "timestamp_request": null,
                                            "traceroute": null,
                                            "ttl_exceeded": null,
                                            "unreachable": null
                                        },
                                        "igmp": null,
                                        "ip": null,
                                        "ipinip": null,
                                        "ipv6": null,
                                        "nos": null,
                                        "ospf": null,
                                        "pcp": null,
                                        "pim": null,
                                        "protocol_number": null,
                                        "sctp": null,
                                        "tcp": null,
                                        "udp": null
                                    },
                                    "sequence": 10,
                                    "source": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "time_range": null,
                                    "tos": {
                                        "max_reliability": null,
                                        "max_throughput": null,
                                        "min_delay": null,
                                        "min_monetary_cost": null,
                                        "normal": null,
                                        "service_value": null
                                    },
                                    "ttl": {
                                        "eq": null,
                                        "gt": null,
                                        "lt": null,
                                        "neq": null,
                                        "range": null
                                    }
                                }
                            ],
                            "acl_type": null,
                            "name": "system-cpp-icmpv6-ra"
                        },
                        {
                            "aces": [
                                {
                                    "destination": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "dscp": null,
                                    "evaluate": null,
                                    "fragments": null,
                                    "grant": "permit",
                                    "log": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "log_input": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "option": {
                                        "add_ext": null,
                                        "any_options": null,
                                        "com_security": null,
                                        "dps": null,
                                        "encode": null,
                                        "eool": null,
                                        "ext_ip": null,
                                        "ext_security": null,
                                        "finn": null,
                                        "imitd": null,
                                        "lsr": null,
                                        "mtup": null,
                                        "mtur": null,
                                        "no_op": null,
                                        "nsapa": null,
                                        "record_route": null,
                                        "router_alert": null,
                                        "sdb": null,
                                        "security": null,
                                        "ssr": null,
                                        "stream_id": null,
                                        "timestamp": null,
                                        "traceroute": null,
                                        "ump": null,
                                        "visa": null,
                                        "zsu": null
                                    },
                                    "precedence": null,
                                    "protocol": "icmp",
                                    "protocol_options": {
                                        "ahp": null,
                                        "eigrp": null,
                                        "esp": null,
                                        "gre": null,
                                        "hbh": null,
                                        "icmp": {
                                            "administratively_prohibited": null,
                                            "alternate_address": null,
                                            "conversion_error": null,
                                            "dod_host_prohibited": null,
                                            "dod_net_prohibited": null,
                                            "echo": null,
                                            "echo_reply": null,
                                            "general_parameter_problem": null,
                                            "host_isolated": null,
                                            "host_precedence_unreachable": null,
                                            "host_redirect": null,
                                            "host_tos_redirect": null,
                                            "host_tos_unreachable": null,
                                            "host_unknown": null,
                                            "host_unreachable": null,
                                            "information_reply": null,
                                            "information_request": null,
                                            "mask_reply": null,
                                            "mask_request": null,
                                            "mobile_redirect": null,
                                            "net_redirect": null,
                                            "net_tos_redirect": null,
                                            "net_tos_unreachable": null,
                                            "net_unreachable": null,
                                            "network_unknown": null,
                                            "no_room_for_option": null,
                                            "option_missing": null,
                                            "packet_too_big": null,
                                            "parameter_problem": null,
                                            "port_unreachable": null,
                                            "precedence_unreachable": null,
                                            "protocol_unreachable": null,
                                            "reassembly_timeout": null,
                                            "redirect": true,
                                            "router_advertisement": null,
                                            "router_solicitation": null,
                                            "source_quench": null,
                                            "source_route_failed": null,
                                            "time_exceeded": null,
                                            "timestamp_reply": null,
                                            "timestamp_request": null,
                                            "traceroute": null,
                                            "ttl_exceeded": null,
                                            "unreachable": null
                                        },
                                        "igmp": null,
                                        "ip": null,
                                        "ipinip": null,
                                        "ipv6": null,
                                        "nos": null,
                                        "ospf": null,
                                        "pcp": null,
                                        "pim": null,
                                        "protocol_number": null,
                                        "sctp": null,
                                        "tcp": null,
                                        "udp": null
                                    },
                                    "sequence": 10,
                                    "source": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "time_range": null,
                                    "tos": {
                                        "max_reliability": null,
                                        "max_throughput": null,
                                        "min_delay": null,
                                        "min_monetary_cost": null,
                                        "normal": null,
                                        "service_value": null
                                    },
                                    "ttl": {
                                        "eq": null,
                                        "gt": null,
                                        "lt": null,
                                        "neq": null,
                                        "range": null
                                    }
                                }
                            ],
                            "acl_type": null,
                            "name": "system-cpp-icmpv6-rr"
                        },
                        {
                            "aces": [
                                {
                                    "destination": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "dscp": null,
                                    "evaluate": null,
                                    "fragments": null,
                                    "grant": "permit",
                                    "log": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "log_input": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "option": {
                                        "add_ext": null,
                                        "any_options": null,
                                        "com_security": null,
                                        "dps": null,
                                        "encode": null,
                                        "eool": null,
                                        "ext_ip": null,
                                        "ext_security": null,
                                        "finn": null,
                                        "imitd": null,
                                        "lsr": null,
                                        "mtup": null,
                                        "mtur": null,
                                        "no_op": null,
                                        "nsapa": null,
                                        "record_route": null,
                                        "router_alert": null,
                                        "sdb": null,
                                        "security": null,
                                        "ssr": null,
                                        "stream_id": null,
                                        "timestamp": null,
                                        "traceroute": null,
                                        "ump": null,
                                        "visa": null,
                                        "zsu": null
                                    },
                                    "precedence": null,
                                    "protocol": "icmp",
                                    "protocol_options": {
                                        "ahp": null,
                                        "eigrp": null,
                                        "esp": null,
                                        "gre": null,
                                        "hbh": null,
                                        "icmp": {
                                            "administratively_prohibited": null,
                                            "alternate_address": null,
                                            "conversion_error": null,
                                            "dod_host_prohibited": null,
                                            "dod_net_prohibited": null,
                                            "echo": null,
                                            "echo_reply": null,
                                            "general_parameter_problem": null,
                                            "host_isolated": null,
                                            "host_precedence_unreachable": null,
                                            "host_redirect": null,
                                            "host_tos_redirect": null,
                                            "host_tos_unreachable": null,
                                            "host_unknown": null,
                                            "host_unreachable": null,
                                            "information_reply": null,
                                            "information_request": null,
                                            "mask_reply": null,
                                            "mask_request": null,
                                            "mobile_redirect": null,
                                            "net_redirect": null,
                                            "net_tos_redirect": null,
                                            "net_tos_unreachable": null,
                                            "net_unreachable": null,
                                            "network_unknown": null,
                                            "no_room_for_option": null,
                                            "option_missing": null,
                                            "packet_too_big": null,
                                            "parameter_problem": null,
                                            "port_unreachable": null,
                                            "precedence_unreachable": null,
                                            "protocol_unreachable": null,
                                            "reassembly_timeout": null,
                                            "redirect": null,
                                            "router_advertisement": null,
                                            "router_solicitation": true,
                                            "source_quench": null,
                                            "source_route_failed": null,
                                            "time_exceeded": null,
                                            "timestamp_reply": null,
                                            "timestamp_request": null,
                                            "traceroute": null,
                                            "ttl_exceeded": null,
                                            "unreachable": null
                                        },
                                        "igmp": null,
                                        "ip": null,
                                        "ipinip": null,
                                        "ipv6": null,
                                        "nos": null,
                                        "ospf": null,
                                        "pcp": null,
                                        "pim": null,
                                        "protocol_number": null,
                                        "sctp": null,
                                        "tcp": null,
                                        "udp": null
                                    },
                                    "sequence": 10,
                                    "source": {
                                        "address": null,
                                        "any": true,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "time_range": null,
                                    "tos": {
                                        "max_reliability": null,
                                        "max_throughput": null,
                                        "min_delay": null,
                                        "min_monetary_cost": null,
                                        "normal": null,
                                        "service_value": null
                                    },
                                    "ttl": {
                                        "eq": null,
                                        "gt": null,
                                        "lt": null,
                                        "neq": null,
                                        "range": null
                                    }
                                },
                                {
                                    "destination": {
                                        "address": null,
                                        "any": null,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "dscp": null,
                                    "evaluate": null,
                                    "fragments": null,
                                    "grant": null,
                                    "log": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "log_input": {
                                        "set": null,
                                        "user_cookie": null
                                    },
                                    "option": {
                                        "add_ext": null,
                                        "any_options": null,
                                        "com_security": null,
                                        "dps": null,
                                        "encode": null,
                                        "eool": null,
                                        "ext_ip": null,
                                        "ext_security": null,
                                        "finn": null,
                                        "imitd": null,
                                        "lsr": null,
                                        "mtup": null,
                                        "mtur": null,
                                        "no_op": null,
                                        "nsapa": null,
                                        "record_route": null,
                                        "router_alert": null,
                                        "sdb": null,
                                        "security": null,
                                        "ssr": null,
                                        "stream_id": null,
                                        "timestamp": null,
                                        "traceroute": null,
                                        "ump": null,
                                        "visa": null,
                                        "zsu": null
                                    },
                                    "precedence": null,
                                    "protocol": null,
                                    "protocol_options": null,
                                    "sequence": null,
                                    "source": {
                                        "address": null,
                                        "any": null,
                                        "host": null,
                                        "port_protocol": {
                                            "eq": null,
                                            "gt": null,
                                            "lt": null,
                                            "neq": null,
                                            "range": null
                                        },
                                        "wildcard_bits": null
                                    },
                                    "time_range": null,
                                    "tos": {
                                        "max_reliability": null,
                                        "max_throughput": null,
                                        "min_delay": null,
                                        "min_monetary_cost": null,
                                        "normal": null,
                                        "service_value": null
                                    },
                                    "ttl": {
                                        "eq": null,
                                        "gt": null,
                                        "lt": null,
                                        "neq": null,
                                        "range": null
                                    }
                                },
                                {
                                    "destination": {
                                        "port_protocol": {}
                                    },
                                    "grant": "permit",
                                    "log": {},
                                    "log_input": {},
                                    "option": {},
                                    "source": {
                                        "port_protocol": {}
                                    },
                                    "std_source": {
                                        "any": true
                                    },
                                    "tos": {},
                                    "ttl": {}
                                },
                                {
                                    "destination": {
                                        "port_protocol": {}
                                    },
                                    "grant": "permit",
                                    "log": {},
                                    "log_input": {},
                                    "option": {},
                                    "source": {
                                        "any": true,
                                        "port_protocol": {}
                                    },
                                    "std_source": {
                                        "any": true
                                    },
                                    "tos": {},
                                    "ttl": {}
                                },
                                {
                                    "destination": {
                                        "port_protocol": {}
                                    },
                                    "grant": "permit",
                                    "log": {},
                                    "log_input": {},
                                    "option": {},
                                    "source": {
                                        "port_protocol": {}
                                    },
                                    "tos": {},
                                    "ttl": {}
                                }
                            ],
                            "acl_type": null,
                            "name": "system-cpp-icmpv6-rs"
                        }
                    ],
                    "afi": "ipv6"
                }
            ],
            "running_config": null,
            "state": "merged"
        }
    },
    "msg": "Unsupported parameters for (basic.py) module: std_source found in config -> acls -> aces. Supported parameters include: destination, dscp, evaluate, fragments, grant, log, log_input, option, precedence, protocol, protocol_options, sequence, source, time_range, tos, ttl"
}
justjais commented 3 years ago

@michalstaporek Thanks for logging the issue, but with the above information I'm unable to reproduce the issue, the only difference in the config is the 1st ipv6 config name for DHCP Server which I've changed to DHCP-Server instead, for ref:

Switch Config:

IPv6 access list DHCP-Server
    permit udp any eq 546 any eq 547 sequence 10
    permit udp any eq 547 any eq 546 sequence 20
IPv6 access list preauth_ipv6_acl (per-user)
    permit udp any any eq domain sequence 10
    permit tcp any any eq domain sequence 20
    permit icmp any any nd-ns sequence 30
    permit icmp any any nd-na sequence 40
    permit icmp any any router-solicitation sequence 50
    permit icmp any any router-advertisement sequence 60
    permit icmp any any redirect sequence 70
    permit udp any eq 547 any eq 546 sequence 80
    permit udp any eq 546 any eq 547 sequence 90
    deny ipv6 any any sequence 100
IPv6 access list system-cpp-dhcpv6-cs
    permit udp any eq 546 any eq 547 sequence 10
IPv6 access list system-cpp-dhcpv6-sc
    permit udp any eq 547 any eq 546 sequence 10
IPv6 access list system-cpp-icmpv6-na
    permit icmp any any nd-na sequence 10
IPv6 access list system-cpp-icmpv6-ns
    permit icmp any any nd-ns sequence 10
IPv6 access list system-cpp-icmpv6-ra
    permit icmp any any router-advertisement sequence 10
IPv6 access list system-cpp-icmpv6-rr
    permit icmp any any redirect sequence 10
IPv6 access list system-cpp-icmpv6-rs
    permit icmp any any router-solicitation sequence 10

Gathered Play run:

"gathered": [
        {
            "acls": [
                {
                    "aces": [
                        {
                            "destination": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "547"
                                }
                            },
                            "grant": "permit",
                            "protocol": "udp",
                            "sequence": 10,
                            "source": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "546"
                                }
                            }
                        },
                        {
                            "destination": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "546"
                                }
                            },
                            "grant": "permit",
                            "protocol": "udp",
                            "sequence": 20,
                            "source": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "547"
                                }
                            }
                        },
                        {},
                        {
                            "destination": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "domain"
                                }
                            },
                            "grant": "permit",
                            "protocol": "udp",
                            "sequence": 10,
                            "source": {
                                "any": true
                            }
                        },
                        {
                            "destination": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "domain"
                                }
                            },
                            "grant": "permit",
                            "protocol": "tcp",
                            "sequence": 20,
                            "source": {
                                "any": true
                            }
                        },
                        {
                            "destination": {
                                "any": true
                            },
                            "grant": "permit",
                            "protocol": "icmp",
                            "source": {
                                "any": true
                            }
                        },
                        {
                            "destination": {
                                "any": true
                            },
                            "grant": "permit",
                            "protocol": "icmp",
                            "protocol_options": {
                                "icmp": {
                                    "router_solicitation": true
                                }
                            },
                            "sequence": 50,
                            "source": {
                                "any": true
                            }
                        },
                        {
                            "destination": {
                                "any": true
                            },
                            "grant": "permit",
                            "protocol": "icmp",
                            "protocol_options": {
                                "icmp": {
                                    "router_advertisement": true
                                }
                            },
                            "sequence": 60,
                            "source": {
                                "any": true
                            }
                        },
                        {
                            "destination": {
                                "any": true
                            },
                            "grant": "permit",
                            "protocol": "icmp",
                            "protocol_options": {
                                "icmp": {
                                    "redirect": true
                                }
                            },
                            "sequence": 70,
                            "source": {
                                "any": true
                            }
                        },
                        {
                            "destination": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "546"
                                }
                            },
                            "grant": "permit",
                            "protocol": "udp",
                            "sequence": 80,
                            "source": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "547"
                                }
                            }
                        },
                        {
                            "destination": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "547"
                                }
                            },
                            "grant": "permit",
                            "protocol": "udp",
                            "sequence": 90,
                            "source": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "546"
                                }
                            }
                        },
                        {
                            "grant": "deny",
                            "protocol": "ip"
                        }
                    ],
                    "name": "DHCP-Server"
                },
                {
                    "aces": [
                        {
                            "destination": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "547"
                                }
                            },
                            "grant": "permit",
                            "protocol": "udp",
                            "sequence": 10,
                            "source": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "546"
                                }
                            }
                        }
                    ],
                    "name": "system-cpp-dhcpv6-cs"
                },
                {
                    "aces": [
                        {
                            "destination": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "546"
                                }
                            },
                            "grant": "permit",
                            "protocol": "udp",
                            "sequence": 10,
                            "source": {
                                "any": true,
                                "port_protocol": {
                                    "eq": "547"
                                }
                            }
                        }
                    ],
                    "name": "system-cpp-dhcpv6-sc"
                },
                {
                    "aces": [
                        {
                            "destination": {
                                "any": true
                            },
                            "grant": "permit",
                            "protocol": "icmp",
                            "source": {
                                "any": true
                            }
                        }
                    ],
                    "name": "system-cpp-icmpv6-na"
                },
                {
                    "aces": [
                        {
                            "destination": {
                                "any": true
                            },
                            "grant": "permit",
                            "protocol": "icmp",
                            "source": {
                                "any": true
                            }
                        }
                    ],
                    "name": "system-cpp-icmpv6-ns"
                },
                {
                    "aces": [
                        {
                            "destination": {
                                "any": true
                            },
                            "grant": "permit",
                            "protocol": "icmp",
                            "protocol_options": {
                                "icmp": {
                                    "router_advertisement": true
                                }
                            },
                            "sequence": 10,
                            "source": {
                                "any": true
                            }
                        }
                    ],
                    "name": "system-cpp-icmpv6-ra"
                },
                {
                    "aces": [
                        {
                            "destination": {
                                "any": true
                            },
                            "grant": "permit",
                            "protocol": "icmp",
                            "protocol_options": {
                                "icmp": {
                                    "redirect": true
                                }
                            },
                            "sequence": 10,
                            "source": {
                                "any": true
                            }
                        }
                    ],
                    "name": "system-cpp-icmpv6-rr"
                },
                {
                    "aces": [
                        {
                            "destination": {
                                "any": true
                            },
                            "grant": "permit",
                            "protocol": "icmp",
                            "protocol_options": {
                                "icmp": {
                                    "router_solicitation": true
                                }
                            },
                            "sequence": 10,
                            "source": {
                                "any": true
                            }
                        }
                    ],
                    "name": "system-cpp-icmpv6-rs"
                }
            ],
            "afi": "ipv6"
        }
    ]

n @michalstaporek can you plz check if you're using the older version of the IOS collection, if yes plz update the IOS collection to the latest version i.e. 2.1.0 and you shouldn’t face the reported issue.

I am going ahead and close the issue, if you still face the issue with the updated collection plz feel free to reopen the bug.

jplitza commented 3 years ago

I'm also seeing this bug with a Cisco 4500, even on the latest collection version 2.2.0

The output of `show access-list` ``` Extended IP access list system-cpp-all-routers-on-subnet 10 permit ip any host 224.0.0.2 Extended IP access list system-cpp-all-systems-on-subnet 10 permit ip any host 224.0.0.1 Extended IP access list system-cpp-dhcp-cs 10 permit udp any eq bootpc any eq bootps Extended IP access list system-cpp-dhcp-sc 10 permit udp any eq bootps any eq bootpc Extended IP access list system-cpp-dhcp-ss 10 permit udp any eq bootps any eq bootps Extended IP access list system-cpp-igmp 10 permit igmp any 224.0.0.0 31.255.255.255 Extended IP access list system-cpp-ip-mcast-linklocal 10 permit ip any 224.0.0.0 0.0.0.255 Extended IP access list system-cpp-ospf 10 permit ospf any 224.0.0.0 0.0.0.255 Extended IP access list system-cpp-pim 10 permit pim any 224.0.0.0 0.0.0.255 Extended IP access list system-cpp-ripv2 10 permit ip any host 224.0.0.9 Extended MAC access list system-cpp-bpdu-range permit any 0180.c200.0000 0000.0000.000c Extended MAC access list system-cpp-cdp permit any host 0100.0ccc.cccc Extended MAC access list system-cpp-cgmp permit any host 0100.0cdd.dddd Extended MAC access list system-cpp-dot1x permit any host 0180.c200.0003 Extended MAC access list system-cpp-lldp permit any host 0180.c200.000e Extended MAC access list system-cpp-mcast-cfm permit any 0100.0ccc.ccc0 0000.0000.0007 Extended MAC access list system-cpp-sstp permit any host 0100.0ccc.cccd Extended MAC access list system-cpp-ucast-cfm permit any host 0013.19ab.3c3d ```
The module arguments from Ansible ```json { "changed": false, "invocation": { "module_args": { "config": [ { "acls": [ { "aces": [ { "destination": { "address": null, "any": null, "host": "224.0.0.2", "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": "ip", "protocol_options": null, "sequence": 10, "source": { "address": null, "any": true, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } } ], "acl_type": "extended", "name": "system-cpp-all-routers-on-subnet" }, { "aces": [ { "destination": { "address": null, "any": null, "host": "224.0.0.1", "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": "ip", "protocol_options": null, "sequence": 10, "source": { "address": null, "any": true, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } } ], "acl_type": "extended", "name": "system-cpp-all-systems-on-subnet" }, { "aces": [ { "destination": { "address": null, "any": true, "host": null, "port_protocol": { "eq": "bootps", "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": "udp", "protocol_options": null, "sequence": 10, "source": { "address": null, "any": true, "host": null, "port_protocol": { "eq": "bootpc", "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } } ], "acl_type": "extended", "name": "system-cpp-dhcp-cs" }, { "aces": [ { "destination": { "address": null, "any": true, "host": null, "port_protocol": { "eq": "bootpc", "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": "udp", "protocol_options": null, "sequence": 10, "source": { "address": null, "any": true, "host": null, "port_protocol": { "eq": "bootps", "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } } ], "acl_type": "extended", "name": "system-cpp-dhcp-sc" }, { "aces": [ { "destination": { "address": null, "any": true, "host": null, "port_protocol": { "eq": "bootps", "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": "udp", "protocol_options": null, "sequence": 10, "source": { "address": null, "any": true, "host": null, "port_protocol": { "eq": "bootps", "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } } ], "acl_type": "extended", "name": "system-cpp-dhcp-ss" }, { "aces": [ { "destination": { "address": "224.0.0.0", "any": null, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": "31.255.255.255" }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": "igmp", "protocol_options": null, "sequence": 10, "source": { "address": null, "any": true, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } } ], "acl_type": "extended", "name": "system-cpp-igmp" }, { "aces": [ { "destination": { "address": "224.0.0.0", "any": null, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": "0.0.0.255" }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": "ip", "protocol_options": null, "sequence": 10, "source": { "address": null, "any": true, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } } ], "acl_type": "extended", "name": "system-cpp-ip-mcast-linklocal" }, { "aces": [ { "destination": { "address": "224.0.0.0", "any": null, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": "0.0.0.255" }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": "ospf", "protocol_options": null, "sequence": 10, "source": { "address": null, "any": true, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } } ], "acl_type": "extended", "name": "system-cpp-ospf" }, { "aces": [ { "destination": { "address": "224.0.0.0", "any": null, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": "0.0.0.255" }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": "pim", "protocol_options": null, "sequence": 10, "source": { "address": null, "any": true, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } } ], "acl_type": "extended", "name": "system-cpp-pim" }, { "aces": [ { "destination": { "address": null, "any": null, "host": "224.0.0.9", "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": "ip", "protocol_options": null, "sequence": 10, "source": { "address": null, "any": true, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } }, { "destination": { "address": null, "any": null, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "dscp": null, "evaluate": null, "fragments": null, "grant": null, "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": null, "protocol_options": null, "sequence": null, "source": { "address": null, "any": null, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } }, { "destination": { "address": null, "any": null, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "dscp": null, "evaluate": null, "fragments": null, "grant": "permit", "log": { "set": null, "user_cookie": null }, "log_input": { "set": null, "user_cookie": null }, "option": { "add_ext": null, "any_options": null, "com_security": null, "dps": null, "encode": null, "eool": null, "ext_ip": null, "ext_security": null, "finn": null, "imitd": null, "lsr": null, "mtup": null, "mtur": null, "no_op": null, "nsapa": null, "record_route": null, "router_alert": null, "sdb": null, "security": null, "ssr": null, "stream_id": null, "timestamp": null, "traceroute": null, "ump": null, "visa": null, "zsu": null }, "precedence": null, "protocol": null, "protocol_options": null, "sequence": null, "source": { "address": null, "any": null, "host": null, "port_protocol": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null }, "wildcard_bits": null }, "std_source": { "any": true }, "time_range": null, "tos": { "max_reliability": null, "max_throughput": null, "min_delay": null, "min_monetary_cost": null, "normal": null, "service_value": null }, "ttl": { "eq": null, "gt": null, "lt": null, "neq": null, "range": null } } ], "acl_type": "extended", "name": "system-cpp-ripv2" } ], "afi": "ipv4" } ], "running_config": null, "state": "merged" } }, "msg": "Unsupported parameters for (basic.py) module: config.acls.aces.std_source. Supported parameters include: running_config, state, config." } ```

So apparently, the problem is that

Extended MAC access list system-cpp-bpdu-range

passes as a valid ACE, because the RE here doesn't match until the line end: https://github.com/ansible-collections/cisco.ios/blob/b8b18334067e865c51b783c397c467bcf6f1bc0d/plugins/module_utils/network/ios/rm_templates/acls.py#L184-L205 So then the next line

    permit any 0180.c200.0000 0000.0000.000c

is considered a standard ACE in an extended ACL (whichever came before the first MAC ACL, in my case system-cpp-ripv2, in @michalstaporek's case system-cpp-icmpv6-rs

Adding a $ at the end of above-mentioned regular expressions works for me, but I have no idea whether it breaks other setups/versions/models/...

jplitza commented 3 years ago

I edited the last comment to add the analysis of the root cause, just adding another comment to make sure that it's noticed. (This comment can be deleted once the issue is re-opened.)