Skip to content

Commit 84ce879

Browse files
authored
Adapt API changes to TGW HA config (#2006) (#2014)
Transit gateway high_availability_config attribute has been replaced with centralized_config chile object with a separate API. Signed-off-by: Kobi Samoray <kobi.samoray@broadcom.com>
1 parent afc5d6a commit 84ce879

File tree

5 files changed

+375
-67
lines changed

5 files changed

+375
-67
lines changed

docs/resources/policy_transit_gateway.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ The following arguments are supported:
3636
* `tag` - (Optional) A list of scope + tag pairs to associate with this resource.
3737
* `nsx_id` - (Optional) The NSX ID of this resource. If set, this ID will be used to create the resource.
3838
* `transit_subnets` - (Optional) Array of IPV4 CIDRs for internal VPC attachment networks.
39-
* `high_availability_config` - (Optional) Transit Gateway high availability config centralized transit gateway. Available since NSX 9.1.0.
40-
* `ha_mode` - (Optional) High-availability Mode for Transit Gateway. Accepted values are: "ACTIVE_ACTIVE", "ACTIVE_STANDBY". Default is "ACTIVE_ACTIVE".
41-
* `edge_cluster_paths` - (Required) The Edge cluster should be authorized to be used in the transit gateway. A single edge cluster will be supported when the transit gateway is created from the local NSX manager.
39+
* `centralized_config` - (Optional) Singleton block for high-availability and edge cluster for centralized connectivity (gateway connections, VPN). Sent in the same H-API transaction as the transit gateway (as a child object, like security policy rules). Available since NSX 9.1.0.
40+
* `ha_mode` - (Optional) High-availability mode. Values: `ACTIVE_ACTIVE`, `ACTIVE_STANDBY`. Default is `ACTIVE_ACTIVE`.
41+
* `edge_cluster_paths` - (Optional) Policy paths of edge clusters. At most one item. Must be authorized for the project.
4242
* `span` - (Optional) Span configuration. Note that one of `cluster_based_span` and `zone_based_span` is required. Available since NSX 9.1.0.
4343
* `cluster_based_span` - (Optional) Span based on vSphere Clusters.
4444
* `span_path` - (Required) Policy path of the network span object.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/vmware/go-vmware-nsxt v0.0.0-20220328155605-f49a14c1ef5f
1414
github.com/vmware/vsphere-automation-sdk-go/lib v0.8.0
1515
github.com/vmware/vsphere-automation-sdk-go/runtime v0.8.0
16-
github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.12.1-0.20260106093951-b5ec18c0c5c3
16+
github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.12.1-0.20260310075027-d32fca6a7b22
1717
github.com/vmware/vsphere-automation-sdk-go/services/nsxt-gm v0.9.1-0.20241118070726-666c7cd6e466
1818
github.com/vmware/vsphere-automation-sdk-go/services/nsxt-mp v0.6.1-0.20241118070726-666c7cd6e466
1919
golang.org/x/exp v0.0.0-20230801115018-d63ba01acd4b

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ github.com/vmware/vsphere-automation-sdk-go/lib v0.8.0 h1:u1SXOTM6D4Ygb3jeidj2Rd
166166
github.com/vmware/vsphere-automation-sdk-go/lib v0.8.0/go.mod h1:8d5JTwjpM/Z03n/IZb0fwmXkJNWvWwuLXBqoakqYio4=
167167
github.com/vmware/vsphere-automation-sdk-go/runtime v0.8.0 h1:KnDIX9LY0nru7iMQTg0sy9vChhyorPo5OdASM2MaAcI=
168168
github.com/vmware/vsphere-automation-sdk-go/runtime v0.8.0/go.mod h1:DzLetYAmw1+vj7bqElRWEpuy40WYE/woL3alsymYa/c=
169-
github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.12.1-0.20260106093951-b5ec18c0c5c3 h1:rnW7VC1fMcO9GAbywSDqDCWGAuwJH1y2/PetRYcIh28=
170-
github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.12.1-0.20260106093951-b5ec18c0c5c3/go.mod h1:C3JVOHRVLrGBQ8kTWAiGYlRz5UQC5qAcTdt3tvA+5P0=
169+
github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.12.1-0.20260310075027-d32fca6a7b22 h1:zOi5ktjdhC3fVG6hyjZQaMutA4pijWBRL/ME+wmZwTU=
170+
github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.12.1-0.20260310075027-d32fca6a7b22/go.mod h1:C3JVOHRVLrGBQ8kTWAiGYlRz5UQC5qAcTdt3tvA+5P0=
171171
github.com/vmware/vsphere-automation-sdk-go/services/nsxt-gm v0.9.1-0.20241118070726-666c7cd6e466 h1:SYBECpviZBcp/cUHKTDPQP7CSQb0lUfPPOClpGOFH44=
172172
github.com/vmware/vsphere-automation-sdk-go/services/nsxt-gm v0.9.1-0.20241118070726-666c7cd6e466/go.mod h1:gcEvyczWPFMZX2gkBiBVpOwvUGSNXSpxU19Sx9aiouY=
173173
github.com/vmware/vsphere-automation-sdk-go/services/nsxt-mp v0.6.1-0.20241118070726-666c7cd6e466 h1:yXUKHP/XDGp7Wrcbfl5BHV1VreCNPHRLUj2RQ5qDEmE=

0 commit comments

Comments
 (0)