Describe set SLA related function

This commit is contained in:
jmlim 2018-09-20 15:49:48 +09:00
parent b3edc8f40c
commit 8551dad68f
1 changed files with 1 additions and 1 deletions

View File

@ -167,6 +167,7 @@ vms = VM_info
# Stella-OpenStack API list
# /stella : Check status of Stella scheduler and Stella-OpenStack
# /stella/vms : Returns the list of VMs and information of each VMs
# /stella/vms/sla: Set SLA for VM. Use instance name in horizon as a Input
# /stella/hypervisor : Returns Hypervisor IP address
@app.route('/stella/', methods=['GET'])
def StellaAPI_Status():
@ -176,7 +177,6 @@ def StellaAPI_Status():
def StellaAPI_listVMs():
return jsonify(vms.print_all(vms))
@app.route('/stella/vms/sla', methods=['POST'])
def StellaAPI_Set_SLA_VM():
if not request.json or not 'name' in request.json: