Console support for clouds (to connect to external devices or services).

This commit is contained in:
grossmj
2018-06-10 17:43:29 +07:00
parent 40151cd1fe
commit 1f017a0d1d
3 changed files with 131 additions and 0 deletions

View File

@ -57,6 +57,13 @@ class CloudHandler:
request.json.get("node_id"),
node_type="cloud",
ports=request.json.get("ports_mapping"))
# add the remote console settings
node.remote_console_host = request.json.get("remote_console_host", node.remote_console_host)
node.remote_console_port = request.json.get("remote_console_port", node.remote_console_port)
node.remote_console_type = request.json.get("remote_console_type", node.remote_console_type)
node.remote_console_http_path = request.json.get("remote_console_http_path", node.remote_console_http_path)
response.set_status(201)
response.json(node)