summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-sw3.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/ch-sw3.yml')
-rw-r--r--inventory/host_vars/ch-sw3.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-sw3.yml b/inventory/host_vars/ch-sw3.yml
new file mode 100644
index 00000000..39dbadf6
--- /dev/null
+++ b/inventory/host_vars/ch-sw3.yml
@@ -0,0 +1,44 @@
+---
+switch_interfaces_yaml: |
+ - spec: Te1/0/1-2
+ channel_group: 64
+ - spec: port-channel 64
+ description: "sw0"
+ switchport_mode: trunk
+
+ - spec: Te1/0/3
+ description: "RFU"
+ vlan: {{ network_zones.lan.vlan }}
+
+ - spec: Te1/0/4
+ description: "prometheus"
+ vlan: {{ network_zones.lan.vlan }}
+
+ - spec: range Gi1/0/5-6
+ channel_group: 1
+ - spec: port-channel 1
+ description: "prometheus"
+ switchport_mode: general
+ tagged_only: yes
+ 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 }}
+
+ - spec: range Gi1/0/15-16
+ description: "ap"
+ switchport_mode: general
+ tagged_only: true
+ allowed_vlans_tagged:
+ - {{ network_zones.mgmt.vlan }}
+ - {{ network_zones.lan.vlan }}
+ - {{ network_zones.iot.vlan }}
+
+ - spec: range Gi1/0/17-22
+ vlan: {{ network_zones.iot.vlan }}
+
+ - spec: range Gi1/0/23-26
+ vlan: {{ network_zones.svc.vlan }}
+
+ - spec: range Gi1/0/27-28
+ vlan: {{ network_zones.mgmt.vlan }}