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