X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-radvd%2Fluasrc%2Fmodel%2Fcbi%2Fradvd%2Froute.lua;fp=applications%2Fluci-radvd%2Fluasrc%2Fmodel%2Fcbi%2Fradvd%2Froute.lua;h=6e84d0fb2598b199f8d37a374b34df0c2fc0b906;hp=31b6900e597a4b87a6027fd1363f99f58b035a25;hb=1db135a32f73ce9445f8f498123dbb632f4b5bca;hpb=bd8ac05d56d89f0db6a1e06fefa9a8ce8776547d diff --git a/applications/luci-radvd/luasrc/model/cbi/radvd/route.lua b/applications/luci-radvd/luasrc/model/cbi/radvd/route.lua index 31b6900e5..6e84d0fb2 100644 --- a/applications/luci-radvd/luasrc/model/cbi/radvd/route.lua +++ b/applications/luci-radvd/luasrc/model/cbi/radvd/route.lua @@ -35,6 +35,19 @@ s.addremove = false -- General -- +o = s:option(Flag, "ignore", translate("Enable")) +o.rmempty = false + +function o.cfgvalue(...) + local v = Flag.cfgvalue(...) + return v == "1" and "0" or "1" +end + +function o.write(self, section, value) + Flag.write(self, section, value == "1" and "0" or "1") +end + + o = s:option(Value, "interface", translate("Interface"), translate("Specifies the logical interface name this section belongs to"))