summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-11-30 19:12:58 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-11-30 19:12:58 +0000
commit46bb17c2d22c93c09b627062866e9ef599540687 (patch)
treea1c82edd28e02f87df29c527630b8055af1a075b /modules/admin-full/luasrc/model/cbi
parentcd8e12d72a038bc3d6f4a62225c83f12815e28cd (diff)
modules/admin-full: whitesapce cleanup in routes.lua
libs/sys: code changes in routes6() and defaultroute6()
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/routes.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/routes.lua b/modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
index 0d20d67223..be6629774f 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
@@ -42,7 +42,10 @@ if not arg or not arg[1] then
return routes[section].gateway:string()
end
- metric = v:option(DummyValue, "Metric", translate("metric"))
+ metric = v:option(DummyValue, "metric", translate("metric"))
+ function metric.cfgvalue(self, section)
+ return routes[section].metric
+ end
if routes6 then
v = m:section(Table, routes6, translate("a_n_routes_kernel6"))
@@ -63,10 +66,10 @@ if not arg or not arg[1] then
return routes6[section].source:string()
end
- metric = v:option(DummyValue, "Metric", translate("metric"))
- function metric.cfgvalue(self, section)
- return string.format( "%08X", routes6[section].metric )
- end
+ metric = v:option(DummyValue, "metric", translate("metric"))
+ function metric.cfgvalue(self, section)
+ return string.format( "%08X", routes6[section].metric )
+ end
end
end