summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorCraig M. Coffee <craigc@netlab7.com>2010-06-28 07:09:31 +0000
committerCraig M. Coffee <craigc@netlab7.com>2010-06-28 07:09:31 +0000
commita155b5fa158cb354bcbabdd59d65ac9647ec3138 (patch)
tree449c3329ab8747ea19480d4391f4563ed5f64e8b /applications
parenta3e2691a73da98ec394e8be59a727942dcdc352b (diff)
[applications] luci-multiwan: Added Lan Interface configuration option
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua5
-rw-r--r--applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua5
-rw-r--r--applications/luci-multiwan/root/lib/uci/schema/default/multiwan6
3 files changed, 16 insertions, 0 deletions
diff --git a/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua b/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua
index 96718f7cf..16ee84745 100644
--- a/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua
+++ b/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua
@@ -153,4 +153,9 @@ default_route.default = "balancer"
default_route.optional = false
default_route.rmempty = false
+lan_if = s:option(ListValue, "lan_if", translate("LAN Interface"))
+luci.tools.webadmin.cbi_add_networks(lan_if)
+lan_if.optional = false
+lan_if.rmempty = false
+
return m
diff --git a/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua b/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua
index e14dc0a9f..12301adde 100644
--- a/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua
+++ b/applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua
@@ -65,4 +65,9 @@ default_route.default = "balancer"
default_route.optional = false
default_route.rmempty = false
+lan_if = s:option(ListValue, "lan_if", translate("LAN Interface"))
+luci.tools.webadmin.cbi_add_networks(lan_if)
+lan_if.optional = false
+lan_if.rmempty = false
+
return m
diff --git a/applications/luci-multiwan/root/lib/uci/schema/default/multiwan b/applications/luci-multiwan/root/lib/uci/schema/default/multiwan
index d85d98d5e..75d430c95 100644
--- a/applications/luci-multiwan/root/lib/uci/schema/default/multiwan
+++ b/applications/luci-multiwan/root/lib/uci/schema/default/multiwan
@@ -15,6 +15,12 @@ config variable
option section 'multiwan.multiwan'
option required true
+config variable
+ option name 'lan_if'
+ option title 'LAN Interface'
+ option section 'multiwan.multiwan'
+ option required true
+
config section
option name 'interface'
option title 'WAN Interfaces'