Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
962e219325 |
@@ -4,7 +4,7 @@ class TopologyViewsConfig(PluginConfig):
|
|||||||
name = 'netbox_topology_views'
|
name = 'netbox_topology_views'
|
||||||
verbose_name = 'Topology views'
|
verbose_name = 'Topology views'
|
||||||
description = 'An plugin to render topology maps'
|
description = 'An plugin to render topology maps'
|
||||||
version = '1.0.0-alpha.5'
|
version = '1.0.0-alpha.6'
|
||||||
author = 'Mattijs Vanhaverbeke'
|
author = 'Mattijs Vanhaverbeke'
|
||||||
author_email = 'author@example.com'
|
author_email = 'author@example.com'
|
||||||
base_url = 'netbox_topology_views'
|
base_url = 'netbox_topology_views'
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ def get_topology_data(queryset, hide_unconnected):
|
|||||||
|
|
||||||
if "coordinates" in qs_device.custom_field_data:
|
if "coordinates" in qs_device.custom_field_data:
|
||||||
if qs_device.custom_field_data["coordinates"] is not None:
|
if qs_device.custom_field_data["coordinates"] is not None:
|
||||||
|
if ';' in qs_device.custom_field_data["coordinates"]:
|
||||||
cords = qs_device.custom_field_data["coordinates"].split(";")
|
cords = qs_device.custom_field_data["coordinates"].split(";")
|
||||||
node["x"] = int(cords[0])
|
node["x"] = int(cords[0])
|
||||||
node["y"] = int(cords[1])
|
node["y"] = int(cords[1])
|
||||||
|
|||||||
Generated
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "netbox_topology_views",
|
"name": "netbox_topology_views",
|
||||||
"version": "1.0.0-alpha.45",
|
"version": "1.0.0-alpha.6",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "netbox_topology_views",
|
"name": "netbox_topology_views",
|
||||||
"version": "1.0.0-alpha.45",
|
"version": "1.0.0-alpha.6",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"resources": "gulp build",
|
"resources": "gulp build",
|
||||||
"resources_dev": "gulp build_dev"
|
"resources_dev": "gulp build_dev"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='netbox-topology-views',
|
name='netbox-topology-views',
|
||||||
version='1.0.0-alpha.5',
|
version='1.0.0-alpha.6',
|
||||||
description='An NetBox plugin to create Topology maps',
|
description='An NetBox plugin to create Topology maps',
|
||||||
url='https://github.com/mattieserver/netbox-topology-views',
|
url='https://github.com/mattieserver/netbox-topology-views',
|
||||||
author='Mattijs Vanhaverbeke',
|
author='Mattijs Vanhaverbeke',
|
||||||
|
|||||||
Reference in New Issue
Block a user