summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-sw1.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/ch-sw1.yml')
-rw-r--r--inventory/host_vars/ch-sw1.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/inventory/host_vars/ch-sw1.yml b/inventory/host_vars/ch-sw1.yml
index ad7b6372..cf77edbf 100644
--- a/inventory/host_vars/ch-sw1.yml
+++ b/inventory/host_vars/ch-sw1.yml
@@ -22,7 +22,7 @@ switch_interfaces_yaml: |
description: "prometheus"
switchport_mode: general
tagged_only: yes
- allowed_vlans_tagged: {{ network_zones | list | difference(['lan']) | map('extract', network_zones) | map(attribute='vlan') | list }}
+ allowed_vlans_tagged: {{ network_zones | list | difference(['lan']) | map('extract', network_zones) | selectattr('vlan', 'defined') | map(attribute='vlan') | list }}
- spec: range Gi1/0/7-14
vlan: {{ network_zones.lan.vlan }}