Skip to content

Commit

Permalink
Merge pull request #1131 from ilario/wan-dsa
Browse files Browse the repository at this point in the history
Ensure that wan interface gets configured on DSA devices, where wan could be the name of the interface
  • Loading branch information
G10h4ck authored Sep 24, 2024
2 parents 527c1eb + bc13c08 commit 08a3948
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/lime-system/files/usr/lib/lua/lime/network.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,14 @@ function network.scandevices()

--! With DSA, the WAN is named wan. Copying the code from the lan case.
if dev:match("^wan$") then
devices[dev] = {}
local lower_if = network._get_lower(dev)
if lower_if then
devices[lower_if] = { nobridge = true }
devices[dev] = {}
utils.log( "network.scandevices.dev_parser found WAN port %s " ..
"and marking %s as nobridge", dev, lower_if )
else
utils.log( "network.scandevices.dev_parser found WAN port %s", dev)
end
end

Expand Down

0 comments on commit 08a3948

Please sign in to comment.