mwan3-luci: update to 1.3-3
authorAedan Renner <[email protected]>
Tue, 30 Sep 2014 15:50:31 +0000 (08:50 -0700)
committerEtienne CHAMPETIER <[email protected]>
Tue, 11 Nov 2014 22:00:13 +0000 (23:00 +0100)
corrected name of last_resort option from "main" to "default"
added blackhole option to policy selection on rule configuration

Signed-off-by: Aedan Renner <[email protected]>
net/mwan3-luci/Makefile
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policy.lua
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policyconfig.lua
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_ruleconfig.lua

index 25ae76763a6f46a15f338329d91b0c4aa0829e83..5405fc10a6814019c9d98f859fa1bde69dffd22f 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luci-app-mwan3
 PKG_VERSION:=1.3
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_MAINTAINER:=Aedan Renner <[email protected]>
 PKG_LICENSE:=GPLv2
 
index ef09451fbd8212b43eb084fbce67c6f7d56491f1..84d610f6191e0039c4a2f1c82d881661b7f3d05e 100644 (file)
@@ -72,12 +72,12 @@ last_resort = mwan_policy:option(DummyValue, "last_resort", translate("Last reso
        last_resort.rawhtml = true
        function last_resort.cfgvalue(self, s)
                local str = self.map:get(s, "last_resort")
-               if str == "unreachable" or str == "" or str == null then
-                       return "unreachable (reject)"
-               elseif str == "blackhole" then
+               if str == "blackhole" then
                        return "blackhole (drop)"
-               elseif str == "main" then
-                       return "main (use main routing table)"
+               elseif str == "default" then
+                       return "default (use main routing table)"
+               else
+                       return "unreachable (reject)"
                end
        end
 
index dfd7253378834f91b7b58f327965303893b3c128..ddcff57940f98adabc98e8cdfa90f9bdba0034ba 100644 (file)
@@ -50,7 +50,7 @@ last_resort = mwan_policy:option(ListValue, "last_resort", translate("Last resor
        last_resort.default = "unreachable"
        last_resort:value("unreachable", translate("unreachable (reject)"))
        last_resort:value("blackhole", translate("blackhole (drop)"))
-       last_resort:value("main", translate("main (use main routing table)"))
+       last_resort:value("default", translate("default (use main routing table)"))
 
 
 -- ------ currently configured members ------ --
index 21a01b86388c880e3c07058ef21ff2782fc5f794..404c27f8ba0a361de66dd8f3f6d52141303b78b0 100644 (file)
@@ -83,8 +83,9 @@ proto = mwan_rule:option(Value, "proto", translate("Protocol"),
 
 use_policy = mwan_rule:option(Value, "use_policy", translate("Policy assigned"))
        cbi_add_policy(use_policy)
-       use_policy:value("unreachable")
-       use_policy:value("default")
+       use_policy:value("unreachable", translate("unreachable (reject)"))
+       use_policy:value("blackhole", translate("blackhole (drop)"))
+       use_policy:value("default", translate("default (use main routing table)"))
 
 
 -- ------ currently configured policies ------ --