From 98aea92a55af1695ffa825b9f55c61c701634501 Mon Sep 17 00:00:00 2001 From: Tobias Schwarz Date: Fri, 30 Aug 2024 10:06:28 +0000 Subject: [PATCH] model: add requires_mac_override setting --- group_vars/model_dlink_covr_x1860_a1.yml | 4 ++++ group_vars/model_mikrotik_sxtsq_2_lite.yml | 4 ++++ group_vars/model_mikrotik_sxtsq_5_ac.yml | 4 ++++ group_vars/model_netgear_wax202.yml | 4 ++++ group_vars/model_netgear_wax220.yml | 2 ++ 5 files changed, 18 insertions(+) diff --git a/group_vars/model_dlink_covr_x1860_a1.yml b/group_vars/model_dlink_covr_x1860_a1.yml index 5cc79763e..44b9bd2ea 100644 --- a/group_vars/model_dlink_covr_x1860_a1.yml +++ b/group_vars/model_dlink_covr_x1860_a1.yml @@ -8,6 +8,10 @@ dsa_ports: - internet - ethernet +# Mac address can be read with the following command: +# cat /dev/mtdblock$(grep -w 'config2' /proc/mtd | sed -n 's/^mtd\([0-9]\+\):.*/\1/p') | grep -o 'factory_mac=[^ ]*' | cut -d= -f2 +requires_mac_override: true + wireless_devices: - name: 11a_standard band: 5g diff --git a/group_vars/model_mikrotik_sxtsq_2_lite.yml b/group_vars/model_mikrotik_sxtsq_2_lite.yml index 954e7aa42..ffb45531c 100644 --- a/group_vars/model_mikrotik_sxtsq_2_lite.yml +++ b/group_vars/model_mikrotik_sxtsq_2_lite.yml @@ -6,6 +6,10 @@ model_nice: SXTsq Lite2 int_port: eth0 +# Mac address can be read with the following command: +# cat /sys/firmware/mikrotik/hard_config/mac_base +requires_mac_override: true + wireless_devices: - name: 11g_standard band: 2g diff --git a/group_vars/model_mikrotik_sxtsq_5_ac.yml b/group_vars/model_mikrotik_sxtsq_5_ac.yml index 820a390bd..a7469b77b 100644 --- a/group_vars/model_mikrotik_sxtsq_5_ac.yml +++ b/group_vars/model_mikrotik_sxtsq_5_ac.yml @@ -10,6 +10,10 @@ model__packages__to_merge: dsa_ports: - lan +# Mac address can be read with the following command: +# cat /sys/firmware/mikrotik/hard_config/mac_base +requires_mac_override: true + wireless_devices: - name: 11a_standard band: 5g diff --git a/group_vars/model_netgear_wax202.yml b/group_vars/model_netgear_wax202.yml index 67738a5e7..c3b488883 100644 --- a/group_vars/model_netgear_wax202.yml +++ b/group_vars/model_netgear_wax202.yml @@ -9,6 +9,10 @@ dsa_ports: - lan2 - lan3 +# Mac address can be read with the following command: +# cat /dev/mtdblock$(grep -w 'Config' /proc/mtd | sed -n 's/^mtd\([0-9]\+\):.*/\1/p') | grep -o 'mac=[^ ]*' | cut -d= -f2 +requires_mac_override: true + wireless_devices: - name: 11a_standard band: 5g diff --git a/group_vars/model_netgear_wax220.yml b/group_vars/model_netgear_wax220.yml index d91c356b1..02640c5cc 100644 --- a/group_vars/model_netgear_wax220.yml +++ b/group_vars/model_netgear_wax220.yml @@ -4,6 +4,8 @@ brand_nice: NETGEAR model_nice: WAX220 int_port: eth0 +requires_mac_override: true + wireless_devices: - name: 11a_standard band: 5g