From 1e21dbcfad06077513c795b3c8789714877ec83b Mon Sep 17 00:00:00 2001 From: lemoer Date: Fri, 6 May 2022 04:16:05 +0200 Subject: [PATCH] gluon-web-network: make roles "uplink" / "mesh" and "client" exclusive --- .../luasrc/lib/gluon/config-mode/model/admin/network.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/gluon-web-network/luasrc/lib/gluon/config-mode/model/admin/network.lua b/package/gluon-web-network/luasrc/lib/gluon/config-mode/model/admin/network.lua index cf72341e..02671786 100644 --- a/package/gluon-web-network/luasrc/lib/gluon/config-mode/model/admin/network.lua +++ b/package/gluon-web-network/luasrc/lib/gluon/config-mode/model/admin/network.lua @@ -89,6 +89,8 @@ uci:foreach('gluon', 'interface', function(config) ifaces:value('uplink', 'Uplink') ifaces:value('mesh', 'Mesh') ifaces:value('client', 'Client') + ifaces:exclusive('uplink', 'client') + ifaces:exclusive('mesh', 'client') ifaces.default = config.role