summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-radvd/luasrc/model/cbi/radvd
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-13 20:03:40 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-13 20:03:40 +0000
commit1db135a32f73ce9445f8f498123dbb632f4b5bca (patch)
tree282ecd13634b50782e07ce6370cb09374803e227 /applications/luci-radvd/luasrc/model/cbi/radvd
parentbd8ac05d56d89f0db6a1e06fefa9a8ce8776547d (diff)
applications/luci-radvd: expose ignore option, assign column widths
Diffstat (limited to 'applications/luci-radvd/luasrc/model/cbi/radvd')
-rw-r--r--applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua13
-rw-r--r--applications/luci-radvd/luasrc/model/cbi/radvd/prefix.lua13
-rw-r--r--applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua13
-rw-r--r--applications/luci-radvd/luasrc/model/cbi/radvd/route.lua13
4 files changed, 52 insertions, 0 deletions
diff --git a/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua b/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
index ca510cd762..ae8e062cba 100644
--- a/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
+++ b/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
@@ -47,6 +47,19 @@ s:tab("mobile", translate("Mobile IPv6"))
-- General
--
+o = s:taboption("general", 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:taboption("general", Value, "interface", translate("Interface"),
translate("Specifies the logical interface name this section belongs to"))
diff --git a/applications/luci-radvd/luasrc/model/cbi/radvd/prefix.lua b/applications/luci-radvd/luasrc/model/cbi/radvd/prefix.lua
index 460a244d03..d3567cb0e8 100644
--- a/applications/luci-radvd/luasrc/model/cbi/radvd/prefix.lua
+++ b/applications/luci-radvd/luasrc/model/cbi/radvd/prefix.lua
@@ -38,6 +38,19 @@ s:tab("advanced", translate("Advanced"))
-- General
--
+o = s:taboption("general", 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:taboption("general", Value, "interface", translate("Interface"),
translate("Specifies the logical interface name this section belongs to"))
diff --git a/applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua b/applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua
index 31450b8f32..91cf25c665 100644
--- a/applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua
+++ b/applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.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"))
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"))