gluon-core: fix setting interface default roles from site.conf (#2463)

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-13 00:49:46 +02:00 committed by GitHub
parent 684b4a80a0
commit 4225bd3853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
-- --