{% if filetype_loop == 0 %}Interface,Description,Type,Connected,Enabled,Bandwidth,Port Speed,Port Duplex,IPv4 Address,Line Protocol,Operational Status,MAC Address,Media Type,Delay,Encapsulation,Keepalive,MTU,Port Channel Member,Port Channel Member Interface,Input CRC Errors,Input Errors,Output Errors,Input Packets,Output Packets,QoS Strategy,Input Queue Drops,Total Output Drops{% for interface in to_parse_interfaces %}{% if ( (to_parse_interfaces[interface].port_channel.port_channel_member_intfs is defined) and (to_parse_interfaces[interface].ipv4 is defined)) %}{% for member_interface in to_parse_interfaces[interface].port_channel.port_channel_member_intfs %}{% for ip_address in to_parse_interfaces[interface].ipv4 %}
{{ interface }},{{ to_parse_interfaces[interface].description | default ("No Description") }},{{ to_parse_interfaces[interface].type }},{{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }},{{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}},{{ to_parse_interfaces[interface].bandwidth }},{{ to_parse_interfaces[interface].port_speed | default ("N/A")}},{{ to_parse_interfaces[interface].duplex_mode | default ("N/A") }},{{ ip_address }},{{ to_parse_interfaces[interface].line_protocol }},{{ to_parse_interfaces[interface].oper_status }},{{ to_parse_interfaces[interface].mac_address }},{{ to_parse_interfaces[interface].media_type | default ("N/A")}},{{ to_parse_interfaces[interface].delay }},{{ to_parse_interfaces[interface].encapsulations.encapsulation }},{{ to_parse_interfaces[interface].keepalive | default ("N/A")}},{{ to_parse_interfaces[interface].mtu }},{{ to_parse_interfaces[interface].port_channel.port_channel_member }},{{ member_interface }},{% if to_parse_interfaces[interface].counters is defined %}{{ to_parse_interfaces[interface].counters.in_crc_errors }},{{ to_parse_interfaces[interface].counters.in_errors }},{{ to_parse_interfaces[interface].counters.out_errors }},{{ to_parse_interfaces[interface].counters.in_pkts }},{{ to_parse_interfaces[interface].counters.out_pkts }},{% else %}N/A,N/A,N/A,N/A,N/A,{% endif %}{% if to_parse_interfaces[interface].queues is defined %}{{ to_parse_interfaces[interface].queues.queue_strategy }},{{ to_parse_interfaces[interface].queues.input_queue_drops }},{{ to_parse_interfaces[interface].queues.total_output_drop }}{% else %}N/A,N/A,N/A{% endif %}{% endfor %}{% endfor %}{% elif to_parse_interfaces[interface].port_channel.port_channel_member_intfs is defined %}{% for member_interface in to_parse_interfaces[interface].port_channel.port_channel_member_intfs %}
{{ interface }},{{ to_parse_interfaces[interface].description | default ("No Description") }},{{ to_parse_interfaces[interface].type }},{{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }},{{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}},{{ to_parse_interfaces[interface].bandwidth }},{{ to_parse_interfaces[interface].port_speed | default ("N/A")}},{{ to_parse_interfaces[interface].duplex_mode | default ("N/A")}},No IP Address,{{ to_parse_interfaces[interface].line_protocol }},{{ to_parse_interfaces[interface].oper_status }},{{ to_parse_interfaces[interface].mac_address }},{{ to_parse_interfaces[interface].media_type | default ("N/A")}},{{ to_parse_interfaces[interface].delay }},{{ to_parse_interfaces[interface].encapsulations.encapsulation }},{{ to_parse_interfaces[interface].keepalive | default ("N/A")}},{{ to_parse_interfaces[interface].mtu }},{{ to_parse_interfaces[interface].port_channel.port_channel_member }},{{ member_interface }},{% if to_parse_interfaces[interface].counters is defined %}{{ to_parse_interfaces[interface].counters.in_crc_errors }},{{ to_parse_interfaces[interface].counters.in_errors }},{{ to_parse_interfaces[interface].counters.out_errors }},{{ to_parse_interfaces[interface].counters.in_pkts }},{{ to_parse_interfaces[interface].counters.out_pkts }},{% else %}N/A,N/A,N/A,N/A,N/A,{% endif %}{% if to_parse_interfaces[interface].queues is defined %}{{ to_parse_interfaces[interface].queues.queue_strategy }},{{ to_parse_interfaces[interface].queues.input_queue_drops }},{{ to_parse_interfaces[interface].queues.total_output_drop }}{% else %}N/A,N/A,N/A{% endif %}{% endfor %}{% elif to_parse_interfaces[interface].port_channel.port_channel_member_intfs is defined %}{% for ip_address in to_parse_interfaces[interface].ipv4 %}
{{ interface }},{{ to_parse_interfaces[interface].description | default ("No Description") }},{{ to_parse_interfaces[interface].type }},{{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }},{{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}},{{ to_parse_interfaces[interface].bandwidth }},{{ to_parse_interfaces[interface].port_speed | default ("N/A")}},{{ to_parse_interfaces[interface].duplex_mode | default ("N/A")}},{{ ip_address }},{{ to_parse_interfaces[interface].line_protocol }},{{ to_parse_interfaces[interface].oper_status }},{{ to_parse_interfaces[interface].mac_address }},{{ to_parse_interfaces[interface].media_type | default ("N/A")}},{{ to_parse_interfaces[interface].delay }},{{ to_parse_interfaces[interface].encapsulations.encapsulation }},{{ to_parse_interfaces[interface].keepalive | default ("N/A")}},{{ to_parse_interfaces[interface].mtu }},{{ to_parse_interfaces[interface].port_channel.port_channel_member }},Stand Alone Port,{% if to_parse_interfaces[interface].counters is defined %}{{ to_parse_interfaces[interface].counters.in_crc_errors }},{{ to_parse_interfaces[interface].counters.in_errors }},{{ to_parse_interfaces[interface].counters.out_errors }},{{ to_parse_interfaces[interface].counters.in_pkts }},{{ to_parse_interfaces[interface].counters.out_pkts }},{% else %}N/A,N/A,N/A,N/A,N/A,{% endif %}{% if to_parse_interfaces[interface].queues is defined %}{{ to_parse_interfaces[interface].queues.queue_strategy }},{{ to_parse_interfaces[interface].queues.input_queue_drops }},{{ to_parse_interfaces[interface].queues.total_output_drop }}{% else %}N/A,N/A,N/A{% endif %}{% endfor %}{% else %}
{{ interface }},{{ to_parse_interfaces[interface].description | default ("No Description") }},{{ to_parse_interfaces[interface].type }},{{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }},{{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}},{{ to_parse_interfaces[interface].bandwidth }},{{ to_parse_interfaces[interface].port_speed | default ("N/A")}},{{ to_parse_interfaces[interface].duplex_mode | default ("N/A")}},No IP Address,{{ to_parse_interfaces[interface].line_protocol }},{{ to_parse_interfaces[interface].oper_status }},{{ to_parse_interfaces[interface].mac_address }},{{ to_parse_interfaces[interface].media_type | default ("N/A")}},{{ to_parse_interfaces[interface].delay }},{{ to_parse_interfaces[interface].encapsulations.encapsulation }},{{ to_parse_interfaces[interface].keepalive | default ("N/A")}},{{ to_parse_interfaces[interface].mtu }},{{ to_parse_interfaces[interface].port_channel.port_channel_member }},Stand Alone Port,{% if to_parse_interfaces[interface].counters is defined %}{{ to_parse_interfaces[interface].counters.in_crc_errors }},{{ to_parse_interfaces[interface].counters.in_errors }},{{ to_parse_interfaces[interface].counters.out_errors }},{{ to_parse_interfaces[interface].counters.in_pkts }},{{ to_parse_interfaces[interface].counters.out_pkts }},{% else %}N/A,N/A,N/A,N/A,N/A,{% endif %}{% if to_parse_interfaces[interface].queues is defined %}{{ to_parse_interfaces[interface].queues.queue_strategy }},{{ to_parse_interfaces[interface].queues.input_queue_drops }},{{ to_parse_interfaces[interface].queues.total_output_drop }}{% else %}N/A,N/A,N/A{% endif %}{% endif %}{% endfor %}{% else %}{% if filetype_loop == 1 %}
# Show Interfaces
| Interface | Description | Type | Connected | Enabled | Bandwidth | Port Speed | Port Duplex | IPv4 Address | Line Protocol | Operational Status | MAC Address | Media Type | Delay | Encapsulation | Keepalive | MTU | Port Channel Member | Port Channel Member Interface | Input CRC Errors | Input Errors | Output Errors | Input Packets | Output Packets | QoS Strategy | Input Queue Drops | Total Output Drops |
| --------- | ----------- | ---- | --------- | ------- | --------- | ---------- | ----------- | ------------ | ------------- | ------------------ | ----------- | ---------- | ----- | ------------- | --------- | --- | ------------------- | ----------------------------- | ---------------- | ------------ | ------------- | ------------- | -------------- | ------------ | ----------------- | ------------------ |{% for interface in to_parse_interfaces %}{% if ( (to_parse_interfaces[interface].port_channel.port_channel_member_intfs is defined) and (to_parse_interfaces[interface].ipv4 is defined)) %}{% for member_interface in to_parse_interfaces[interface].port_channel.port_channel_member_intfs %}{% for ip_address in to_parse_interfaces[interface].ipv4 %}
{{ interface }} | {{ to_parse_interfaces[interface].description | default ("No Description") }} | {{ to_parse_interfaces[interface].type }} | {{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }} | {{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}} | {{ to_parse_interfaces[interface].bandwidth }} | {{ to_parse_interfaces[interface].port_speed | default ("N/A")}} | {{ to_parse_interfaces[interface].duplex_mode | default ("N/A") }} | {{ ip_address }} | {{ to_parse_interfaces[interface].line_protocol }} | {{ to_parse_interfaces[interface].oper_status }} | {{ to_parse_interfaces[interface].mac_address }} | {{ to_parse_interfaces[interface].media_type | default ("N/A")}} | {{ to_parse_interfaces[interface].delay }} | {{ to_parse_interfaces[interface].encapsulations.encapsulation }} | {{ to_parse_interfaces[interface].keepalive | default ("N/A")}} | {{ to_parse_interfaces[interface].mtu }} | {{ to_parse_interfaces[interface].port_channel.port_channel_member }} | {{ member_interface }} | {% if to_parse_interfaces[interface].counters is defined %}{{ to_parse_interfaces[interface].counters.in_crc_errors }} | {{ to_parse_interfaces[interface].counters.in_errors }} | {{ to_parse_interfaces[interface].counters.out_errors }} | {{ to_parse_interfaces[interface].counters.in_pkts }} | {{ to_parse_interfaces[interface].counters.out_pkts }} | {% else %}N/A | N/A | N/A | N/A | N/A | {% endif %}{% if to_parse_interfaces[interface].queues is defined %}{{ to_parse_interfaces[interface].queues.queue_strategy }} | {{ to_parse_interfaces[interface].queues.input_queue_drops }} | {{ to_parse_interfaces[interface].queues.total_output_drop }}{% else %}N/A | N/A | N/A{% endif %}{% endfor %}{% endfor %}{% elif to_parse_interfaces[interface].port_channel.port_channel_member_intfs is defined %}{% for member_interface in to_parse_interfaces[interface].port_channel.port_channel_member_intfs %}
{{ interface }} | {{ to_parse_interfaces[interface].description | default ("No Description") }} | {{ to_parse_interfaces[interface].type }} | {{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }} | {{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}} | {{ to_parse_interfaces[interface].bandwidth }} | {{ to_parse_interfaces[interface].port_speed | default ("N/A")}} | {{ to_parse_interfaces[interface].duplex_mode | default ("N/A")}} | No IP Address | {{ to_parse_interfaces[interface].line_protocol }} | {{ to_parse_interfaces[interface].oper_status }} | {{ to_parse_interfaces[interface].mac_address }} | {{ to_parse_interfaces[interface].media_type | default ("N/A")}} | {{ to_parse_interfaces[interface].delay }} | {{ to_parse_interfaces[interface].encapsulations.encapsulation }} | {{ to_parse_interfaces[interface].keepalive | default ("N/A")}} | {{ to_parse_interfaces[interface].mtu }} | {{ to_parse_interfaces[interface].port_channel.port_channel_member }} | {{ member_interface }} | {% if to_parse_interfaces[interface].counters is defined %}{{ to_parse_interfaces[interface].counters.in_crc_errors }} | {{ to_parse_interfaces[interface].counters.in_errors }} | {{ to_parse_interfaces[interface].counters.out_errors }} | {{ to_parse_interfaces[interface].counters.in_pkts }} | {{ to_parse_interfaces[interface].counters.out_pkts }} | {% else %}N/A | N/A | N/A | N/A | N/A | {% endif %}{% if to_parse_interfaces[interface].queues is defined %}{{ to_parse_interfaces[interface].queues.queue_strategy }} | {{ to_parse_interfaces[interface].queues.input_queue_drops }} | {{ to_parse_interfaces[interface].queues.total_output_drop }}{% else %}N/A | N/A | N/A{% endif %}{% endfor %}{% elif to_parse_interfaces[interface].port_channel.port_channel_member_intfs is defined %}{% for ip_address in to_parse_interfaces[interface].ipv4 %}
{{ interface }} | {{ to_parse_interfaces[interface].description | default ("No Description") }} | {{ to_parse_interfaces[interface].type }} | {{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }} | {{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}} | {{ to_parse_interfaces[interface].bandwidth }} | {{ to_parse_interfaces[interface].port_speed | default ("N/A")}} | {{ to_parse_interfaces[interface].duplex_mode | default ("N/A")}} | {{ ip_address }} | {{ to_parse_interfaces[interface].line_protocol }} | {{ to_parse_interfaces[interface].oper_status }} | {{ to_parse_interfaces[interface].mac_address }} | {{ to_parse_interfaces[interface].media_type | default ("N/A")}} | {{ to_parse_interfaces[interface].delay }} | {{ to_parse_interfaces[interface].encapsulations.encapsulation }} | {{ to_parse_interfaces[interface].keepalive | default ("N/A")}} | {{ to_parse_interfaces[interface].mtu }} | {{ to_parse_interfaces[interface].port_channel.port_channel_member }} | Stand Alone Port | {% if to_parse_interfaces[interface].counters is defined %}{{ to_parse_interfaces[interface].counters.in_crc_errors }} | {{ to_parse_interfaces[interface].counters.in_errors }} | {{ to_parse_interfaces[interface].counters.out_errors }} | {{ to_parse_interfaces[interface].counters.in_pkts }} | {{ to_parse_interfaces[interface].counters.out_pkts }} | {% else %}N/A | N/A | N/A | N/A | N/A | {% endif %}{% if to_parse_interfaces[interface].queues is defined %}{{ to_parse_interfaces[interface].queues.queue_strategy }} | {{ to_parse_interfaces[interface].queues.input_queue_drops }} | {{ to_parse_interfaces[interface].queues.total_output_drop }}{% else %}N/A | N/A | N/A{% endif %}{% endfor %}{% else %}
{{ interface }} | {{ to_parse_interfaces[interface].description | default ("No Description") }} | {{ to_parse_interfaces[interface].type }} | {{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }} | {{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}} | {{ to_parse_interfaces[interface].bandwidth }} | {{ to_parse_interfaces[interface].port_speed | default ("N/A")}} | {{ to_parse_interfaces[interface].duplex_mode | default ("N/A")}} | No IP Address | {{ to_parse_interfaces[interface].line_protocol }} | {{ to_parse_interfaces[interface].oper_status }} | {{ to_parse_interfaces[interface].mac_address }} | {{ to_parse_interfaces[interface].media_type | default ("N/A")}} | {{ to_parse_interfaces[interface].delay }} | {{ to_parse_interfaces[interface].encapsulations.encapsulation }} | {{ to_parse_interfaces[interface].keepalive | default ("N/A")}} | {{ to_parse_interfaces[interface].mtu }} | {{ to_parse_interfaces[interface].port_channel.port_channel_member }} | Stand Alone Port | {% if to_parse_interfaces[interface].counters is defined %}{{ to_parse_interfaces[interface].counters.in_crc_errors }} | {{ to_parse_interfaces[interface].counters.in_errors }} | {{ to_parse_interfaces[interface].counters.out_errors }} | {{ to_parse_interfaces[interface].counters.in_pkts }} | {{ to_parse_interfaces[interface].counters.out_pkts }} | {% else %}N/A | N/A | N/A | N/A | N/A | {% endif %}{% if to_parse_interfaces[interface].queues is defined %}{{ to_parse_interfaces[interface].queues.queue_strategy }} | {{ to_parse_interfaces[interface].queues.input_queue_drops }} | {{ to_parse_interfaces[interface].queues.total_output_drop }}{% else %}N/A | N/A | N/A{% endif %}{% endif %}{% endfor %}{% else %}{% if filetype_loop == 2 %}
<html><body>
<h1>Show Interfaces</h1>
<table>
  <thead>
  <tr>
    <th>Interface</th>
    <th>Description</th>
    <th>Type</th>
    <th>Connected</th>
    <th>Enabled</th>
    <th>Bandwidth</th>
    <th>Port Speed</th>
    <th>Port Duplex</th>
    <th>IPv4 Address</th>
    <th>Line Protocol</th>
    <th>Operational Status</th>
    <th>MAC Address</th>
    <th>Media Type</th>
    <th>Delay</th>
    <th>Encapsulation</th>
    <th>Keepalive</th>
    <th>MTU</th>
    <th>Port Channel Member</th>
    <th>Port Channel Member Interface</th>
    <th>Input CRC Errors</th>
    <th>Input Errors</th>
    <th>Output Errors</th>
    <th>Input Packets</th>
    <th>Output Packets</th>
    <th>QoS Strategy</th>
    <th>Input Queue Drops</th>
    <th>Total Output Drops</th>
    </tr>
  </thead>
  <tbody>
  {% for interface in to_parse_interfaces %}{% if ( (to_parse_interfaces[interface].port_channel.port_channel_member_intfs is defined) and (to_parse_interfaces[interface].ipv4 is defined)) %}{% for member_interface in to_parse_interfaces[interface].port_channel.port_channel_member_intfs %}{% for ip_address in to_parse_interfaces[interface].ipv4 %}
  <tr>
    <td>{{ interface }}</td>
    <td>{{ to_parse_interfaces[interface].description | default ("No Description") }}</td>
    <td>{{ to_parse_interfaces[interface].type }}</td>
    <td>{{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }}</td>
    <td>{{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}}</td>
    <td>{{ to_parse_interfaces[interface].bandwidth }}</td>
    <td>{{ to_parse_interfaces[interface].port_speed | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].duplex_mode | default ("N/A") }}</td>
    <td>{{ ip_address }}</td>
    <td>{{ to_parse_interfaces[interface].line_protocol }}</td>
    <td>{{ to_parse_interfaces[interface].oper_status }}</td>
    <td>{{ to_parse_interfaces[interface].mac_address }}</td>
    <td>{{ to_parse_interfaces[interface].media_type | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].delay }}</td>
    <td>{{ to_parse_interfaces[interface].encapsulations.encapsulation }}</td>
    <td>{{ to_parse_interfaces[interface].keepalive | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].mtu }}</td>
    <td>{{ to_parse_interfaces[interface].port_channel.port_channel_member }}</td>
    <td>{{ member_interface }}</td>{% if to_parse_interfaces[interface].counters is defined %}
    <td>{{ to_parse_interfaces[interface].counters.in_crc_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.in_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.out_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.in_pkts }}</td>
    <td>{{ to_parse_interfaces[interface].counters.out_pkts }}</td>{% else %}
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>{% endif %}{% if to_parse_interfaces[interface].queues is defined %}
    <td>{{ to_parse_interfaces[interface].queues.queue_strategy }}</td>
    <td>{{ to_parse_interfaces[interface].queues.input_queue_drops }}</td>
    <td>{{ to_parse_interfaces[interface].queues.total_output_drop }}</td>{% else %}
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>{% endif %}
  </tr>{% endfor %}{% endfor %}{% elif to_parse_interfaces[interface].port_channel.port_channel_member_intfs is defined %}{% for member_interface in to_parse_interfaces[interface].port_channel.port_channel_member_intfs %}
  <tr>
    <td>{{ interface }}</td>
    <td>{{ to_parse_interfaces[interface].description | default ("No Description") }}</td>
    <td>{{ to_parse_interfaces[interface].type }}</td>
    <td>{{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }}</td>
    <td>{{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}}</td>
    <td>{{ to_parse_interfaces[interface].bandwidth }}</td>
    <td>{{ to_parse_interfaces[interface].port_speed | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].duplex_mode | default ("N/A") }}</td>
    <td>No IP Address</td>
    <td>{{ to_parse_interfaces[interface].line_protocol }}</td>
    <td>{{ to_parse_interfaces[interface].oper_status }}</td>
    <td>{{ to_parse_interfaces[interface].mac_address }}</td>
    <td>{{ to_parse_interfaces[interface].media_type | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].delay }}</td>
    <td>{{ to_parse_interfaces[interface].encapsulations.encapsulation }}</td>
    <td>{{ to_parse_interfaces[interface].keepalive | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].mtu }}</td>
    <td>{{ to_parse_interfaces[interface].port_channel.port_channel_member }}</td>
    <td>{{ member_interface }}</td>{% if to_parse_interfaces[interface].counters is defined %}
    <td>{{ to_parse_interfaces[interface].counters.in_crc_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.in_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.out_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.in_pkts }}</td>
    <td>{{ to_parse_interfaces[interface].counters.out_pkts }}</td>{% else %}
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>{% endif %}{% if to_parse_interfaces[interface].queues is defined %}
    <td>{{ to_parse_interfaces[interface].queues.queue_strategy }}</td>
    <td>{{ to_parse_interfaces[interface].queues.input_queue_drops }}</td>
    <td>{{ to_parse_interfaces[interface].queues.total_output_drop }}</td>{% else %}
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>{% endif %}
  </tr>{% endfor %}{% elif to_parse_interfaces[interface].port_channel.port_channel_member_intfs is defined %}{% for ip_address in to_parse_interfaces[interface].ipv4 %}
  <tr>
    <td>{{ interface }}</td>
    <td>{{ to_parse_interfaces[interface].description | default ("No Description") }}</td>
    <td>{{ to_parse_interfaces[interface].type }}</td>
    <td>{{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }}</td>
    <td>{{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}}</td>
    <td>{{ to_parse_interfaces[interface].bandwidth }}</td>
    <td>{{ to_parse_interfaces[interface].port_speed | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].duplex_mode | default ("N/A") }}</td>
    <td>{{ ip_address }}</td>
    <td>{{ to_parse_interfaces[interface].line_protocol }}</td>
    <td>{{ to_parse_interfaces[interface].oper_status }}</td>
    <td>{{ to_parse_interfaces[interface].mac_address }}</td>
    <td>{{ to_parse_interfaces[interface].media_type | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].delay }}</td>
    <td>{{ to_parse_interfaces[interface].encapsulations.encapsulation }}</td>
    <td>{{ to_parse_interfaces[interface].keepalive | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].mtu }}</td>
    <td>{{ to_parse_interfaces[interface].port_channel.port_channel_member }}</td>
    <td>Stand Alone Port</td>{% if to_parse_interfaces[interface].counters is defined %}
    <td>{{ to_parse_interfaces[interface].counters.in_crc_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.in_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.out_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.in_pkts }}</td>
    <td>{{ to_parse_interfaces[interface].counters.out_pkts }}</td>{% else %}
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>{% endif %}{% if to_parse_interfaces[interface].queues is defined %}
    <td>{{ to_parse_interfaces[interface].queues.queue_strategy }}</td>
    <td>{{ to_parse_interfaces[interface].queues.input_queue_drops }}</td>
    <td>{{ to_parse_interfaces[interface].queues.total_output_drop }}</td>{% else %}
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>{% endif %}
  </tr>{% endfor %}{% else %}
  <tr>
    <td>{{ interface }}</td>
    <td>{{ to_parse_interfaces[interface].description | default ("No Description") }}</td>
    <td>{{ to_parse_interfaces[interface].type }}</td>
    <td>{{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(",","") }}</td>
    <td>{{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(",","")}}</td>
    <td>{{ to_parse_interfaces[interface].bandwidth }}</td>
    <td>{{ to_parse_interfaces[interface].port_speed | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].duplex_mode | default ("N/A") }}</td>
    <td>No IP Address</td>
    <td>{{ to_parse_interfaces[interface].line_protocol }}</td>
    <td>{{ to_parse_interfaces[interface].oper_status }}</td>
    <td>{{ to_parse_interfaces[interface].mac_address }}</td>
    <td>{{ to_parse_interfaces[interface].media_type | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].delay }}</td>
    <td>{{ to_parse_interfaces[interface].encapsulations.encapsulation }}</td>
    <td>{{ to_parse_interfaces[interface].keepalive | default ("N/A")}}</td>
    <td>{{ to_parse_interfaces[interface].mtu }}</td>
    <td>{{ to_parse_interfaces[interface].port_channel.port_channel_member }}</td>
    <td>Stand Alone Port</td>{% if to_parse_interfaces[interface].counters is defined %}
    <td>{{ to_parse_interfaces[interface].counters.in_crc_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.in_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.out_errors }}</td>
    <td>{{ to_parse_interfaces[interface].counters.in_pkts }}</td>
    <td>{{ to_parse_interfaces[interface].counters.out_pkts }}</td>{% else %}
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>{% endif %}{% if to_parse_interfaces[interface].queues is defined %}
    <td>{{ to_parse_interfaces[interface].queues.queue_strategy }}</td>
    <td>{{ to_parse_interfaces[interface].queues.input_queue_drops }}</td>
    <td>{{ to_parse_interfaces[interface].queues.total_output_drop }}</td>{% else %}
    <td>N/A</td>
    <td>N/A</td>
    <td>N/A</td>{% endif %}
  </tr>{% endif %}{% endfor %}
  </tbody>
