From 1db135a32f73ce9445f8f498123dbb632f4b5bca Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 13 Jan 2011 20:03:40 +0000 Subject: applications/luci-radvd: expose ignore option, assign column widths --- applications/luci-radvd/luasrc/model/cbi/radvd/route.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'applications/luci-radvd/luasrc/model/cbi/radvd/route.lua') diff --git a/applications/luci-radvd/luasrc/model/cbi/radvd/route.lua b/applications/luci-radvd/luasrc/model/cbi/radvd/route.lua index 31b6900e59..6e84d0fb25 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")) -- cgit v1.2.3