mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-26 18:38:38 -06:00
Topology view: remove empty label in generated dot file.
Example line from generated dot file: set0 [width=0, shape=none, label=]; This is not accepted by graphviz v2.38.0.
This commit is contained in:
parent
66a16dd06b
commit
a860d6af37
@ -55,7 +55,7 @@ class TopologyMapView(APIView):
|
|||||||
subgraph = pydot.Subgraph('sg{}'.format(i), rank='same')
|
subgraph = pydot.Subgraph('sg{}'.format(i), rank='same')
|
||||||
|
|
||||||
# Add a pseudonode for each device_set to enforce hierarchical layout
|
# Add a pseudonode for each device_set to enforce hierarchical layout
|
||||||
subgraph.add_node(pydot.Node('set{}'.format(i), shape='none', width='0', label=''))
|
subgraph.add_node(pydot.Node('set{}'.format(i), shape='none', width='0'))
|
||||||
if i:
|
if i:
|
||||||
graph.add_edge(pydot.Edge('set{}'.format(i - 1), 'set{}'.format(i), style='invis'))
|
graph.add_edge(pydot.Edge('set{}'.format(i - 1), 'set{}'.format(i), style='invis'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user