diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-26 18:37:55 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-26 18:37:55 +0000 |
commit | 58b252456c849439758bb50d457079ab5fe140a7 (patch) | |
tree | e7b69d60bb20de1c840a92a414b3c492a6e9c69b /modules/admin-full | |
parent | b9882576f8d2ad775e5b5ca100637f3b1d1ef669 (diff) |
Add support for changing ULA prefix
Diffstat (limited to 'modules/admin-full')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/network.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/network.lua b/modules/admin-full/luasrc/model/cbi/admin_network/network.lua index 466acb084..f2984b581 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/network.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/network.lua @@ -16,6 +16,7 @@ $Id$ local fs = require "nixio.fs" m = Map("network", translate("Interfaces")) +m.pageaction = false m:section(SimpleSection).template = "admin_network/iface_overview" -- Show ATM bridge section if we have the capabilities @@ -65,8 +66,17 @@ if fs.access("/usr/sbin/br2684ctl") then payload = atm:taboption("advanced", ListValue, "payload", translate("Forwarding mode")) payload:value("bridged", translate("bridged")) payload:value("routed", translate("routed")) -else - m.pageaction = false + m.pageaction = true end +local network = require "luci.model.network" +if network:has_ipv6() then + local s = m:section(NamedSection, "globals", "globals", translate("Global network options")) + local o = s:option(Value, "ula_prefix", translate("IPv6 ULA-Prefix")) + o.datatype = "ip6addr" + o.rmempty = true + m.pageaction = true +end + + return m |