Skip to content
Snippets Groups Projects
Commit 27fe1ed4 authored by Grische's avatar Grische
Browse files

gluon-core: migrate lan role of single port config

when a device is migrated from a single WAN/LAN configuration to a
multi-port configuration (e.g. using DSA), set the same role on all
ports and not just the new WAN port.
parent be4213de
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,7 @@ if uci:get('gluon', 'iface_wan') then ...@@ -43,6 +43,7 @@ if uci:get('gluon', 'iface_wan') then
end end
if uci:get('gluon', 'iface_single') then if uci:get('gluon', 'iface_single') then
roles.wan = uci:get_list('gluon', 'iface_single', 'role') roles.wan = uci:get_list('gluon', 'iface_single', 'role')
roles.lan = uci:get_list('gluon', 'iface_single', 'role')
end end
-- Non-existing interfaces are nil, so they will not be added to the table -- Non-existing interfaces are nil, so they will not be added to the table
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment