luci-mod-admin-full: make mirror port settings depend on mirror enable
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
6f49ab92e5
commit
9b5046259f
1 changed files with 6 additions and 0 deletions
|
@ -107,6 +107,12 @@ m.uci:foreach("network", "switch",
|
|||
local sp = s:option(ListValue, "mirror_source_port", translate("Mirror source port"))
|
||||
local mp = s:option(ListValue, "mirror_monitor_port", translate("Mirror monitor port"))
|
||||
|
||||
sp:depends("enable_mirror_tx", "1")
|
||||
sp:depends("enable_mirror_rx", "1")
|
||||
|
||||
mp:depends("enable_mirror_tx", "1")
|
||||
mp:depends("enable_mirror_rx", "1")
|
||||
|
||||
local pt
|
||||
for pt = 0, num_ports - 1 do
|
||||
local name
|
||||
|
|
Loading…
Reference in a new issue