</table>
</body></html>{% else %}
# Show Interfaces
{%- for interface in to_parse_interfaces %}
## {{ interface }}
### Description: {{ to_parse_interfaces[interface].description | default ("No Description") }}
### Type: {{ to_parse_interfaces[interface].type }}
### Connected: {{ to_parse_interfaces[interface].connected | default ("Not Connected") | replace(","," ") }}
### Enabled: {{ to_parse_interfaces[interface].enabled | default ("Not Enabled" ) | replace(","," ")}}
### Bandwidth: {{ to_parse_interfaces[interface].bandwidth }}
### Port Speed: {{ to_parse_interfaces[interface].port_speed | default ("N/A")}}
### Duplex Mode: {{ to_parse_interfaces[interface].duplex_mode | default ("N/A") }}
### Line Protocol: {{ to_parse_interfaces[interface].line_protocol }}
### Operational Status: {{ to_parse_interfaces[interface].oper_status }}
### MAC Address: {{ to_parse_interfaces[interface].mac_address }}
### Media Type: {{ to_parse_interfaces[interface].media_type | default ("N/A")}}
### Delay: {{ to_parse_interfaces[interface].delay }}
### Encapsulation: {{ to_parse_interfaces[interface].encapsulations.encapsulation }}
### Keepalive: {{ to_parse_interfaces[interface].keepalive | default ("N/A")}}
### MTU: {{ to_parse_interfaces[interface].mtu }}
### Port Channel Member: {{ to_parse_interfaces[interface].port_channel.port_channel_member }}
{%-     if to_parse_interfaces[interface].port_channel.port_channel_member_intfs is defined %}
### Port Channel Members 
{%-         for member_interface in to_parse_interfaces[interface].port_channel.port_channel_member_intfs %}
#### {{ member_interface }}
{%-         endfor %}
{%      endif %}
### IP Addresses
{%-     if to_parse_interfaces[interface].ipv4 is defined %}
{%-         for ip_address in to_parse_interfaces[interface].ipv4 %}
#### {{ ip_address }}
{%-         endfor %}
{%-     endif %}
{%-     if to_parse_interfaces[interface].counters is defined %}
### Counters
#### Input
##### CRC Errors: {{ to_parse_interfaces[interface].counters.in_crc_errors }}
##### Errors: {{ to_parse_interfaces[interface].counters.in_errors }}
##### Packets: {{ to_parse_interfaces[interface].counters.in_pkts }}
#### Output
##### Errors: {{ to_parse_interfaces[interface].counters.out_errors }}
##### Packets: {{ to_parse_interfaces[interface].counters.out_pkts }}
{%-     endif %}
{%-     if to_parse_interfaces[interface].queues is defined %}
### Queues 
#### Stategy: {{ to_parse_interfaces[interface].queues.queue_strategy }}</td>
#### Drops
#### Input: {{ to_parse_interfaces[interface].queues.input_queue_drops }}</td>
#### Output: {{ to_parse_interfaces[interface].queues.total_output_drop }}</td>
{%-     endif %}
{%- endfor %}
{%- endif %}{% endif %}{% endif %}