mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Save configs when project is committed.
This commit is contained in:
1 parent
628dfef0d3
commit
2d6d153262
3 files changed
+25
No files matched your search
@@ -199,6 +199,19 @@ class Dynamips(BaseManager):
|
||||
if device.project.id == project.id:
|
||||
yield from device.hypervisor.set_working_dir(project.module_working_directory(self.module_name.lower()))
|
||||
|
||||
@asyncio.coroutine
|
||||
def project_committed(self, project):
|
||||
"""
|
||||
Called when a project has been committed.
|
||||
|
||||
:param project: Project instance
|
||||
"""
|
||||
|
||||
# save the configs when the project is committed
|
||||
for vm in self._vms.values():
|
||||
if vm.project.id == project.id:
|
||||
yield from vm.save_configs()
|
||||
|
||||
@property
|
||||
def dynamips_path(self):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user