<template name="vlans" results="per_template">
<doc>
Getter template to parse VLANs 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
- Cisco IOS
- Cisco IOS-XR
- Cisco NX-OS
- Juniper Junos

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

- `vid` - VLAN ID as integer
- `name` - VLAN name string
- `description` - VLAN description string or `null` when not configured
- `tagged_interfaces` - list of interface names carrying the VLAN tagged
- `untagged_interfaces` - list of interface names carrying the VLAN untagged

Example normalized output (YAML):

```yaml
- vid: 100
  name: USERS
  description: null
  tagged_interfaces: []
  untagged_interfaces: []
```

</doc>

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

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

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

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

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

</template>
