Rozdělení do skupin DSA a swconfig, úprava role network

This commit is contained in:
2024-11-01 03:32:26 +01:00
parent 587ca23374
commit cde297bd2e
18 changed files with 201 additions and 268 deletions

View File

@@ -1,52 +1,36 @@
device_ip_address: "10.11.99.2"
device_hostname: ""
device_hostname: "ap-pokoj"
network_dsa_switch_vlans:
- id: "@switch_vlan[1]"
vlan: "128"
ports: "0t 6t 1 2 3 4"
description: "hoste"
- id: "@switch_vlan[2]"
vlan: "129"
ports: "0t 6t"
description: "hoste_wifi"
- id: "@switch_vlan[3]"
vlan: "136"
ports: "0t 6t"
description: "studenti_lan"
- id: "@switch_vlan[4]"
vlan: "137"
ports: "0t 6t"
description: "studenti_wifi"
- id: "@switch_vlan[5]"
vlan: "144"
ports: "0t 6t"
description: "ucitele_lan"
- id: "@switch_vlan[6]"
vlan: "145"
ports: "0t 6t"
description: "ucitele_wifi"
- id: "@switch_vlan[7]"
vlan: "152"
ports: "0t 6t"
description: "free_wifi"
# network_switch_vlans:
# - id: "@switch_vlan[1]"
# vlan: "128"
# ports: "0t 1t 2 3t 4 5"
# description: "hoste"
# - id: "@switch_vlan[2]"
# vlan: "136"
# ports: "0t 1t"
# description: "studenti"
# - id: "@switch_vlan[3]"
# vlan: "144"
# ports: "0t 1t 3t"
# description: "ucitele"
# - id: "@switch_vlan[4]"
# vlan: "152"
# ports: "0t 1t"
# description: "free"
network_devices_append:
- name: "br0"
state: "present"
type: "bridge"
ports: ["wan", "lan1", "lan2", "lan3"]
network_bridge_vlan_filtering:
- vlan: "99"
device: "{{ device_bridge_port }}"
ports: ["wan:t"]
- vlan: "128"
device: "{{ device_bridge_port }}"
ports: ["wan:t", "lan1", "lan2:t"]
- vlan: "129"
device: "{{ device_bridge_port }}"
ports: ["wan:t", "lan2:t"]
- vlan: "136"
device: "{{ device_bridge_port }}"
ports: ["wan:t", "lan2:t"]
- vlan: "137"
device: "{{ device_bridge_port }}"
ports: ["wan:t", "lan2:t"]
- vlan: "144"
device: "{{ device_bridge_port }}"
ports: ["wan:t", "lan2:t"]
- vlan: "145"
device: "{{ device_bridge_port }}"
ports: ["wan:t", "lan2:t"]
- vlan: "152"
device: "{{ device_bridge_port }}"
ports: ["wan:t", "lan2:t"]
# wireless_devices:
# - id: ""