luci-app-mwan3: remove configuration tab 1526/head
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 11 Jan 2018 13:10:01 +0000 (14:10 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 11 Jan 2018 14:11:14 +0000 (15:11 +0100)
remove configuration tab

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/controller/mwan3.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua

index e8c818ee3d40e39ad812b16103abb55d81f8ae50..f429cc60fff41ed315373ecbb4549e5476039632 100644 (file)
@@ -33,27 +33,25 @@ function index()
 
 
        entry({"admin", "network", "mwan"},
-               alias("admin", "network", "mwan", "configuration"),
+               alias("admin", "network", "mwan", "interface"),
                _("Load Balancing"), 600)
 
-       entry({"admin", "network", "mwan", "configuration"},
-               alias("admin", "network", "mwan", "configuration", "interface"),
-               _("Configuration"), 20)
-       entry({"admin", "network", "mwan", "configuration", "globals"},
-               cbi("mwan/globalsconfig"),_("Globals"), 5).leaf = true
-       entry({"admin", "network", "mwan", "configuration", "interface"},
+       entry({"admin", "network", "mwan", "globals"},
+               cbi("mwan/globalsconfig"),
+               _("Globals"), 5).leaf = true
+       entry({"admin", "network", "mwan", "interface"},
                arcombine(cbi("mwan/interface"), cbi("mwan/interfaceconfig")),
                _("Interfaces"), 10).leaf = true
-       entry({"admin", "network", "mwan", "configuration", "member"},
+       entry({"admin", "network", "mwan", "member"},
                arcombine(cbi("mwan/member"), cbi("mwan/memberconfig")),
                _("Members"), 20).leaf = true
-       entry({"admin", "network", "mwan", "configuration", "policy"},
+       entry({"admin", "network", "mwan", "policy"},
                arcombine(cbi("mwan/policy"), cbi("mwan/policyconfig")),
                _("Policies"), 30).leaf = true
-       entry({"admin", "network", "mwan", "configuration", "rule"},
+       entry({"admin", "network", "mwan", "rule"},
                arcombine(cbi("mwan/rule"), cbi("mwan/ruleconfig")),
                _("Rules"), 40).leaf = true
-       entry({"admin", "network", "mwan", "configuration", "notify"},
+       entry({"admin", "network", "mwan", "notify"},
                cbi("mwan/notify"),
                _("Notification"), 50).leaf = true
 end
index 5ee5fb39f3f30e4f11b76d4453ad130ee212aac5..77198d5c399eea93a93935e46f95ed58ac2f50f4 100644 (file)
@@ -114,11 +114,11 @@ mwan_interface = m5:section(TypedSection, "interface", translate("Interfaces"),
        mwan_interface.sectionhead = translate("Interface")
        mwan_interface.sortable = false
        mwan_interface.template = "cbi/tblsection"
-       mwan_interface.extedit = dsp.build_url("admin", "network", "mwan", "configuration", "interface", "%s")
+       mwan_interface.extedit = dsp.build_url("admin", "network", "mwan", "interface", "%s")
        function mwan_interface.create(self, section)
                TypedSection.create(self, section)
                m5.uci:save("mwan3")
-               luci.http.redirect(dsp.build_url("admin", "network", "mwan", "configuration", "interface", section))
+               luci.http.redirect(dsp.build_url("admin", "network", "mwan", "interface", section))
        end
 
 
index a7d7c5af7e5789a52173ec8b8ac4f99b66bf6e96..86e959771e9c695d653b15e1bde16745eae7d4ba 100644 (file)
@@ -89,7 +89,7 @@ interfaceCheck()
 
 m5 = Map("mwan3", translatef("MWAN Interface Configuration - %s", arg[1]),
        interfaceWarnings())
-       m5.redirect = dsp.build_url("admin", "network", "mwan", "configuration", "interface")
+       m5.redirect = dsp.build_url("admin", "network", "mwan", "interface")
 
 
 mwan_interface = m5:section(NamedSection, arg[1], "interface", "")
index efbe8f79028c9c989f62a7a8b3960057f3ac5928..b73ee576528871d22ae2f8b32dd4c310453c052d 100644 (file)
@@ -16,11 +16,11 @@ mwan_member = m5:section(TypedSection, "member", translate("Members"),
        mwan_member.sectionhead = translate("Member")
        mwan_member.sortable = true
        mwan_member.template = "cbi/tblsection"
-       mwan_member.extedit = ds.build_url("admin", "network", "mwan", "configuration", "member", "%s")
+       mwan_member.extedit = ds.build_url("admin", "network", "mwan", "member", "%s")
        function mwan_member.create(self, section)
                TypedSection.create(self, section)
                m5.uci:save("mwan3")
-               luci.http.redirect(ds.build_url("admin", "network", "mwan", "configuration", "member", section))
+               luci.http.redirect(ds.build_url("admin", "network", "mwan", "member", section))
        end
 
 
index dc2e0da4477ab1fd0a3354762f6e713e6cefef61..220c4bddd60b5eaf628828913783fcb41e30da37 100644 (file)
@@ -15,7 +15,7 @@ arg[1] = arg[1] or ""
 
 
 m5 = Map("mwan3", translatef("MWAN Member Configuration - %s", arg[1]))
-       m5.redirect = dsp.build_url("admin", "network", "mwan", "configuration", "member")
+       m5.redirect = dsp.build_url("admin", "network", "mwan", "member")
 
 
 mwan_member = m5:section(NamedSection, arg[1], "member", "")
index 6640564d50cb7b7a206ff7548a3e313ee8a83365..495b45e64683cbc8bb4126e078752b0c6ae76922 100644 (file)
@@ -45,11 +45,11 @@ mwan_policy = m5:section(TypedSection, "policy", translate("Policies"),
        mwan_policy.sectionhead = translate("Policy")
        mwan_policy.sortable = true
        mwan_policy.template = "cbi/tblsection"
-       mwan_policy.extedit = ds.build_url("admin", "network", "mwan", "configuration", "policy", "%s")
+       mwan_policy.extedit = ds.build_url("admin", "network", "mwan", "policy", "%s")
        function mwan_policy.create(self, section)
                TypedSection.create(self, section)
                m5.uci:save("mwan3")
-               luci.http.redirect(ds.build_url("admin", "network", "mwan", "configuration", "policy", section))
+               luci.http.redirect(ds.build_url("admin", "network", "mwan", "policy", section))
        end
 
 
index feb62dc8a307f7d4f8bf5daa905d8f1228b7c4f8..cdf6521a79ce87415c43004bc91e50f6416115dc 100644 (file)
@@ -34,7 +34,7 @@ policyCheck()
 
 m5 = Map("mwan3", translatef("MWAN Policy Configuration - %s", arg[1]),
        policyWarn())
-       m5.redirect = dsp.build_url("admin", "network", "mwan", "configuration", "policy")
+       m5.redirect = dsp.build_url("admin", "network", "mwan", "policy")
 
 
 mwan_policy = m5:section(NamedSection, arg[1], "policy", "")
index 9cb4756fc802207ec9241401fb1d9c7c9336b4b2..586f174b28db8e947870fe9375d5d4d522839de5 100644 (file)
@@ -50,11 +50,11 @@ mwan_rule = m5:section(TypedSection, "rule", translate("Traffic Rules"),
        mwan_rule.sectionhead = translate("Rule")
        mwan_rule.sortable = true
        mwan_rule.template = "cbi/tblsection"
-       mwan_rule.extedit = dsp.build_url("admin", "network", "mwan", "configuration", "rule", "%s")
+       mwan_rule.extedit = dsp.build_url("admin", "network", "mwan", "rule", "%s")
        function mwan_rule.create(self, section)
                TypedSection.create(self, section)
                m5.uci:save("mwan3")
-               luci.http.redirect(dsp.build_url("admin", "network", "mwan", "configuration", "rule", section))
+               luci.http.redirect(dsp.build_url("admin", "network", "mwan", "rule", section))
        end
 
 
index cb1b45d2611a38ffd8ef0a20a62329197eadb6e2..87c4691af4667aea5ceb0f50c48cf0af2c440431 100644 (file)
@@ -47,7 +47,7 @@ ruleCheck()
 
 m5 = Map("mwan3", translatef("MWAN Rule Configuration - %s", arg[1]),
        ruleWarn())
-       m5.redirect = dsp.build_url("admin", "network", "mwan", "configuration", "rule")
+       m5.redirect = dsp.build_url("admin", "network", "mwan", "rule")
 
 
 mwan_rule = m5:section(NamedSection, arg[1], "rule", "")