From c0591773d46a534f330f3d564eee3d6adeccc7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Mon, 26 Jan 2026 13:55:19 +0100 Subject: [PATCH] yang: wifi: Only one virtual interface can have default MAC The others need to set custom-phys-address, if not dagger will fail to take up the interface because "The address is not unique on the network" --- src/confd/yang/confd/infix-if-wifi.yang | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/confd/yang/confd/infix-if-wifi.yang b/src/confd/yang/confd/infix-if-wifi.yang index 309c3e40..53e8cb22 100644 --- a/src/confd/yang/confd/infix-if-wifi.yang +++ b/src/confd/yang/confd/infix-if-wifi.yang @@ -100,6 +100,9 @@ submodule infix-if-wifi { must "count(/if:interfaces/if:interface[wifi/radio = current()][not(wifi/access-point)]) <= 1" { error-message "Only one station or scan interface is allowed per radio"; } + must "count(/if:interfaces/if:interface[wifi/radio = current()][not(infix-if:custom-phys-address/*)]) <= 1" { + error-message "Only one interface per radio can use the default MAC address. Configure custom-phys-address on additional interfaces."; + } description "Reference to parent WiFi radio (PHY).