Skip to content

Commit

Permalink
Merge pull request #1 from NetTech2001/development
Browse files Browse the repository at this point in the history
4.0.1
  • Loading branch information
NetTech2001 authored May 19, 2024
2 parents 6ef4b2c + de8d021 commit fd3b848
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Binary file modified docs/images/2_interface_comparison.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion netbox_interface_synchronization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Config(PluginConfig):
name = 'netbox_interface_synchronization'
verbose_name = 'NetBox Interface Synchronization'
description = 'Syncing existing interfaces with the interfaces from a new device type in NetBox'
version = '4.0.0'
version = '4.0.1'
author = 'Keith Knowles'
author_email = '[email protected]'
default_settings = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% block header %}
<nav class="breadcrumb-container px-3" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{% url 'dcim:device_list' %}">Devices</a></li>
<li class="breadcrumb-item"><a href="{% url 'dcim:device_list' %}">Device</a></li>
<li class="breadcrumb-item"><a href="{% url 'dcim:device_list' %}?site={{ device.site.slug }}">{{ device.site }}</a></li>
<li class="breadcrumb-item"><a href="{% url 'dcim:device' pk=device.id %}">{{ device }}</a></li>
</ol>
Expand Down Expand Up @@ -37,11 +37,11 @@

<p>
{% if templates_count == interfaces_count %}
The Device and Device Type have the same number of Interfaces.
The Device Type and Device have the same Interfaces.
{% else %}
The Device and Device Type have a different number of Interfaces.<br>
Device: {{ interfaces_count }}<br>
Device Type: {{ templates_count }}
The Device Type and Device have different Interfaces.<br>
Device Type: {{ templates_count }}<br>
Device: {{ interfaces_count }}
{% endif %}
</p>

Expand All @@ -59,7 +59,7 @@
<th>
<label class="checkbox-group">
<input type="checkbox" id="add_to_device" onclick="toggle(this)">
Add To The Device
Add
</label>
</th>
</tr>
Expand All @@ -78,7 +78,7 @@
{% if not interface %}
<label class="checkbox-group">
<input type="checkbox" name="add_to_device" value="{{ template.id }}" onclick="uncheck(this)">
Add To Device
Add
</label>
{% endif %}
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <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>
Pysical Interfaces: {{ real_interfaces|length }}<br>
{% endif %}
Interfaces in the assigned Device Type: {{ interface_templates|length }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='netbox-interface-synchronization',
version='4.0.0',
version='4.0.1',
description='Syncing existing interfaces with the interfaces from a new device type in NetBox',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit fd3b848

Please sign in to comment.