yang: wifi: Add must expression for only one statio per radio

This is a decision right now, that we support multi ssid AP, but
only one station interface, this is the only thing the c-code support
right now, so only allow this in the yang validation.
This commit is contained in:
Mattias Walström
2026-01-19 14:54:37 +01:00
parent d3b39e80e2
commit 7688469ab2
+4
View File
@@ -134,6 +134,10 @@ submodule infix-if-wifi {
container station {
presence "Configure WiFi station (client) mode";
must "count(/if:interfaces/if:interface[wifi/radio = current()/../radio][wifi/station]) <= 1" {
error-message "Only one station interface is allowed per radio";
}
description
"WiFi Station mode configuration.