Browse Source

Accept locale_service_id to get seg interfaces on T1

Issue: #2883940
Change-Id: Ibe3fd0e921e35afbe0c890d252a20613e7b4ccdb
changes/07/824807/1
Gautam Verma 4 months ago
parent
commit
9e8ce5f4ec
  1. 5
      vmware_nsxlib/v3/policy/core_resources.py

5
vmware_nsxlib/v3/policy/core_resources.py

@ -1372,10 +1372,11 @@ class NsxPolicyTier1Api(NsxPolicyResourceBase):
self._delete_with_retry(t1interface_def)
def list_segment_interface(self, tier1_id,
tenant=constants.POLICY_INFRA_TENANT):
tenant=constants.POLICY_INFRA_TENANT,
service_id=None):
t1interface_def = core_defs.Tier1InterfaceDef(
tier1_id=tier1_id,
service_id=self._locale_service_id(tier1_id),
service_id=service_id or self._locale_service_id(tier1_id),
tenant=tenant)
return self._list(t1interface_def)

Loading…
Cancel
Save