Skip to content

Commit

Permalink
Make VPN resources exportable (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolsean authored Jun 29, 2021
1 parent c5a38b3 commit 6f6ae91
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions huaweicloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,11 @@ func Provider() terraform.ResourceProvider {
"huaweicloud_vpcep_approval": ResourceVPCEndpointApproval(),
"huaweicloud_vpcep_endpoint": ResourceVPCEndpoint(),
"huaweicloud_vpcep_service": ResourceVPCEndpointService(),
"huaweicloud_vpnaas_endpoint_group": resourceVpnEndpointGroupV2(),
"huaweicloud_vpnaas_ike_policy": resourceVpnIKEPolicyV2(),
"huaweicloud_vpnaas_ipsec_policy": resourceVpnIPSecPolicyV2(),
"huaweicloud_vpnaas_service": resourceVpnServiceV2(),
"huaweicloud_vpnaas_site_connection": resourceVpnSiteConnectionV2(),
"huaweicloud_vpnaas_endpoint_group": ResourceVpnEndpointGroupV2(),
"huaweicloud_vpnaas_ike_policy": ResourceVpnIKEPolicyV2(),
"huaweicloud_vpnaas_ipsec_policy": ResourceVpnIPSecPolicyV2(),
"huaweicloud_vpnaas_service": ResourceVpnServiceV2(),
"huaweicloud_vpnaas_site_connection": ResourceVpnSiteConnectionV2(),
"huaweicloud_scm_certificate": resourceScmCertificateV3(),
// Legacy
"huaweicloud_compute_instance_v2": ResourceComputeInstanceV2(),
Expand Down Expand Up @@ -575,11 +575,11 @@ func Provider() terraform.ResourceProvider {
"huaweicloud_dis_stream_v2": ResourceDisStreamV2(),
"huaweicloud_cs_cluster_v1": resourceCsClusterV1(),
"huaweicloud_cs_peering_connect_v1": resourceCsPeeringConnectV1(),
"huaweicloud_vpnaas_ipsec_policy_v2": resourceVpnIPSecPolicyV2(),
"huaweicloud_vpnaas_service_v2": resourceVpnServiceV2(),
"huaweicloud_vpnaas_ike_policy_v2": resourceVpnIKEPolicyV2(),
"huaweicloud_vpnaas_endpoint_group_v2": resourceVpnEndpointGroupV2(),
"huaweicloud_vpnaas_site_connection_v2": resourceVpnSiteConnectionV2(),
"huaweicloud_vpnaas_ipsec_policy_v2": ResourceVpnIPSecPolicyV2(),
"huaweicloud_vpnaas_service_v2": ResourceVpnServiceV2(),
"huaweicloud_vpnaas_ike_policy_v2": ResourceVpnIKEPolicyV2(),
"huaweicloud_vpnaas_endpoint_group_v2": ResourceVpnEndpointGroupV2(),
"huaweicloud_vpnaas_site_connection_v2": ResourceVpnSiteConnectionV2(),
"huaweicloud_dli_queue_v1": ResourceDliQueueV1(),
"huaweicloud_cs_route_v1": resourceCsRouteV1(),
"huaweicloud_networking_vip_v2": resourceNetworkingVIPV2(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/utils/logp"
)

func resourceVpnEndpointGroupV2() *schema.Resource {
func ResourceVpnEndpointGroupV2() *schema.Resource {
return &schema.Resource{
Create: resourceVpnEndpointGroupV2Create,
Read: resourceVpnEndpointGroupV2Read,
Expand Down
2 changes: 1 addition & 1 deletion huaweicloud/resource_huaweicloud_vpnaas_ike_policy_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/utils/logp"
)

func resourceVpnIKEPolicyV2() *schema.Resource {
func ResourceVpnIKEPolicyV2() *schema.Resource {
return &schema.Resource{
Create: resourceVpnIKEPolicyV2Create,
Read: resourceVpnIKEPolicyV2Read,
Expand Down
2 changes: 1 addition & 1 deletion huaweicloud/resource_huaweicloud_vpnaas_ipsec_policy_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/utils/logp"
)

func resourceVpnIPSecPolicyV2() *schema.Resource {
func ResourceVpnIPSecPolicyV2() *schema.Resource {
return &schema.Resource{
Create: resourceVpnIPSecPolicyV2Create,
Read: resourceVpnIPSecPolicyV2Read,
Expand Down
2 changes: 1 addition & 1 deletion huaweicloud/resource_huaweicloud_vpnaas_service_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/utils/logp"
)

func resourceVpnServiceV2() *schema.Resource {
func ResourceVpnServiceV2() *schema.Resource {
return &schema.Resource{
Create: resourceVpnServiceV2Create,
Read: resourceVpnServiceV2Read,
Expand Down
2 changes: 1 addition & 1 deletion huaweicloud/resource_huaweicloud_vpnaas_site_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/utils/logp"
)

func resourceVpnSiteConnectionV2() *schema.Resource {
func ResourceVpnSiteConnectionV2() *schema.Resource {
return &schema.Resource{
Create: resourceVpnSiteConnectionV2Create,
Read: resourceVpnSiteConnectionV2Read,
Expand Down

0 comments on commit 6f6ae91

Please sign in to comment.