From dcf94a585209ebbb979773769528555a8191559f Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 10 Jul 2019 17:07:13 +0200 Subject: [PATCH] Requires a project to be opened to start/stop/suspend all nodes. Fixes #1609 --- gns3server/controller/project.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gns3server/controller/project.py b/gns3server/controller/project.py index 0c0093ab..c8bbd45e 100644 --- a/gns3server/controller/project.py +++ b/gns3server/controller/project.py @@ -1032,6 +1032,7 @@ class Project: except OSError as e: raise aiohttp.web.HTTPInternalServerError(text="Could not write topology: {}".format(e)) + @open_required async def start_all(self): """ Start all nodes @@ -1041,6 +1042,7 @@ class Project: pool.append(node.start) await pool.join() + @open_required async def stop_all(self): """ Stop all nodes @@ -1050,6 +1052,7 @@ class Project: pool.append(node.stop) await pool.join() + @open_required async def suspend_all(self): """ Suspend all nodes @@ -1059,6 +1062,7 @@ class Project: pool.append(node.suspend) await pool.join() + @open_required async def duplicate_node(self, node, x, y, z): """ Duplicate a node