-
Notifications
You must be signed in to change notification settings - Fork 85
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
Conversation
model.Tier1_HA_MODE_ACTIVE constant requires vSphere SDK upgrade |
@@ -397,6 +409,7 @@ func policyTier1GatewayResourceToInfraStruct(d *schema.ResourceData, connector * | |||
RouteAdvertisementRules: routeAdvertisementRules, | |||
Ipv6ProfilePaths: ipv6ProfilePaths, | |||
ResourceType: &t1Type, | |||
HaMode: &haMode, |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
7eae58c
to
6953aef
Compare
faa43cc
to
c8750d8
Compare
/test-all |
d448124
to
d65c5cc
Compare
Fixes: vmware#852 Signed-off-by: Kobi Samoray <[email protected]>
/test-all |
Fixes: #852