mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Update project API
This commit is contained in:
9 files changed
+74
-54
No files matched your search
@@ -223,22 +223,6 @@ class Dynamips(BaseManager):
|
||||
if project.id in self._dynamips_ids:
|
||||
del self._dynamips_ids[project.id]
|
||||
|
||||
@asyncio.coroutine
|
||||
def project_moved(self, project):
|
||||
"""
|
||||
Called when a project is moved.
|
||||
|
||||
:param project: Project instance
|
||||
"""
|
||||
|
||||
for node in self._nodes.values():
|
||||
if node.project.id == project.id:
|
||||
yield from node.hypervisor.set_working_dir(project.module_working_directory(self.module_name.lower()))
|
||||
|
||||
for device in self._devices.values():
|
||||
if device.project.id == project.id:
|
||||
yield from device.hypervisor.set_working_dir(project.module_working_directory(self.module_name.lower()))
|
||||
|
||||
@property
|
||||
def dynamips_path(self):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user