Add support for changing ULA prefix
This commit is contained in:
parent
33998c11b8
commit
c4cf9267e4
1 changed files with 12 additions and 2 deletions
|
@ -16,6 +16,7 @@ $Id$
|
||||||
local fs = require "nixio.fs"
|
local fs = require "nixio.fs"
|
||||||
|
|
||||||
m = Map("network", translate("Interfaces"))
|
m = Map("network", translate("Interfaces"))
|
||||||
|
m.pageaction = false
|
||||||
m:section(SimpleSection).template = "admin_network/iface_overview"
|
m:section(SimpleSection).template = "admin_network/iface_overview"
|
||||||
|
|
||||||
-- Show ATM bridge section if we have the capabilities
|
-- 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 = atm:taboption("advanced", ListValue, "payload", translate("Forwarding mode"))
|
||||||
payload:value("bridged", translate("bridged"))
|
payload:value("bridged", translate("bridged"))
|
||||||
payload:value("routed", translate("routed"))
|
payload:value("routed", translate("routed"))
|
||||||
else
|
m.pageaction = true
|
||||||
m.pageaction = false
|
|
||||||
end
|
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
|
return m
|
||||||
|
|
Loading…
Reference in a new issue