{%- if filetype_loop == 0 %}Interface,Neighbor IP Address,MAC Address,Type,Origin,Age,Protocol
{%-     for interface in to_parse_ip_arp %}
{%-         for neighbor in to_parse_ip_arp[interface].ipv4.neighbors %}
{{ interface }},{{ neighbor }},{{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].link_layer_address }},{{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].type }},{{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].origin }},{{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].age }},{{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].protocol }}
{%-         endfor %}
{%-     endfor %}
{%- else %}
{%-     if filetype_loop == 1 %}
# Show IP ARP (Global Routing Table)
| Interface | Neighbor IP Address | MAC Address | Type | Origin | Age | Protocol |
| --------- | ------------------- | ----------- | ---- | ------ | --- | -------- |
{%-         for interface in to_parse_ip_arp %}
{%-             for neighbor in to_parse_ip_arp[interface].ipv4.neighbors %}
| {{ interface }} | {{ neighbor }} | {{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].link_layer_address }} | {{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].type }} | {{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].origin }} | {{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].age }} | {{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].protocol }} |
{%-             endfor %}
{%-         endfor %}
{%- else %}
{%-     if filetype_loop == 2 %}
<html><body>
<h1>Show IP ARP (Global Routing Table)</h1>
<table>
  <thead>
  <tr>
    <th>Interface</th>
    <th>Neighbor IP Address</th>
    <th>MAC Address</th>
    <th>Type</th>
    <th>Origin</th>
    <th>Age</th>
    <th>Protocol</th>
  </tr>
  </thead>
  <tbody>
{%-         for interface in to_parse_ip_arp %}
{%-             for neighbor in to_parse_ip_arp[interface].ipv4.neighbors %}
  <tr>
    <td>{{ interface }}</td>
    <td>{{ neighbor }}</td>
    <td>{{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].link_layer_address }}</td>
    <td>{{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].type }}</td>
    <td>{{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].origin }}</td>
    <td>{{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].age }}</td>
    <td>{{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].protocol }}</td>
  </tr>
{%-             endfor %}
{%-         endfor %}
  </tbody>
</table>
</body></html>
{%-         else %}
# Show IP ARP (Global Routing Table)
{%-         for interface in to_parse_ip_arp %}
{%-             for neighbor in to_parse_ip_arp[interface].ipv4.neighbors %}
## {{ interface }}
### Neighbor: {{ neighbor }}
#### Link Layer Address: {{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].link_layer_address }}
#### Type: {{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].type }}
#### Origin: {{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].origin }}
#### Age: {{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].age }}
#### Protocol: {{ to_parse_ip_arp[interface].ipv4.neighbors[neighbor].protocol }}
{%-             endfor %}
{%-         endfor %}
{%-         endif %}
{%-     endif %}
{%- endif %}