modules/admin-full: Added support for IPv6 network configuration

This commit is contained in:
Steven Barth 2008-08-07 17:23:36 +00:00
parent adf1cc4c84
commit d79794c119
3 changed files with 24 additions and 7 deletions

View file

@ -8,6 +8,7 @@ basicsettings = "Basic Settings"
changes = "Changes" changes = "Changes"
channel = "Channel" channel = "Channel"
cidr6 = "CIDR-Notation: address/prefix"
code = "Code" code = "Code"
config = "Configuration" config = "Configuration"
configfile = "Configuration file" configfile = "Configuration file"
@ -29,7 +30,8 @@ error = "Error"
filesystem = "Filesystem" filesystem = "Filesystem"
filter = "Filter" filter = "Filter"
gateway = "Gateway" gateway = "IPv4-Gateway"
gateway6 = "IPv6-Gateway"
general = "General" general = "General"
hostname = "Hostname" hostname = "Hostname"
@ -38,7 +40,8 @@ install = "Install"
installed = "installed" installed = "installed"
interface = "Interface" interface = "Interface"
interfaces = "Interfaces" interfaces = "Interfaces"
ipaddress = "IP-Address" ipaddress = "IPv4-Address"
ip6address = "IPv6-Address"
legend = "Legend" legend = "Legend"
library = "Library" library = "Library"
@ -57,7 +60,7 @@ metric = "Metric"
mode = "Mode" mode = "Mode"
name = "Name" name = "Name"
netmask = "Netmask" netmask = "IPv4-Netmask"
network = "Network" network = "Network"
networks = "Networks" networks = "Networks"
notinstalled = "not installed" notinstalled = "not installed"

View file

@ -8,6 +8,7 @@ basicsettings = "Grundeinstellungen"
changes = "Änderungen" changes = "Änderungen"
channel = "Kanal" channel = "Kanal"
cidr6 = "CIDR-Notation: Adresse/Prefix"
code = "Code" code = "Code"
config = "Konfiguration" config = "Konfiguration"
configfile = "Konfigurationsdatei" configfile = "Konfigurationsdatei"
@ -29,7 +30,8 @@ error = "Fehler"
filesystem = "Dateisystem" filesystem = "Dateisystem"
filter = "Filter" filter = "Filter"
gateway = "Gateway" gateway = "IPv4-Gateway"
gateway6 = "IPv6-Gateway"
general = "Allgemeines" general = "Allgemeines"
hostname = "Hostname" hostname = "Hostname"
@ -38,7 +40,8 @@ install = "Installieren"
installed = "installiert" installed = "installiert"
interface = "Schnittstelle" interface = "Schnittstelle"
interfaces = "Schnittstellen" interfaces = "Schnittstellen"
ipaddress = "IP-Adresse" ipaddress = "IPv4-Adresse"
ip6address = "IPv6-Adresse"
legend = "Legende" legend = "Legende"
library = "Bibliothek" library = "Bibliothek"
@ -58,7 +61,7 @@ metric = "Metrik"
mode = "Modus" mode = "Modus"
name = "Name" name = "Name"
netmask = "Netzmaske" netmask = "IPv4-Netzmaske"
network = "Netzwerk" network = "Netzwerk"
networks = "Netzwerke" networks = "Netzwerke"
notinstalled = "nicht installiert" notinstalled = "nicht installiert"

View file

@ -36,9 +36,12 @@ for i,d in ipairs(luci.sys.net.devices()) do
end end
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 = s:option(Value, "netmask", translate("netmask"))
nm.rmempty = true
nm:depends("proto", "static") nm:depends("proto", "static")
nm:value("255.255.255.0") nm:value("255.255.255.0")
nm:value("255.255.0.0") nm:value("255.255.0.0")
@ -48,6 +51,14 @@ gw = s:option(Value, "gateway", translate("gateway"))
gw:depends("proto", "static") gw:depends("proto", "static")
gw.rmempty = true 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 = s:option(Value, "dns", translate("dnsserver"))
dns:depends("proto", "static") dns:depends("proto", "static")
dns.optional = true dns.optional = true