diff --git a/vmware_nsx/db/qos_db.py b/vmware_nsx/db/qos_db.py index e3269ce4e6..76a78d1732 100644 --- a/vmware_nsx/db/qos_db.py +++ b/vmware_nsx/db/qos_db.py @@ -125,7 +125,8 @@ class QoSDbMixin(qos.QueuePluginBase): filters=filters, fields=fields) 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): binding = query.filter_by(network_id=network_id).first() if binding: