<template name="interfaces" results="per_template">
<doc>
Getter template to parse interface configuration for network devices. Designed to work with 
[Network Automation Fabric](https://docs.norfablabs.com/) 
[Nornir Service](https://docs.norfablabs.com/workers/nornir/services_nornir_service/) 
[parse TTP task](https://docs.norfablabs.com/workers/nornir/services_nornir_service_tasks_parse/)

Supported platforms:

- Arista EOS

Returns normalized list of dictionaries, each dictionary has these keys:

- `name` - interface name string (e.g. Ethernet1, Ethernet1.10)
- `type` - ``other`` by default; ``bridge`` if "vlan" in name;
    ``lag`` if "port-channel" in name; ``virtual`` if "loopback" in name
    or if the interface name contains a dot (`.`)
- `enabled` - boolean; interfaces are `True` by default unless explicitly shutdown
- `parent` - parent interface name or `null` (set when interface name contains a dot)
- `lag` - lag identifier integer (channel-group / mlag number) or `null`
- `lag_type` - ``lag`` for standard port channels, ``mlag`` for mlag port channels, or `null`
- `lacp_mode` - LACP mode string (e.g. ``active``, ``passive``) or `null`
- `mtu` - integer MTU or `null`
- `mac_address` - string in MAC EUI format or `null`
- `speed` - integer or `null`
- `duplex` - string or `null`
- `description` - string (empty string when not set)
- `mode` - ``tagged`` / ``access`` or `null`
- `untagged_vlan` - integer or `null`
- `tagged_vlans` - list of integers (empty list when none)
- `qinq_svlan` - integer or `null`
- `vrf` - string or `null`
- `ipv4_addresses` - list of strings with IP/prefix (e.g. ``10.0.0.1/24``)
- `ipv6_addresses` - list of strings with IP/prefix (e.g. ``2001:db8::1/64``)

Example normalized output (YAML):

```yaml
- description: Router ID
  duplex: null
  enabled: true
  ipv4_addresses: []
  ipv6_addresses: []
  lacp_mode: null
  lag: null
  lag_type: null
  mac_address: null
  mode: null
  mtu: null
  name: Loopback0
  parent: null
  qinq_svlan: null
  speed: null
  tagged_vlans: []
  type: virtual
  untagged_vlan: null
  vrf: null
```

</doc>

<extend template="ttp://platform/arista_eos_show_running_config_section_interface.txt"/>

</template>