Browse Source

Merge "Add silent flags to LB actions"

changes/48/748548/1
Zuul 2 years ago committed by Gerrit Code Review
parent
commit
5f35ca3299
  1. 10
      vmware_nsxlib/v3/policy/lb_resources.py

10
vmware_nsxlib/v3/policy/lb_resources.py

@ -719,20 +719,22 @@ class NsxPolicyLoadBalancerServiceApi(NsxPolicyResourceBase):
_update()
def get_statistics(self, lb_service_id,
tenant=constants.POLICY_INFRA_TENANT):
tenant=constants.POLICY_INFRA_TENANT,
silent=False):
lb_service_stats_def = (
lb_defs.LBServiceStatisticsDef(
lb_service_id=lb_service_id,
tenant=tenant))
return self.policy_api.get(lb_service_stats_def)
return self.policy_api.get(lb_service_stats_def, silent=silent)
def get_status(self, lb_service_id,
tenant=constants.POLICY_INFRA_TENANT):
tenant=constants.POLICY_INFRA_TENANT,
silent=False):
lb_service_status_def = (
lb_defs.LBServiceStatusDef(
lb_service_id=lb_service_id,
tenant=tenant))
return self.policy_api.get(lb_service_status_def)
return self.policy_api.get(lb_service_status_def, silent=silent)
def get_virtual_server_status(self, lb_service_id, lb_virtual_server_id,
tenant=constants.POLICY_INFRA_TENANT):

Loading…
Cancel
Save