{% if filetype_loop == 0 %}Access Control List,Access Control Entry,Permission,Logging,Source Network,Destination Network,L3 Protocol,L4 Protocol,Operator,Port{% for list in to_parse_access_list %}{% if to_parse_access_list[list].aces is defined %}{% for ace in to_parse_access_list[list].aces %}{% if to_parse_access_list[list].aces[ace].matches.l3 is defined %}{% if to_parse_access_list[list].aces[ace].matches.l3.ipv4 is defined %}{% if to_parse_access_list[list].aces[ace].matches.l3.ipv4.source_network is defined %}{% for source_network in to_parse_access_list[list].aces[ace].matches.l3.ipv4.source_network %}
{{ list }},{{ ace }},{{ to_parse_access_list[list].aces[ace].actions.forwarding }},{{ to_parse_access_list[list].aces[ace].actions.logging | default ("No Logging") }},{{ to_parse_access_list[list].aces[ace].matches.l3.ipv4.source_network[source_network] | replace("{'source_network': ","") | replace("}","") | replace("'","") }},{{ to_parse_access_list[list].aces[ace].matches.l3.ipv4.destination_network | replace(" {'destination_network':","") | replace("}","") | replace("{","") | replace("'","") | replace(":","") | default("N/A") }},{{ to_parse_access_list[list].aces[ace].matches.l3.ipv4.protocol | default("N/A") }},N/A,N/A,N/A{% endfor %}{% else %}{% for destination_network in to_parse_access_list[list].aces[ace].matches.l3.ipv4.destination_network %}
{{ list }},{{ ace }},{{ to_parse_access_list[list].aces[ace].actions.forwarding }},{{ to_parse_access_list[list].aces[ace].actions.logging | default("No Logging") }},N/A,{{ to_parse_access_list[list].aces[ace].matches.l3.ipv4.destination_network[destination_network]  | replace(" {'destination_network':","") | replace("}","") | replace("{","") | replace("'","") | replace(":","") | default("NA") }},{{ to_parse_access_list[list].aces[ace].matches.l3.ipv4.protocol | default("N/A") }},N/A,N/A,N/A{% endfor %}{% endif %}{% endif %}{% endif %}{% endfor %}{% else %}
{{ list }},No ACEs,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A{% endif %}{% endfor %}{% for list in to_parse_access_list %}{% if to_parse_access_list[list].aces is defined %}{% for ace in to_parse_access_list[list].aces %}{% if to_parse_access_list[list].aces[ace].matches.l4 is defined %}{% if to_parse_access_list[list].aces[ace].matches.l4.udp is defined %}{% if to_parse_access_list[list].aces[ace].matches.l4.udp.source_port is defined %}
{{ list }},{{ ace }},{{ to_parse_access_list[list].aces[ace].actions.forwarding }},{{ to_parse_access_list[list].aces[ace].actions.logging | default ("No Logging") }},Source Protocol,N/A,N/A,UDP,{% if to_parse_access_list[list].aces[ace].matches.l4.udp.source_port.operator is defined %}{{ to_parse_access_list[list].aces[ace].matches.l4.udp.source_port.operator.operator }},{{ to_parse_access_list[list].aces[ace].matches.l4.udp.source_port.operator.port }}{% else %}N/A,N/A{% endif %}{% else %}{% if to_parse_access_list[list].aces[ace].matches.l4.udp.destination_port is defined %}  
{{ list }},{{ ace }},{{ to_parse_access_list[list].aces[ace].actions.forwarding }},{{ to_parse_access_list[list].aces[ace].actions.logging | default ("No Logging") }},N/A,Destination Protocol,N/A,UDP,{% if to_parse_access_list[list].aces[ace].matches.l4.udp.destination_port.operator is defined %}{{ to_parse_access_list[list].aces[ace].matches.l4.udp.destination_port.operator.operator }},{{ to_parse_access_list[list].aces[ace].matches.l4.udp.destination_port.operator.port }}{% else %}N/A,N/A{% endif %}{% endif %}{% endif %}{% else %}{% if to_parse_access_list[list].aces[ace].matches.l4.tcp is defined %}{% if to_parse_access_list[list].aces[ace].matches.l4.tcp.source_port is defined %}
{{ list }},{{ ace }},{{ to_parse_access_list[list].aces[ace].actions.forwarding }},{{ to_parse_access_list[list].aces[ace].actions.logging | default ("No Logging") }},Source Protocol,N/A,N/A,TCP,{% if to_parse_access_list[list].aces[ace].matches.l4.tcp.source_port.operator is defined %}{{ to_parse_access_list[list].aces[ace].matches.l4.tcp.source_port.operator.operator }},{{ to_parse_access_list[list].aces[ace].matches.l4.tcp.source_port.operator.port }}{% else %}N/A,N/A{% endif %}{% else %}{% if to_parse_access_list[list].aces[ace].matches.l4.tcp.destination_port is defined %}  
{{ list }},{{ ace }},{{ to_parse_access_list[list].aces[ace].actions.forwarding }},{{ to_parse_access_list[list].aces[ace].actions.logging | default ("No Logging") }},N/A,Destination Protocol,N/A,TCP,{% if to_parse_access_list[list].aces[ace].matches.l4.tcp.destination_port.operator is defined %}{{ to_parse_access_list[list].aces[ace].matches.l4.tcp.destination_port.operator.operator }},{{ to_parse_access_list[list].aces[ace].matches.l4.tcp.destination_port.operator.port }}{% else %}N/A,N/A{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endfor %}{% else %}
{{ list }},No ACEs,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A{% endif %}{% endfor %}{% else %}{% if filetype_loop == 1 %}
# Show IP Access-Lists
| Access Control List | Access Control Entry | Permission | Logging | Source Network | Destination Network | L3 Protocol | L4 Protocol | Operator | Port |
| ------------------- | -------------------- | ---------- | ------- | -------------- | ------------------- | ----------- | ----------- | -------- | ---- |{% for list in to_parse_access_list %}{% if to_parse_access_list[list].aces is defined %}{% for ace in to_parse_access_list[list].aces %}{% if to_parse_access_list[list].aces[ace].matches.l3 is defined %}{% if to_parse_access_list[list].aces[ace].matches.l3.ipv4 is defined %}{% if to_parse_access_list[list].aces[ace].matches.l3.ipv4.source_network is defined %}{% for source_network in to_parse_access_list[list].aces[ace].matches.l3.ipv4.source_network %}
| {{ list }} | {{ ace }} | {{ to_parse_access_list[list].aces[ace].actions.forwarding }} | {{ to_parse_access_list[list].aces[ace].actions.logging | default ("No Logging") }} | {{ to_parse_access_list[list].aces[ace].matches.l3.ipv4.source_network[source_network] | replace("{'source_network': ","") | replace("}","") | replace("'","") }} | {{ to_parse_access_list[list].aces[ace].matches.l3.ipv4.destination_network | replace(" {'destination_network':","") | replace("}","") | replace("{","") | replace("'","") | replace(":","") | default("N/A") }} | {{ to_parse_access_list[list].aces[ace].matches.l3.ipv4.protocol | default("N/A") }} | N/A | N/A | N/A |{% endfor %}{% else %}{% for destination_network in to_parse_access_list[list].aces[ace].matches.l3.ipv4.destination_network %}
| {{ list }} | {{ ace }} | {{ to_parse_access_list[list].aces[ace].actions.forwarding }} | {{ to_parse_access_list[list].aces[ace].actions.logging | default("No Logging") }} | N/A | {{ to_parse_access_list[list].aces[ace].matches.l3.ipv4.destination_network[destination_network]  | replace(" {'destination_network':","") | replace("}","") | replace("{","") | replace("'","") | replace(":","") | default("NA") }} | {{ to_parse_access_list[list].aces[ace].matches.l3.ipv4.protocol | default("N/A") }} | N/A | N/A | N/A |{% endfor %}{% endif %}{% endif %}{% endif %}{% endfor %}{% else %}
| {{ list }} | No ACEs | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A |{% endif %}{% endfor %}{% for list in to_parse_access_list %}{% if to_parse_access_list[list].aces is defined %}{% for ace in to_parse_access_list[list].aces %}{% if to_parse_access_list[list].aces[ace].matches.l4 is defined %}{% if to_parse_access_list[list].aces[ace].matches.l4.udp is defined %}{% if to_parse_access_list[list].aces[ace].matches.l4.udp.source_port is defined %}
| {{ list }} | {{ ace }} | {{ to_parse_access_list[list].aces[ace].actions.forwarding }} | {{ to_parse_access_list[list].aces[ace].actions.logging | default ("No Logging") }} | Source Protocol | N/A | N/A | UDP | {% if to_parse_access_list[list].aces[ace].matches.l4.udp.source_port.operator is defined %}{{ to_parse_access_list[list].aces[ace].matches.l4.udp.source_port.operator.operator }} | {{ to_parse_access_list[list].aces[ace].matches.l4.udp.source_port.operator.port }}{% else %} N/A | N/A {% endif %}|{% else %}{% if to_parse_access_list[list].aces[ace].matches.l4.udp.destination_port is defined %}  
| {{ list }} | {{ ace }} | {{ to_parse_access_list[list].aces[ace].actions.forwarding }} | {{ to_parse_access_list[list].aces[ace].actions.logging | default ("No Logging") }} | N/A,Destination Protocol | N/A | UDP | {% if to_parse_access_list[list].aces[ace].matches.l4.udp.destination_port.operator is defined %}{{ to_parse_access_list[list].aces[ace].matches.l4.udp.destination_port.operator.operator }} | {{ to_parse_access_list[list].aces[ace].matches.l4.udp.destination_port.operator.port }}{% else %} N/A | N/A {% endif %} |{% endif %}{% endif %}{% else %}{% if to_parse_access_list[list].aces[ace].matches.l4.tcp is defined %}{% if to_parse_access_list[list].aces[ace].matches.l4.tcp.source_port is defined %}
| {{ list }} | {{ ace }} | {{ to_parse_access_list[list].aces[ace].actions.forwarding }} | {{ to_parse_access_list[list].aces[ace].actions.logging | default ("No Logging") }} | Source Protocol | N/A | N/A | TCP | {% if to_parse_access_list[list].aces[ace].matches.l4.tcp.source_port.operator is defined %}{{ to_parse_access_list[list].aces[ace].matches.l4.tcp.source_port.operator.operator }} | {{ to_parse_access_list[list].aces[ace].matches.l4.tcp.source_port.operator.port }}{% else %} N/A | N/A {% endif %}|{% else %}{% if to_parse_access_list[list].aces[ace].matches.l4.tcp.destination_port is defined %}  
| {{ list }} | {{ ace }} | {{ to_parse_access_list[list].aces[ace].actions.forwarding }} | {{ to_parse_access_list[list].aces[ace].actions.logging | default ("No Logging") }} | N/A | Destination Protocol | N/A | TCP | {% if to_parse_access_list[list].aces[ace].matches.l4.tcp.destination_port.operator is defined %}{{ to_parse_access_list[list].aces[ace].matches.l4.tcp.destination_port.operator.operator }} | {{ to_parse_access_list[list].aces[ace].matches.l4.tcp.destination_port.operator.port }}{% else %} N/A | N/A {% endif %} |{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endfor %}{% else %}
| {{ list }} | No ACEs | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A |{% endif %}{% endfor %}{% endif %}{% endif %}