v0.4.3
This commit is contained in:
@@ -4,7 +4,7 @@ class TopologyViewsConfig(PluginConfig):
|
||||
name = 'netbox_topology_views'
|
||||
verbose_name = 'Topology views'
|
||||
description = 'An plugin to render toplogoy maps'
|
||||
version = '0.4.2'
|
||||
version = '0.4.3'
|
||||
author = 'Mattijs Vanhaverbeke'
|
||||
author_email = 'author@example.com'
|
||||
base_url = 'topology-views'
|
||||
|
||||
@@ -159,11 +159,11 @@ class SearchViewSet(GenericViewSet):
|
||||
cable_role_name = device.device_type.display_name
|
||||
if cable_role_name is None:
|
||||
cable_role_name = "device role name unkown"
|
||||
|
||||
|
||||
node = {}
|
||||
node["id"] = device.id
|
||||
node["name"] = dev_name
|
||||
node["label"] = dev_name + " " + cable_role_name
|
||||
node["label"] = dev_name + " {" + cable_role_name + "}"
|
||||
node["shape"] = 'image'
|
||||
if device.device_role.slug in settings.PLUGINS_CONFIG["netbox_topology_views"]["device_img"]:
|
||||
node["image"] = '../../static/netbox_topology_views/img/' + device.device_role.slug + ".png"
|
||||
|
||||
Reference in New Issue
Block a user