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

+1
View File
@@ -353,6 +353,7 @@ class Controller:
self._computes[compute.id] = compute
# self.save()
if connect:
# call compute.connect() later to give time to the controller to be fully started
asyncio.get_event_loop().call_later(1, lambda: asyncio.ensure_future(compute.connect()))
self.notification.controller_emit("compute.created", compute.__json__())
return compute
+1
View File
@@ -203,6 +203,7 @@ class Drawing:
"""
:param topology_dump: Filter to keep only properties require for saving on disk
"""
if topology_dump:
return {
"drawing_id": self._id,
+2 -2
View File
@@ -31,8 +31,8 @@ from ..utils.qt import qt_font_to_style
from ..compute.dynamips import PLATFORMS_DEFAULT_RAM
from .controller_error import ControllerError
from gns3server.schemas.topology import Topology
from gns3server.schemas.dynamips_nodes import DynamipsCreate
from gns3server.schemas.controller.topology import Topology
from gns3server.schemas.compute.dynamips_nodes import DynamipsCreate
import logging