Example #1
0
 def _get_flow_classifier(self, context, id):
     try:
         return self._get_by_id(context, fc_db.FlowClassifier, id)
     except exc.NoResultFound:
         raise ext_fc.FlowClassifierNotFound(id=id)
Example #2
0
 def _get_flow_classifier(self, context, id):
     try:
         return model_query.get_by_id(context, FlowClassifier, id)
     except exc.NoResultFound:
         raise fc_ext.FlowClassifierNotFound(id=id)