From 48406a775aa92a1aacdc04ac315be88dcf617585 Mon Sep 17 00:00:00 2001 From: Kagashino Date: Wed, 16 Mar 2022 00:30:28 +0800 Subject: [PATCH] fix: route_entry - extend next type --- tencentcloud/resource_tc_route_entry.go | 6 +++++- website/docs/r/route_entry.html.markdown | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tencentcloud/resource_tc_route_entry.go b/tencentcloud/resource_tc_route_entry.go index eef20d2cf3..95ddf26b51 100644 --- a/tencentcloud/resource_tc_route_entry.go +++ b/tencentcloud/resource_tc_route_entry.go @@ -50,10 +50,12 @@ var routeTypeApiMap = map[string]int{ "vpn_gateway": 1, "dc_gateway": 3, "peering_connection": 4, + "havip": 5, "sslvpn_gateway": 7, "nat_gateway": 8, "instance": 9, "eip": 10, + "local_gateway": 11, } var routeTypeNewMap = map[string]string{ @@ -61,10 +63,12 @@ var routeTypeNewMap = map[string]string{ "vpn_gateway": "VPN", "dc_gateway": "DIRECTCONNECT", "peering_connection": "PEERCONNECTION", + "havip": "HAVIP", "sslvpn_gateway": "SSLVPN", "nat_gateway": "NAT", "instance": "NORMAL_CVM", "eip": "EIP", + "local_gateway": "LOCAL_GATEWAY", } func resourceTencentCloudRouteEntry() *schema.Resource { @@ -110,7 +114,7 @@ func resourceTencentCloudRouteEntry() *schema.Resource { } return }, - 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.", + 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.", }, "next_hub": { Type: schema.TypeString, diff --git a/website/docs/r/route_entry.html.markdown b/website/docs/r/route_entry.html.markdown index 521f57e302..8b1e9ef9d9 100644 --- a/website/docs/r/route_entry.html.markdown +++ b/website/docs/r/route_entry.html.markdown @@ -49,7 +49,7 @@ The following arguments are supported: * `cidr_block` - (Required, ForceNew) The RouteEntry's target network segment. * `next_hub` - (Required, ForceNew) The route entry's next hub. CVM instance ID or VPC router interface ID. -* `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. +* `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. * `route_table_id` - (Required, ForceNew) The ID of the route table. * `vpc_id` - (Required, ForceNew) The VPC ID.