summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-sw1.yml
blob: ad7b6372dfb1e50516f4d0e07b7a791ff1846bfa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
switch_interfaces_yaml: |
  - spec: Te1/0/1
    description: "sw0"
    switchport_mode: trunk

  - spec: Te1/0/2
    description: "RFU"
    switchport_mode: trunk

  - spec: Te1/0/3
    description: "epimetheus"
    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) | 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 }}