def get_qos(tenant_id, qos_id):
 LOG.debug(_('get_qos() called'))
 session = db.get_session()
 try:
  qos = session.query(l2network_models.QoS).filter_by(tenant_id=tenant_id).filter_by(qos_id=qos_id).one()
  return qos
 except exc.NoResultFound:
  raise c_exc.QosNotFound(qos_id=qos_id, tenant_id=tenant_id)

def get_qos ( tenant_id , qos_id ) : LOG . debug ( _ ( 'get_qos() called' ) ) session = db . get_session ( ) try : qos = session . query ( l2network_models . QoS ) . filter_by ( tenant_id = tenant_id ) . filter_by ( qos_id = qos_id ) . one ( ) return qos except exc . NoResultFound : raise c_exc . QosNotFound ( qos_id = qos_id , tenant_id = tenant_id )
lists the qos given a tenant_id and qos_id .