Update changes for _get_marker_obj

Part of the common db mixin refactor.

Change-Id: I54d96cd7eaae20da40f33f7f3787435e807fcd4c
Depends-On: I1e2da0687310cc2da767dc2a6d13500307bba1ee
This commit is contained in:
Gary Kotton 2017-04-26 22:59:51 -07:00 committed by Adit Sarfaty
parent d2a4845feb
commit d58a10362f
2 changed files with 4 additions and 3 deletions

View File

@ -265,7 +265,7 @@ class NetworkGatewayMixin(networkgw.NetworkGatewayPluginBase):
def get_network_gateways(self, context, filters=None, fields=None,
sorts=None, limit=None, marker=None,
page_reverse=False):
marker_obj = self._get_marker_obj(
marker_obj = db_utils.get_marker_obj(self,
context, 'network_gateway', limit, marker)
return model_query.get_collection(context, nsx_models.NetworkGateway,
self._make_network_gateway_dict,
@ -420,7 +420,7 @@ class NetworkGatewayMixin(networkgw.NetworkGatewayPluginBase):
filters=None, sorts=None,
limit=None, marker=None,
page_reverse=None):
marker_obj = self._get_marker_obj(
marker_obj = db_utils.get_marker_obj(self,
context, 'gateway_device', limit, marker)
return self._get_collection_query(context,
nsx_models.NetworkGatewayDevice,

View File

@ -63,7 +63,8 @@ class QoSDbMixin(qos.QueuePluginBase):
def get_qos_queues(self, context, filters=None, fields=None, sorts=None,
limit=None, marker=None, page_reverse=False):
marker_obj = self._get_marker_obj(context, 'qos_queue', limit, marker)
marker_obj = db_utils.get_marker_obj(self, context, 'qos_queue',
limit, marker)
return model_query.get_collection(context, nsx_models.QoSQueue,
self._make_qos_queue_dict,
filters=filters, fields=fields,