def delete(self, request, node_id): """Take a specified node out of the maintenance state :param request: HTTP request. :param node_id: Node name or uuid. :return: Return code. """ return ironic.node_set_maintenance(request, node_id, 'off')
def delete(self, request, node_id): """Take a specified node out of the maintetance state :param request: HTTP request. :param node_id: Node name or uuid :return: Return code """ return ironic.node_set_maintenance(request, node_id, 'off')
def patch(self, request, node_id): """Put a specified node into maintenance state :param request: HTTP request. :param node_id: Node name or uuid. :return: Return code. """ maint_reason = request.DATA.get('maint_reason') return ironic.node_set_maintenance( request, node_id, 'on', maint_reason=maint_reason)
def patch(self, request, node_id): """Put a specified node into maintetance state :param request: HTTP request. :param node_id: Node name or uuid :return: Return code """ maint_reason = request.DATA.get('maint_reason') return ironic.node_set_maintenance( request, node_id, 'on', maint_reason=maint_reason)