1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-17 22:08:35 +00:00

Remove save config endpoint because in 2.O we auto save

This commit is contained in:
Julien Duponchelle 2016-07-27 13:33:30 +02:00
parent 0be973f2c5
commit 11af6f4f82
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 0 additions and 38 deletions

View File

@ -408,25 +408,6 @@ class DynamipsVMHandler:
response.set_status(200)
response.json(result)
@Route.post(
r"/projects/{project_id}/dynamips/nodes/{node_id}/configs/save",
parameters={
"project_id": "Project UUID",
"node_id": "Node UUID",
},
status_codes={
200: "Configs saved",
400: "Invalid request",
404: "Instance doesn't exist"
},
description="Save the startup and private configs content")
def save_configs(request, response):
dynamips_manager = Dynamips.instance()
vm = dynamips_manager.get_node(request.match_info["node_id"], project_id=request.match_info["project_id"])
yield from vm.save_configs()
response.set_status(200)
@Route.get(
r"/projects/{project_id}/dynamips/nodes/{node_id}/idlepc_proposals",
parameters={

View File

@ -344,25 +344,6 @@ class IOUHandler:
response.set_status(200)
response.json(result)
@Route.post(
r"/projects/{project_id}/iou/nodes/{node_id}/configs/save",
parameters={
"project_id": "Project UUID",
"node_id": "Node UUID"
},
status_codes={
200: "Configs saved",
400: "Invalid request",
404: "Instance doesn't exist"
},
description="Save the startup and private configs content")
def save_configs(request, response):
iou_manager = IOU.instance()
vm = iou_manager.get_node(request.match_info["node_id"], project_id=request.match_info["project_id"])
vm.save_configs()
response.set_status(200)
@Route.get(
r"/iou/images",
status_codes={