Added possibility to exclude interfaces panel

This commit is contained in:
rizlas
2022-01-11 16:21:11 +01:00
parent 00cedbd589
commit 729218f577
2 changed files with 13 additions and 10 deletions

View File

@@ -1,10 +1,12 @@
<div class="card">
<h5 class="card-header">Number of interfaces</h5>
<div class="card-body">
Total interfaces: {{ interfaces|length }}<br>
{% if config.exclude_virtual_interfaces %}
Non-virtual interfaces: {{ real_interfaces|length }}<br>
{% endif %}
Interfaces in the assigned device type: {{ interface_templates|length }}
{% if config.include_interfaces_panel %}
<div class="card">
<h5 class="card-header">Number of interfaces</h5>
<div class="card-body">
Total interfaces: {{ interfaces|length }}<br>
{% if config.exclude_virtual_interfaces %}
Non-virtual interfaces: {{ real_interfaces|length }}<br>
{% endif %}
Interfaces in the assigned device type: {{ interface_templates|length }}
</div>
</div>
</div>
{% endif %}