summaryrefslogtreecommitdiff
path: root/inventory/group_vars/chaos_at_home_switches/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-06-23 22:51:16 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-06-23 22:51:16 +0200
commita7fffb3f8743a11cf8b0bb0c9357e9a7b7ef3724 (patch)
tree62a10644305317f9d280ace925c1ddfe6c06b7b8 /inventory/group_vars/chaos_at_home_switches/main.yml
parentdellos6: basic interface manangement (diff)
very basic swtich config
Diffstat (limited to 'inventory/group_vars/chaos_at_home_switches/main.yml')
-rw-r--r--inventory/group_vars/chaos_at_home_switches/main.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/inventory/group_vars/chaos_at_home_switches/main.yml b/inventory/group_vars/chaos_at_home_switches/main.yml
index df166186..fb72c9b1 100644
--- a/inventory/group_vars/chaos_at_home_switches/main.yml
+++ b/inventory/group_vars/chaos_at_home_switches/main.yml
@@ -2,4 +2,14 @@
switch_mgmt_zone: "{{ network_zones.mgmt }}"
switch_mgmt_interface: "Gi1/0/28"
-switch_network_zones: "{{ network_zones }}"
+switch_vlans: "{{ switch_vlans_yaml | from_yaml }}"
+switch_vlans_yaml: |
+ {% for zone_name in network_zones.keys() %}
+ - name: "{{ zone_name }}"
+ id: "{{ network_zones[zone_name].vlan }}"
+ {% endfor %}
+
+switch_interfaces: "{{ switch_interfaces_yaml | from_yaml }}"
+switch_interfaces_yaml: |
+ - spec: range Gi1/0/1-27
+ vlan: {{ network_zones['lan'].vlan }}