1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Fix wizard when modifying a macvlan interface

This commit is contained in:
Ycarus (Yannick Chabanois) 2022-05-01 12:34:43 +02:00
parent 19f8760c22
commit b174b3ba3e

View file

@ -333,6 +333,12 @@ function wizard_add()
ucic:set("network",intf .. "_dev","name",ifname)
end
end
if typeintf ~= "macvlan" and ucic:get("network",intf .. "_dev","type") == "macvlan" then
ucic:delete("network",intf .. "_dev","type")
ucic:delete("network",intf .. "_dev","mode")
ucic:delete("network",intf .. "_dev","ifname")
ucic:delete("network",intf .. "_dev","macaddr")
end
if proto == "pppoe" then
ucic:set("network",intf,"pppd_options","persist maxfail 0")
end