mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 13:23:01 +02:00
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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user