Skip to content

Commit f4707b9

Browse files
authored
fix: route_entry - extend next type (#907)
1 parent 58af3ce commit f4707b9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tencentcloud/resource_tc_route_entry.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,25 @@ var routeTypeApiMap = map[string]int{
5050
"vpn_gateway": 1,
5151
"dc_gateway": 3,
5252
"peering_connection": 4,
53+
"havip": 5,
5354
"sslvpn_gateway": 7,
5455
"nat_gateway": 8,
5556
"instance": 9,
5657
"eip": 10,
58+
"local_gateway": 11,
5759
}
5860

5961
var routeTypeNewMap = map[string]string{
6062
"public_gateway": "CVM",
6163
"vpn_gateway": "VPN",
6264
"dc_gateway": "DIRECTCONNECT",
6365
"peering_connection": "PEERCONNECTION",
66+
"havip": "HAVIP",
6467
"sslvpn_gateway": "SSLVPN",
6568
"nat_gateway": "NAT",
6669
"instance": "NORMAL_CVM",
6770
"eip": "EIP",
71+
"local_gateway": "LOCAL_GATEWAY",
6872
}
6973

7074
func resourceTencentCloudRouteEntry() *schema.Resource {
@@ -110,7 +114,7 @@ func resourceTencentCloudRouteEntry() *schema.Resource {
110114
}
111115
return
112116
},
113-
Description: "The next hop type. Valid values: `public_gateway`,`vpn_gateway`,`sslvpn_gateway`,`dc_gateway`,`peering_connection`,`nat_gateway` and `instance`. `instance` points to CVM Instance.",
117+
Description: "The next hop type. Valid values: `public_gateway`,`vpn_gateway`,`sslvpn_gateway`,`dc_gateway`,`peering_connection`,`nat_gateway`,`havip`,`local_gateway` and `instance`. `instance` points to CVM Instance.",
114118
},
115119
"next_hub": {
116120
Type: schema.TypeString,

website/docs/r/route_entry.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following arguments are supported:
4949

5050
* `cidr_block` - (Required, ForceNew) The RouteEntry's target network segment.
5151
* `next_hub` - (Required, ForceNew) The route entry's next hub. CVM instance ID or VPC router interface ID.
52-
* `next_type` - (Required, ForceNew) The next hop type. Valid values: `public_gateway`,`vpn_gateway`,`sslvpn_gateway`,`dc_gateway`,`peering_connection`,`nat_gateway` and `instance`. `instance` points to CVM Instance.
52+
* `next_type` - (Required, ForceNew) The next hop type. Valid values: `public_gateway`,`vpn_gateway`,`sslvpn_gateway`,`dc_gateway`,`peering_connection`,`nat_gateway`,`havip`,`local_gateway` and `instance`. `instance` points to CVM Instance.
5353
* `route_table_id` - (Required, ForceNew) The ID of the route table.
5454
* `vpc_id` - (Required, ForceNew) The VPC ID.
5555

0 commit comments

Comments
 (0)