示例#1
0
def get_deep_attr(uuid, root_attr, attr):
    if request.method == 'GET':
        return methods.get_vm_attribute(uuid, attr, root_attr)
示例#2
0
def get_attr(uuid, attr):
    if request.method == 'GET':
        return methods.get_vm_attribute(uuid, attr)
示例#3
0
def get_attr(uuid, attr):
    if request.method == 'GET':
        return methods.get_vm_attribute(uuid, attr)
    elif request.method == 'PUT' and attr.lower() == "pxeboot":
            specs = request.get_json()
            return methods.force_pxe_boot(uuid, specs)