mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Compatibility for old node templates (those with default_symbol and hover_symbol properties).
This commit is contained in:
1 parent
8b1c68a0b7
commit
ab6fe6da1d
2 files changed
+11
-4
No files matched your search
@@ -434,11 +434,11 @@ class Project:
|
||||
:param dump: Dump topology to disk
|
||||
:param kwargs: See the documentation of node
|
||||
"""
|
||||
|
||||
if node_id in self._nodes:
|
||||
return self._nodes[node_id]
|
||||
|
||||
if node_type == "iou" and 'application_id' not in kwargs.keys():
|
||||
|
||||
kwargs['application_id'] = get_next_application_id(self._nodes.values())
|
||||
|
||||
node = Node(self, compute, name, node_id=node_id, node_type=node_type, **kwargs)
|
||||
|
||||
Reference in new issue
Block a user