diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-06-24 02:32:09 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-06-24 02:32:09 +0200 |
commit | 6edb9d0e37cb6dbaa4731c667cb52d6220672a78 (patch) | |
tree | f12b78717b9360ea52b533b78633a0acd4a31f4e /inventory | |
parent | openwrt/image: fix loop (diff) |
sample switch config for ch-sw0
Diffstat (limited to 'inventory')
-rw-r--r-- | inventory/host_vars/ch-sw0.yml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-sw0.yml b/inventory/host_vars/ch-sw0.yml new file mode 100644 index 00000000..b8d3e02b --- /dev/null +++ b/inventory/host_vars/ch-sw0.yml @@ -0,0 +1,50 @@ +--- +switch_interfaces_yaml: | + - spec: Te1/0/1 + description: "sw1" + switchport_mode: trunk + + - spec: Te1/0/2 + description: "RFU" + switchport_mode: trunk + + - spec: range Te1/0/3-4 + vlan: {{ network_zones['lan'].vlan }} + - spec: range Gi1/0/5-16 + vlan: {{ network_zones['lan'].vlan }} + + - spec: range Gi1/0/17-18 + 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/19-22 + vlan: {{ network_zones['iot'].vlan }} + + - spec: range Gi1/0/23-24 + vlan: {{ network_zones['svc'].vlan }} + + - spec: Gi1/0/25 + switchport_mode: general + tagged_only: true + allowed_vlans_tagged: + - {{ network_zones['lan'].vlan }} + - {{ network_zones['svc'].vlan }} + - spec: Gi1/0/26 + switchport_mode: general + tagged_only: true + allowed_vlans_tagged: + - {{ network_zones['magenta'].vlan }} + - spec: Gi1/0/27 + switchport_mode: general + tagged_only: true + allowed_vlans_tagged: + - {{ network_zones['mgmt'].vlan }} + - {{ network_zones['iot'].vlan }} + + - spec: Gi1/0/28 + vlan: {{ network_zones['mgmt'].vlan }} |