summaryrefslogtreecommitdiff
path: root/inventory/group_vars/chaos-at-home-switches/vars.yml
blob: 2b5bc625a040eca3a7f968084ada6ca4b34ec9ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
switch_mgmt_zone: "{{ network_zones.mgmt }}"
switch_mgmt_interface: "Gi1/0/28"

switch_vlans: "{{ switch_vlans_yaml | from_yaml }}"
switch_vlans_yaml: |
  {% for zone_name in network_zones.keys() %}
  {%   if 'vlan' in network_zones[zone_name] %}
  - name: "{{ zone_name }}"
    id: "{{ network_zones[zone_name].vlan }}"
  {%   endif %}
  {% endfor %}

switch_interfaces: "{{ switch_interfaces_yaml | from_yaml }}"
switch_interfaces_yaml: |
  - spec: range Gi1/0/1-27
    vlan: {{ network_zones['lan'].vlan }}