Beispiel #1
0
 def delete_qos(self, tenant_id, qos_id):
     """Delete a QoS level"""
     LOG.debug("delete_qos() called\n")
     try:
         qos_level = cdb.get_qos(tenant_id, qos_id)
     except Exception:
         raise cexc.QosNotFound(tenant_id=tenant_id, qos_id=qos_id)
     return cdb.remove_qos(tenant_id, qos_id)
Beispiel #2
0
 def get_qos_details(self, tenant_id, qos_id):
     """Get QoS Details"""
     LOG.debug("get_qos_details() called\n")
     try:
         qos_level = cdb.get_qos(tenant_id, qos_id)
     except Exception:
         raise cexc.QosNotFound(tenant_id=tenant_id, qos_id=qos_id)
     return qos_level
Beispiel #3
0
 def rename_qos(self, tenant_id, qos_id, new_name):
     """Rename QoS level"""
     LOG.debug("rename_qos() called\n")
     try:
         qos_level = cdb.get_qos(tenant_id, qos_id)
     except Exception:
         raise cexc.QosNotFound(tenant_id=tenant_id, qos_id=qos_id)
     qos = cdb.update_qos(tenant_id, qos_id, new_name)
     return qos