Move schemas between compute and controller subpackages

This commit is contained in:
grossmj committed 2021-04-15 18:12:08 +09:30
1 parent c59fc375f2
commit 9c850e0f2b
57 files changed
+332 -214

No files matched your search

-15
View File
@@ -120,18 +120,3 @@ class ProjectManager:
if project_id not in self._projects:
raise ComputeNotFoundError(f"Project ID {project_id} doesn't exist")
del self._projects[project_id]
def check_hardware_virtualization(self, source_node):
"""
Checks if hardware virtualization can be used.
:returns: boolean
"""
for project in self._projects.values():
for node in project.nodes:
if node == source_node:
continue
if node.hw_virtualization and node.__class__.__name__ != source_node.__class__.__name__:
return False
return True
+1 -1
View File
@@ -47,7 +47,7 @@ from ...utils.asyncio import monitor_process
from ...utils.images import md5sum
from ...utils import macaddress_to_int, int_to_macaddress
from gns3server.schemas.qemu_nodes import Qemu, QemuPlatform
from gns3server.schemas.compute.qemu_nodes import Qemu, QemuPlatform
import logging