Skip to content

Commit

Permalink
gluon-core: migrate lan role of single port config
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
grische committed Jul 22, 2024
1 parent be4213d commit 27fe1ed
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ if uci:get('gluon', 'iface_wan') then
end
if uci:get('gluon', 'iface_single') then
roles.wan = uci:get_list('gluon', 'iface_single', 'role')
roles.lan = uci:get_list('gluon', 'iface_single', 'role')
end

-- Non-existing interfaces are nil, so they will not be added to the table
Expand Down

0 comments on commit 27fe1ed

Please sign in to comment.