Housekeeper: implement get_housekeeper_count method

This method is required for horizon operation

Change-Id: Iabef5b178183ec44e880ff7d85cd59cbd30aa340
This commit is contained in:
Kobi Samoray 2018-06-03 11:33:08 +03:00
parent 956e2e6015
commit e7c94d5c05
2 changed files with 7 additions and 0 deletions

View File

@ -104,3 +104,7 @@ class HousekeeperPluginBase(object):
sorts=None, limit=None, marker=None,
page_reverse=False):
pass
@abc.abstractmethod
def get_housekeeper_count(self, context, filters=None):
pass

View File

@ -4786,5 +4786,8 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
self.housekeeper.run(context, 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):
return self.nsx_v.vcns.get_application_id(name)