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

@ -9,7 +9,8 @@ class Config(PluginConfig):
author = 'Victor Golovanenko' author = 'Victor Golovanenko'
author_email = 'drygdryg2014@yandex.ru' author_email = 'drygdryg2014@yandex.ru'
default_settings = { default_settings = {
'exclude_virtual_interfaces': True 'exclude_virtual_interfaces': True,
'include_interfaces_panel': False
} }

View File

@ -1,3 +1,4 @@
{% if config.include_interfaces_panel %}
<div class="card"> <div class="card">
<h5 class="card-header">Number of interfaces</h5> <h5 class="card-header">Number of interfaces</h5>
<div class="card-body"> <div class="card-body">
@ -8,3 +9,4 @@
Interfaces in the assigned device type: {{ interface_templates|length }} Interfaces in the assigned device type: {{ interface_templates|length }}
</div> </div>
</div> </div>
{% endif %}