modules/admin-full: Added support for IPv6 network configuration
This commit is contained in:
parent
adf1cc4c84
commit
d79794c119
3 changed files with 24 additions and 7 deletions
|
@ -8,6 +8,7 @@ basicsettings = "Basic Settings"
|
|||
|
||||
changes = "Changes"
|
||||
channel = "Channel"
|
||||
cidr6 = "CIDR-Notation: address/prefix"
|
||||
code = "Code"
|
||||
config = "Configuration"
|
||||
configfile = "Configuration file"
|
||||
|
@ -29,7 +30,8 @@ error = "Error"
|
|||
filesystem = "Filesystem"
|
||||
filter = "Filter"
|
||||
|
||||
gateway = "Gateway"
|
||||
gateway = "IPv4-Gateway"
|
||||
gateway6 = "IPv6-Gateway"
|
||||
general = "General"
|
||||
|
||||
hostname = "Hostname"
|
||||
|
@ -38,7 +40,8 @@ install = "Install"
|
|||
installed = "installed"
|
||||
interface = "Interface"
|
||||
interfaces = "Interfaces"
|
||||
ipaddress = "IP-Address"
|
||||
ipaddress = "IPv4-Address"
|
||||
ip6address = "IPv6-Address"
|
||||
|
||||
legend = "Legend"
|
||||
library = "Library"
|
||||
|
@ -57,7 +60,7 @@ metric = "Metric"
|
|||
mode = "Mode"
|
||||
|
||||
name = "Name"
|
||||
netmask = "Netmask"
|
||||
netmask = "IPv4-Netmask"
|
||||
network = "Network"
|
||||
networks = "Networks"
|
||||
notinstalled = "not installed"
|
||||
|
|
|
@ -8,6 +8,7 @@ basicsettings = "Grundeinstellungen"
|
|||
|
||||
changes = "Änderungen"
|
||||
channel = "Kanal"
|
||||
cidr6 = "CIDR-Notation: Adresse/Prefix"
|
||||
code = "Code"
|
||||
config = "Konfiguration"
|
||||
configfile = "Konfigurationsdatei"
|
||||
|
@ -29,7 +30,8 @@ error = "Fehler"
|
|||
filesystem = "Dateisystem"
|
||||
filter = "Filter"
|
||||
|
||||
gateway = "Gateway"
|
||||
gateway = "IPv4-Gateway"
|
||||
gateway6 = "IPv6-Gateway"
|
||||
general = "Allgemeines"
|
||||
|
||||
hostname = "Hostname"
|
||||
|
@ -38,7 +40,8 @@ install = "Installieren"
|
|||
installed = "installiert"
|
||||
interface = "Schnittstelle"
|
||||
interfaces = "Schnittstellen"
|
||||
ipaddress = "IP-Adresse"
|
||||
ipaddress = "IPv4-Adresse"
|
||||
ip6address = "IPv6-Adresse"
|
||||
|
||||
legend = "Legende"
|
||||
library = "Bibliothek"
|
||||
|
@ -58,7 +61,7 @@ metric = "Metrik"
|
|||
mode = "Modus"
|
||||
|
||||
name = "Name"
|
||||
netmask = "Netzmaske"
|
||||
netmask = "IPv4-Netzmaske"
|
||||
network = "Netzwerk"
|
||||
networks = "Netzwerke"
|
||||
notinstalled = "nicht installiert"
|
||||
|
|
|
@ -36,9 +36,12 @@ for i,d in ipairs(luci.sys.net.devices()) do
|
|||
end
|
||||
end
|
||||
|
||||
s:option(Value, "ipaddr", translate("ipaddress"))
|
||||
ipaddr = s:option(Value, "ipaddr", translate("ipaddress"))
|
||||
ipaddr.rmempty = true
|
||||
ipaddr:depends("proto", "static")
|
||||
|
||||
nm = s:option(Value, "netmask", translate("netmask"))
|
||||
nm.rmempty = true
|
||||
nm:depends("proto", "static")
|
||||
nm:value("255.255.255.0")
|
||||
nm:value("255.255.0.0")
|
||||
|
@ -48,6 +51,14 @@ gw = s:option(Value, "gateway", translate("gateway"))
|
|||
gw:depends("proto", "static")
|
||||
gw.rmempty = true
|
||||
|
||||
ip6addr = s:option(Value, "ip6addr", translate("ip6address"), translate("cidr6"))
|
||||
ip6addr.rmempty = true
|
||||
ip6addr:depends("proto", "static")
|
||||
|
||||
ip6gw = s:option(Value, "ip6gw", translate("gateway6"))
|
||||
ip6gw:depends("proto", "static")
|
||||
ip6gw.rmempty = true
|
||||
|
||||
dns = s:option(Value, "dns", translate("dnsserver"))
|
||||
dns:depends("proto", "static")
|
||||
dns.optional = true
|
||||
|
|
Loading…
Reference in a new issue