mirror of
https://github.com/drygdryg/netbox-plugin-interface-sync
synced 2025-04-18 15:52:58 +03:00
Final Details
Just fixing some text formatting.
This commit is contained in:
parent
069f7a152a
commit
6a4610894e
@ -3,8 +3,8 @@ from netbox.plugins import PluginConfig
|
|||||||
|
|
||||||
class Config(PluginConfig):
|
class Config(PluginConfig):
|
||||||
name = 'netbox_interface_sync'
|
name = 'netbox_interface_sync'
|
||||||
verbose_name = 'NetBox interface synchronization'
|
verbose_name = 'NetBox Interface Synchronization'
|
||||||
description = 'Syncing interfaces with the interfaces from device type for NetBox 4'
|
description = 'Syncing Device Interfaces with the Interfaces from Device Type for NetBox 4'
|
||||||
version = '0.4.1'
|
version = '0.4.1'
|
||||||
author = 'Keith Knowles'
|
author = 'Keith Knowles'
|
||||||
author_email = 'mkknowles@outlook.com'
|
author_email = 'mkknowles@outlook.com'
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<a href="{% url 'plugins:netbox_interface_sync:interface_comparison' device_id=device.id %}" class="btn btn-purple"><i class="mdi mdi-sync" aria-hidden="true"></i>
|
<a href="{% url 'plugins:netbox_interface_sync:interface_comparison' device_id=device.id %}" class="btn btn-purple"><i class="mdi mdi-sync" aria-hidden="true"></i>
|
||||||
Interface Sync
|
Sync Interfaces
|
||||||
</a>
|
</a>
|
||||||
|
@ -37,11 +37,11 @@ function uncheck(event) {
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% if templates_count == interfaces_count %}
|
{% if templates_count == interfaces_count %}
|
||||||
The device and device type have the same number of interfaces.
|
The Device and Device Type have the same number of Interfaces.
|
||||||
{% else %}
|
{% else %}
|
||||||
The device and device type have a different number of interfaces.<br>
|
The Device and Device Type have a different number of Interfaces.<br>
|
||||||
Device: {{ interfaces_count }}<br>
|
Device: {{ interfaces_count }}<br>
|
||||||
Device type: {{ templates_count }}
|
Device Type: {{ templates_count }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<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">
|
||||||
Total interfaces: {{ interfaces|length }}<br>
|
Total Interfaces: {{ interfaces|length }}<br>
|
||||||
{% if config.exclude_virtual_interfaces %}
|
{% if config.exclude_virtual_interfaces %}
|
||||||
Non-virtual interfaces: {{ real_interfaces|length }}<br>
|
Non-Virtual Interfaces: {{ real_interfaces|length }}<br>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Interfaces in the assigned device type: {{ interface_templates|length }}
|
Interfaces in the assigned Device Type: {{ interface_templates|length }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
x
Reference in New Issue
Block a user