mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Hides viewed interfaces from flow script config
This commit is contained in:
parent
d635c52bc6
commit
0c0e38c23e
3 changed files with 5 additions and 5 deletions
|
|
@ -14,8 +14,10 @@
|
|||
<label for='apply-interfaces'>{{i18n("config_scripts.select_interface", {}) }}:</label>
|
||||
<select multiple id='applied-interfaces' class='form-control'>
|
||||
|
||||
|
||||
{% for key, ifname in pairsByKeys(interface.getIfNames()) do %}
|
||||
<!-- In case of flows, viewed interfaces are not shown as we want flow configurations to only -->
|
||||
<!-- be applied to the view interface which stays on top of the viewed ones. -->
|
||||
<!-- Viewed interfaces are excluded using the boolean parameter passed to interface.getIfNames -->
|
||||
{% for key, ifname in pairsByKeys(interface.getIfNames(ternary(subdir == "flow", true, false))) do %}
|
||||
{% local label = getHumanReadableInterfaceName(ifname) %}
|
||||
<option value='{{key}}'>{{ label }}</option>
|
||||
{% end %}
|
||||
|
|
@ -61,4 +63,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue