mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-18 14:28:08 +00:00
Requires a project to be opened to start/stop/suspend all nodes. Fixes #1609
This commit is contained in:
parent
cba39a3744
commit
dcf94a5852
@ -1032,6 +1032,7 @@ class Project:
|
|||||||
except OSError as e:
|
except OSError as e:
|
||||||
raise aiohttp.web.HTTPInternalServerError(text="Could not write topology: {}".format(e))
|
raise aiohttp.web.HTTPInternalServerError(text="Could not write topology: {}".format(e))
|
||||||
|
|
||||||
|
@open_required
|
||||||
async def start_all(self):
|
async def start_all(self):
|
||||||
"""
|
"""
|
||||||
Start all nodes
|
Start all nodes
|
||||||
@ -1041,6 +1042,7 @@ class Project:
|
|||||||
pool.append(node.start)
|
pool.append(node.start)
|
||||||
await pool.join()
|
await pool.join()
|
||||||
|
|
||||||
|
@open_required
|
||||||
async def stop_all(self):
|
async def stop_all(self):
|
||||||
"""
|
"""
|
||||||
Stop all nodes
|
Stop all nodes
|
||||||
@ -1050,6 +1052,7 @@ class Project:
|
|||||||
pool.append(node.stop)
|
pool.append(node.stop)
|
||||||
await pool.join()
|
await pool.join()
|
||||||
|
|
||||||
|
@open_required
|
||||||
async def suspend_all(self):
|
async def suspend_all(self):
|
||||||
"""
|
"""
|
||||||
Suspend all nodes
|
Suspend all nodes
|
||||||
@ -1059,6 +1062,7 @@ class Project:
|
|||||||
pool.append(node.suspend)
|
pool.append(node.suspend)
|
||||||
await pool.join()
|
await pool.join()
|
||||||
|
|
||||||
|
@open_required
|
||||||
async def duplicate_node(self, node, x, y, z):
|
async def duplicate_node(self, node, x, y, z):
|
||||||
"""
|
"""
|
||||||
Duplicate a node
|
Duplicate a node
|
||||||
|
Loading…
Reference in New Issue
Block a user