File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
netbox_interface_synchronization
templates/netbox_interface_synchronization Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class Config(PluginConfig):
55 name = 'netbox_interface_synchronization'
66 verbose_name = 'NetBox Interface Synchronization'
77 description = 'Syncing existing interfaces with the interfaces from a new device type in NetBox'
8- version = '4.0.0 '
8+ version = '4.0.1 '
99 author = 'Keith Knowles'
1010 author_email = '[email protected] ' 1111 default_settings = {
Original file line number Diff line number Diff line change 44{% block header %}
55 < nav class ="breadcrumb-container px-3 " aria-label ="breadcrumb ">
66 < ol class ="breadcrumb ">
7- < li class ="breadcrumb-item "> < a href ="{% url 'dcim:device_list' %} "> Devices </ a > </ li >
7+ < li class ="breadcrumb-item "> < a href ="{% url 'dcim:device_list' %} "> Device </ a > </ li >
88 < li class ="breadcrumb-item "> < a href ="{% url 'dcim:device_list' %}?site={{ device.site.slug }} "> {{ device.site }}</ a > </ li >
99 < li class ="breadcrumb-item "> < a href ="{% url 'dcim:device' pk=device.id %} "> {{ device }}</ a > </ li >
1010 </ ol >
3737
3838< p >
3939{% if templates_count == interfaces_count %}
40- The Device and Device Type have the same number of Interfaces.
40+ The Device Type and Device have the same Interfaces.
4141{% else %}
42- The Device and Device Type have a different number of Interfaces.< br >
43- Device: {{ interfaces_count }}< br >
44- Device Type : {{ templates_count }}
42+ The Device Type and Device have different Interfaces.< br >
43+ Device Type : {{ templates_count }}< br >
44+ Device: {{ interfaces_count }}
4545{% endif %}
4646</ p >
4747
5959 < th >
6060 < label class ="checkbox-group ">
6161 < input type ="checkbox " id ="add_to_device " onclick ="toggle(this) ">
62- Add To The Device
62+ Add
6363 </ label >
6464 </ th >
6565 </ tr >
7878 {% if not interface %}
7979 < label class ="checkbox-group ">
8080 < input type ="checkbox " name ="add_to_device " value ="{{ template.id }} " onclick ="uncheck(this) ">
81- Add To Device
81+ Add
8282 </ label >
8383 {% endif %}
8484 </ td >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ <h5 class="card-header">Number of Interfaces</h5>
33 < div class ="card-body ">
44 Total Interfaces: {{ interfaces|length }}< br >
55 {% if config.exclude_virtual_interfaces %}
6- Non-Virtual Interfaces: {{ real_interfaces|length }}< br >
6+ Pysical Interfaces: {{ real_interfaces|length }}< br >
77 {% endif %}
88 Interfaces in the assigned Device Type: {{ interface_templates|length }}
99 </ div >
Original file line number Diff line number Diff line change 55
66setup (
77 name = 'netbox-interface-synchronization' ,
8- version = '4.0.0 ' ,
8+ version = '4.0.1 ' ,
99 description = 'Syncing existing interfaces with the interfaces from a new device type in NetBox' ,
1010 long_description = long_description ,
1111 long_description_content_type = 'text/markdown' ,
You can’t perform that action at this time.
0 commit comments