Housekeeper: implement get_housekeeper_count method
This method is required for horizon operation Change-Id: Iabef5b178183ec44e880ff7d85cd59cbd30aa340
This commit is contained in:
parent
956e2e6015
commit
e7c94d5c05
@ -104,3 +104,7 @@ class HousekeeperPluginBase(object):
|
|||||||
sorts=None, limit=None, marker=None,
|
sorts=None, limit=None, marker=None,
|
||||||
page_reverse=False):
|
page_reverse=False):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abc.abstractmethod
|
||||||
|
def get_housekeeper_count(self, context, filters=None):
|
||||||
|
pass
|
||||||
|
@ -4786,5 +4786,8 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
|||||||
self.housekeeper.run(context, name)
|
self.housekeeper.run(context, name)
|
||||||
return self.housekeeper.get(name)
|
return self.housekeeper.get(name)
|
||||||
|
|
||||||
|
def get_housekeeper_count(self, context, filters=None):
|
||||||
|
return len(self.housekeeper.list())
|
||||||
|
|
||||||
def _get_appservice_id(self, name):
|
def _get_appservice_id(self, name):
|
||||||
return self.nsx_v.vcns.get_application_id(name)
|
return self.nsx_v.vcns.get_application_id(name)
|
||||||
|
Loading…
Reference in New Issue
Block a user