Browse Source

Add silent flags to LB actions

Change-Id: Ibb6646cb5faf14a0555f4790b674e2642d6d607e
changes/15/748115/1
asarfaty 2 years ago
parent
commit
c323f6af1e
  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