gluon-web-network: make roles "uplink" / "mesh" and "client" exclusive

This commit is contained in:
lemoer 2022-05-06 04:16:05 +02:00
parent 7805ff700e
commit 1e21dbcfad

View File

@ -89,6 +89,8 @@ uci:foreach('gluon', 'interface', function(config)
ifaces:value('uplink', 'Uplink') ifaces:value('uplink', 'Uplink')
ifaces:value('mesh', 'Mesh') ifaces:value('mesh', 'Mesh')
ifaces:value('client', 'Client') ifaces:value('client', 'Client')
ifaces:exclusive('uplink', 'client')
ifaces:exclusive('mesh', 'client')
ifaces.default = config.role ifaces.default = config.role