From c982e7e0ff8953c50c9da6154b67eee7471375be 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" and "client" exclusive --- .../luasrc/lib/gluon/config-mode/model/admin/network.lua | 1 + 1 file changed, 1 insertion(+) 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 6e88b620..c66b5848 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 @@ -118,6 +118,7 @@ uci:foreach('gluon', 'interface', function(config) ifaces:value('uplink', 'Uplink') -- TODO: Uplink and Client should be mutually exclusive. ifaces:value('mesh', 'Mesh') ifaces:value('client', 'Client') + ifaces:exclusive('uplink', 'client') ifaces.default = config.role