コード例 #1
0
ファイル: sfc_db.py プロジェクト: fzyitt/networking-sfc
 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)
コード例 #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)