mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Use an app for macvlan
This commit is contained in:
parent
bd80da9204
commit
f9e7d0d30f
8 changed files with 265 additions and 0 deletions
|
@ -103,6 +103,7 @@ function wizard_add()
|
|||
ucic:set("network","wan" .. i,"proto","static")
|
||||
if ointf ~= "" then
|
||||
ucic:set("network","wan" .. i,"type","macvlan")
|
||||
ucic:set("macvlan","wan" .. i,"macvlan")
|
||||
end
|
||||
ucic:set("network","wan" .. i,"ip4table","wan")
|
||||
if multipath_master then
|
||||
|
@ -114,6 +115,8 @@ function wizard_add()
|
|||
end
|
||||
ucic:set("network","wan" .. i,"defaultroute","0")
|
||||
ucic:reorder("network","wan" .. i, i + 2)
|
||||
ucic:save("macvlan")
|
||||
ucic:commit("macvlan")
|
||||
ucic:save("network")
|
||||
ucic:commit("network")
|
||||
ucic:save("openmptcprouter")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue