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"
This commit is contained in:
Mattias Walström
2026-01-26 23:31:07 +01:00
parent 5224aa9785
commit c0591773d4
+3
View File
@@ -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).