use neutron-lib for _model_query
The model_query module is in neutron-lib and the CommonDBMixin will eventually be removed. This patch swiches use of the _model_query method over to query_with_hooks from neutron-lib. Change-Id: I5f626c4aef1fba38c42a17c14861645f8c5d2129
This commit is contained in:
parent
ef81e5b565
commit
22acff71d0
@ -125,7 +125,8 @@ class QoSDbMixin(qos.QueuePluginBase):
|
|||||||
filters=filters, fields=fields)
|
filters=filters, fields=fields)
|
||||||
|
|
||||||
def _delete_network_queue_mapping(self, context, network_id):
|
def _delete_network_queue_mapping(self, context, network_id):
|
||||||
query = self._model_query(context, nsx_models.NetworkQueueMapping)
|
query = model_query.query_with_hooks(
|
||||||
|
context, nsx_models.NetworkQueueMapping)
|
||||||
with db_api.CONTEXT_WRITER.using(context):
|
with db_api.CONTEXT_WRITER.using(context):
|
||||||
binding = query.filter_by(network_id=network_id).first()
|
binding = query.filter_by(network_id=network_id).first()
|
||||||
if binding:
|
if binding:
|
||||||
|
Loading…
Reference in New Issue
Block a user