mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
IOU + VirtualBox conversion of old projects.
This commit is contained in:
1 parent
85518a3cd6
commit
0eaad579c2
8 files changed
+79
-51
No files matched your search
@@ -34,17 +34,6 @@ from .qemu_vm import QemuVM
|
||||
class Qemu(BaseManager):
|
||||
_VM_CLASS = QemuVM
|
||||
|
||||
@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 "vm-{}".format(legacy_vm_id)
|
||||
|
||||
@staticmethod
|
||||
def binary_list():
|
||||
"""
|
||||
@@ -108,3 +97,16 @@ class Qemu(BaseManager):
|
||||
raise QemuError("Could not determine the Qemu version for {}".format(qemu_path))
|
||||
except subprocess.SubprocessError as e:
|
||||
raise QemuError("Error while looking for the Qemu version: {}".format(e))
|
||||
|
||||
@staticmethod
|
||||
def get_legacy_vm_workdir(legacy_vm_id, name):
|
||||
"""
|
||||
Returns the name of the legacy working directory name for a VM.
|
||||
|
||||
:param legacy_vm_id: legacy VM identifier (integer)
|
||||
:param: VM name (not used)
|
||||
|
||||
:returns: working directory name
|
||||
"""
|
||||
|
||||
return os.path.join("qemu", "vm-{}".format(legacy_vm_id))
|
||||
Reference in new issue
Block a user