diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-09-15 00:18:28 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-09-15 01:48:23 +0200 |
commit | 243117389cca916b2b9bd57a550f2a27a628ce15 (patch) | |
tree | 12aa3c395bc18fd3b24b3e1728f2625c4434f405 /inventory/group_vars/accesspoints | |
parent | ch-router: upgrade to openwrt 22.03 and enable ntp-server for mgmt vlan (diff) |
accesspoints: initial tests with 802.11r
Diffstat (limited to 'inventory/group_vars/accesspoints')
-rw-r--r-- | inventory/group_vars/accesspoints/vars.yml | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/inventory/group_vars/accesspoints/vars.yml b/inventory/group_vars/accesspoints/vars.yml index 7abe0582..3a11205c 100644 --- a/inventory/group_vars/accesspoints/vars.yml +++ b/inventory/group_vars/accesspoints/vars.yml @@ -91,22 +91,39 @@ accesspoint_wireless_devices_yaml: | accesspoint_wireless_ifaces: "{{ accesspoint_wireless_ifaces_yaml | from_yaml }}" accesspoint_wireless_ifaces_yaml: | {% for zone in accesspoint_zones.keys() %} + {% set outer_loop = loop %} {% for band in accesspoint_wireless_frequency_bands %} - name: wifi-iface '{{ zone }}{{ band }}' options: device: 'radio{{ band }}' network: '{{ zone }}' mode: 'ap' - disassoc_low_ack: '1' - rsn_preauth: '1' ssid: '{{ accesspoint_zones[zone].ssid }}' encryption: '{{ accesspoint_zones[zone].encryption }}' key: '{{ accesspoint_zones[zone].key }}' + disassoc_low_ack: '1' + rsn_preauth: '1' + {% if accesspoint_80211r is defined %} + ieee80211r: '1' + mobility_domain: '{{ '%04x' % (accesspoint_80211r.mobility_domain_base[band] + outer_loop.index0) }}' + nasid: '{{ accesspoint_wifi_mac_addr[band][inventory_hostname] | replace(':', '') }}' + ft_psk_generate_local: '0' + r1_key_holder: '{{ accesspoint_wifi_mac_addr[band][inventory_hostname] }}' + r0kh: + {% for ap in accesspoint_wifi_mac_addr[band] %} + - '{{ accesspoint_wifi_mac_addr[band][ap] }},{{ accesspoint_wifi_mac_addr[band][ap] | replace(':', '') }},{{ [accesspoint_80211r.key_seed,band,zone] | join(':') | wifi_80211r_key }}' + {% endfor %} + r1kh: + {% for ap in accesspoint_wifi_mac_addr[band] %} + - '{{ accesspoint_wifi_mac_addr[band][ap] }},{{ accesspoint_wifi_mac_addr[band][ap] }},{{ [accesspoint_80211r.key_seed,band,zone] | join(':') | wifi_80211r_key }}' + {% endfor %} + {% endif %} {% endfor %} {% endfor %} + openwrt_arch: ath79 openwrt_target: generic openwrt_profile: ubnt_unifiac-lite |