Hides viewed interfaces from flow script config

This commit is contained in:
Simone Mainardi 2020-01-09 11:26:13 +01:00
parent d635c52bc6
commit 0c0e38c23e
3 changed files with 5 additions and 5 deletions

View file

@ -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>