gluon-core: fix setting interface default roles from site.conf

Make the code match the docs and check_site.lua by actually looking up
the "default_roles" field, not "roles".
This commit is contained in:
Matthias Schiffer 2022-04-10 10:54:27 +02:00
parent 684b4a80a0
commit a01921ff12
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -7,10 +7,10 @@ local util = require 'gluon.util'
-- Defaults from site.conf -- Defaults from site.conf
local roles = { local roles = {
lan = site.interfaces.lan.roles({'client'}), lan = site.interfaces.lan.default_roles({'client'}),
wan = site.interfaces.wan.roles({'uplink'}), wan = site.interfaces.wan.default_roles({'uplink'}),
} }
roles.single = site.interfaces.single.roles(roles.wan) roles.single = site.interfaces.single.default_roles(roles.wan)
-- Migration of Mesh-on-WAN/LAN setting from Gluon 2021.1 and older (to be removed in 2024) -- Migration of Mesh-on-WAN/LAN setting from Gluon 2021.1 and older (to be removed in 2024)
-- --