mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Handle old projects.
This commit is contained in:
1 parent
2a3b37a3bd
commit
0d7d0a05c3
6 files changed
+52
-11
No files matched your search
@@ -63,3 +63,14 @@ class VPCS(BaseManager):
|
||||
"""
|
||||
|
||||
return self._used_mac_ids.get(vm_id, 1)
|
||||
|
||||
@staticmethod
|
||||
def get_legacy_vm_workdir_name(legacy_vm_id):
|
||||
"""
|
||||
Returns the name of the legacy working directory name for a VM.
|
||||
|
||||
:param legacy_vm_id: legacy VM identifier (integer)
|
||||
:returns: working directory name
|
||||
"""
|
||||
|
||||
return "pc-{}".format(legacy_vm_id)
|
||||
Reference in new issue
Block a user