mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 22:41:12 +02:00
Use uuid4() for temporary node name while duplicating a node.
This commit is contained in:
1 parent
0854c04687
commit
47e8392ceb
3 files changed
+4
-4
No files matched your search
@@ -282,7 +282,7 @@ class BaseManager:
|
||||
# We force a refresh of the name. This force the rewrite
|
||||
# of some configuration files
|
||||
node_name = destination_node.name
|
||||
destination_node.name = node_name + "tmp"
|
||||
destination_node.name = node_name + str(uuid4())
|
||||
destination_node.name = node_name
|
||||
|
||||
return destination_node
|
||||
|
||||
@@ -614,7 +614,7 @@ class Dynamips(BaseManager):
|
||||
source_node = self.get_node(source_node_id)
|
||||
destination_node = self.get_node(destination_node_id)
|
||||
|
||||
# Non router gears
|
||||
# Not a Dynamips router
|
||||
if not hasattr(source_node, "startup_config_path"):
|
||||
return (yield from super().duplicate_node(source_node_id, destination_node_id))
|
||||
|
||||
|
||||
Reference in new issue
Block a user