applications/luci-multiwan: Removed resolv.conf config option and added
authorCraig M. Coffee <craigc@netlab7.com>
Thu, 29 Apr 2010 04:12:01 +0000 (04:12 +0000)
committerCraig M. Coffee <craigc@netlab7.com>
Thu, 29 Apr 2010 04:12:01 +0000 (04:12 +0000)
dns server settings

applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua
applications/luci-multiwan/root/lib/uci/schema/default/multiwan
po/templates/multiwan.pot

index 64c7238..8786ebc 100644 (file)
@@ -26,12 +26,6 @@ default_route.default = "balancer"
 default_route.optional = false
 default_route.rmempty = false
 
-resolv_conf = s:option(Value, "resolv_conf", translate("DNS Configuration File"),
-       translate("Writeable resolv file, dnsmasq defaults to /tmp/resolv.conf.auto"))
-resolv_conf.default = "/tmp/resolv.conf.auto"
-resolv_conf.optional = false
-resolv_conf.rmempty = false
-
 s = m:section(TypedSection, "interface", translate("WAN Interfaces"),
        translate("Health Monitor detects and corrects network changes and failed connections."))
 s.addremove = true
@@ -113,6 +107,12 @@ failover_to.default = "balancer"
 failover_to.optional = false
 failover_to.rmempty = false
 
+dns = s:option(Value, "dns", translate("DNS Server(s)"))
+dns:value("", translate("Auto"))
+dns.default = ""
+dns.optional = false
+dns.rmempty = true
+
 s = m:section(TypedSection, "mwanfw", translate("Multi-WAN Traffic Rules"),
        translate("Configure rules for directing outbound traffic through specified WAN Uplinks."))
 s.template = "cbi/tblsection"
index 61f34e7..d85d98d 100644 (file)
@@ -15,41 +15,35 @@ config variable
        option section  'multiwan.multiwan'
        option required true
 
-config variable
-       option name     'resolv_conf'
-       option title    'DNS configuration file'
-       option section  'multiwan.multiwan'
-       option required true
-
 config section
        option name     'interface'
-       option title    'WAN Uplinks Configuration'
+       option title    'WAN Interfaces'
        option named    true
        option required true
 
 config variable
        option name     'weight'
-       option title    'Load Balancer Weight'
+       option title    'Load Balancer Distribution'
        option section  'multiwan.interface'
        option datatype 'integer'
        option required true
 
 config variable
        option name     'health_interval'
-       option title    'Health Monitor Interval'
+       option title    'Health Monitor Interval'
        option section  'multiwan.multiwan'
        option datatype 'integer'
        option required true
 
 config variable
        option name     'icmp_hosts'
-       option title    'Health Monitor ICMP Host(s)'
+       option title    'Health Monitor ICMP Host(s)'
        option section  'multiwan.interface'
        option required true
 
 config variable
        option name     'timeout'
-       option title    'Health Monitor ICMP Timeout'
+       option title    'Health Monitor ICMP Timeout'
        option section  'multiwan.interface'
        option datatype 'integer'
        option required true
@@ -74,6 +68,11 @@ config variable
        option section  'multiwan.interface'
        option required true
 
+config variable
+       option name     'dns'
+       option title    'DNS Server(s)'
+       option section  'multiwan.interface'
+
 config section
        option name     'mwanfw'
        option title    'Multi-WAN Traffic Rules'
@@ -101,7 +100,7 @@ config section
 
 config section
        option name     'wanrule'
-       option title    'WAN Traffic Decision'
+       option title    'WAN Uplink'
        option section  'multiwan.mwanfw'
        option required true
 
index f7baacf..0df9a88 100644 (file)
@@ -7,11 +7,14 @@ msgstr ""
 msgid "Attempts Before WAN Recovery"
 msgstr ""
 
+msgid "Auto"
+msgstr ""
+
 msgid ""
 "Configure rules for directing outbound traffic through specified WAN Uplinks."
 msgstr ""
 
-msgid "DNS Configuration File"
+msgid "DNS Server(s)"
 msgstr ""
 
 msgid "Default Route"
@@ -77,8 +80,5 @@ msgstr ""
 msgid "WAN Uplink"
 msgstr ""
 
-msgid "Writeable resolv file, dnsmasq defaults to /tmp/resolv.conf.auto"
-msgstr ""
-
 msgid "all"
 msgstr ""