From 119730448df2776fbd8575f3a91dcc60f68780e0 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 15 Jan 2018 08:48:14 +0100 Subject: [PATCH] luci-app-mwan3: remove unnecessary table information - memberconfg view: remove interface table information it is already reflected in the interface dropdown - policyconfig view: remove member table information it is already refelected in the member dropdown - ruleconfig view: remove policy table information it is already reflected in the policy dropdown Signed-off-by: Florian Eckert --- .../luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua | 10 ---------- .../luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua | 10 ---------- .../luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua | 10 ---------- 3 files changed, 30 deletions(-) diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua index 220c4bddd..8b606cdeb 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua @@ -34,14 +34,4 @@ weight = mwan_member:option(Value, "weight", translate("Weight"), translate("Acceptable values: 1-1000. Defaults to 1 if not set")) weight.datatype = "range(1, 1000)" - --- ------ currently configured interfaces ------ -- - -mwan_interface = m5:section(TypedSection, "interface", translate("Currently Configured Interfaces")) - mwan_interface.addremove = false - mwan_interface.dynamic = false - mwan_interface.sortable = false - mwan_interface.template = "cbi/tblsection" - - return m5 diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua index cdf6521a7..b9ff321a1 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua @@ -52,14 +52,4 @@ last_resort = mwan_policy:option(ListValue, "last_resort", translate("Last resor last_resort:value("blackhole", translate("blackhole (drop)")) last_resort:value("default", translate("default (use main routing table)")) - --- ------ currently configured members ------ -- - -mwan_member = m5:section(TypedSection, "member", translate("Currently Configured Members")) - mwan_member.addremove = false - mwan_member.dynamic = false - mwan_member.sortable = false - mwan_member.template = "cbi/tblsection" - - return m5 diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua index 87c4691af..812d46365 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua @@ -100,14 +100,4 @@ use_policy = mwan_rule:option(Value, "use_policy", translate("Policy assigned")) use_policy:value("blackhole", translate("blackhole (drop)")) use_policy:value("default", translate("default (use main routing table)")) - --- ------ currently configured policies ------ -- - -mwan_policy = m5:section(TypedSection, "policy", translate("Currently Configured Policies")) - mwan_policy.addremove = false - mwan_policy.dynamic = false - mwan_policy.sortable = false - mwan_policy.template = "cbi/tblsection" - - return m5 -- 2.11.0