Add caching for mdproxy & edge clusters for TZ validations
Change-Id: I6d4be7a243dffce93941b979e944c718e5262deb
This commit is contained in:
parent
adf69aba0f
commit
b73fd1bb24
@ -852,6 +852,10 @@ class NsxLibEdgeCluster(utils.NsxLibApiBase):
|
||||
def resource_type(self):
|
||||
return 'EdgeCluster'
|
||||
|
||||
@property
|
||||
def use_cache_for_get(self):
|
||||
return True
|
||||
|
||||
def get_transport_nodes(self, uuid):
|
||||
ec = self.get(uuid)
|
||||
members = []
|
||||
@ -970,6 +974,10 @@ class NsxLibMetadataProxy(utils.NsxLibApiBase):
|
||||
def resource_type(self):
|
||||
return 'MetadataProxy'
|
||||
|
||||
@property
|
||||
def use_cache_for_get(self):
|
||||
return True
|
||||
|
||||
def update(self, uuid, server_url=None, secret=None, edge_cluster_id=None):
|
||||
body = {}
|
||||
# update the relevant fields
|
||||
|
@ -1897,6 +1897,10 @@ class MetadataProxyDef(ResourceDef):
|
||||
def resource_type():
|
||||
return 'MetadataProxyConfig'
|
||||
|
||||
@staticmethod
|
||||
def resource_use_cache():
|
||||
return True
|
||||
|
||||
def path_defs(self):
|
||||
return (TenantDef,)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user