From 7688469ab2be818742d4d2db8fcfc15e35afc8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Fri, 16 Jan 2026 10:49:38 +0100 Subject: [PATCH] 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. --- src/confd/yang/confd/infix-if-wifi.yang | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/confd/yang/confd/infix-if-wifi.yang b/src/confd/yang/confd/infix-if-wifi.yang index a68d1f60..843421f9 100644 --- a/src/confd/yang/confd/infix-if-wifi.yang +++ b/src/confd/yang/confd/infix-if-wifi.yang @@ -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.