Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Support IPV6 for HA VPN. (#7525) (#1507)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Mar 29, 2023
1 parent 743e51e commit 77665f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions converters/google/resources/compute_ha_vpn_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ func GetComputeHaVpnGatewayApiObject(d TerraformResourceData, config *Config) (m
} else if v, ok := d.GetOkExists("network"); !isEmptyValue(reflect.ValueOf(networkProp)) && (ok || !reflect.DeepEqual(v, networkProp)) {
obj["network"] = networkProp
}
stackTypeProp, err := expandComputeHaVpnGatewayStackType(d.Get("stack_type"), d, config)
if err != nil {
return nil, err
} else if v, ok := d.GetOkExists("stack_type"); !isEmptyValue(reflect.ValueOf(stackTypeProp)) && (ok || !reflect.DeepEqual(v, stackTypeProp)) {
obj["stackType"] = stackTypeProp
}
vpnInterfacesProp, err := expandComputeHaVpnGatewayVpnInterfaces(d.Get("vpn_interfaces"), d, config)
if err != nil {
return nil, err
Expand Down Expand Up @@ -101,6 +107,10 @@ func expandComputeHaVpnGatewayNetwork(v interface{}, d TerraformResourceData, co
return f.RelativeLink(), nil
}

func expandComputeHaVpnGatewayStackType(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

func expandComputeHaVpnGatewayVpnInterfaces(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
l := v.([]interface{})
req := make([]interface{}, 0, len(l))
Expand Down

0 comments on commit 77665f8

Please sign in to comment.