Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ha_mode attribute to T1 gateway #856

Merged
merged 1 commit into from
Apr 18, 2023
Merged

Conversation

ksamoray
Copy link
Collaborator

Fixes: #852

@ksamoray
Copy link
Collaborator Author

model.Tier1_HA_MODE_ACTIVE constant requires vSphere SDK upgrade

@ksamoray ksamoray requested a review from annakhm March 21, 2023 08:26
@@ -397,6 +409,7 @@ func policyTier1GatewayResourceToInfraStruct(d *schema.ResourceData, connector *
RouteAdvertisementRules: routeAdvertisementRules,
Ipv6ProfilePaths: ipv6ProfilePaths,
ResourceType: &t1Type,
HaMode: &haMode,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should require NSX version check (specifying this value in early versions would likely lead to an error)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For NSX < 4.0.0 this would cause Error: Failed to create Tier1: Json de-serialization error: property ha_mode is unrecognized. (code 287)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NSX 3.2.0 has ha_mode attribute but no ACTIVE_ACTIVE option. I should add a condition for 3.1.3 and below

@ksamoray ksamoray force-pushed the t1_ha_mode branch 3 times, most recently from 7eae58c to 6953aef Compare April 4, 2023 06:44
@ksamoray ksamoray force-pushed the t1_ha_mode branch 4 times, most recently from faa43cc to c8750d8 Compare April 11, 2023 15:07
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray ksamoray force-pushed the t1_ha_mode branch 2 times, most recently from d448124 to d65c5cc Compare April 12, 2023 19:24
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray ksamoray merged commit 2f7c29d into vmware:master Apr 18, 2023
@ksamoray ksamoray deleted the t1_ha_mode branch April 18, 2023 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updates on "nsxt_policy_tier1_gateway" ressource results in "Not Set" ha mode for tier-1 in nsx-t manager
2 participants