Skip to content

Commit

Permalink
fix: Change resource cloudavenue_network_app_port_profile to `cloud…
Browse files Browse the repository at this point in the history
…avenue_edgegateway_app_port_profile` (#347)
  • Loading branch information
dmicheneau authored Jun 27, 2023
1 parent 90f8ea5 commit f2820b6
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .changelog/347.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:chore
`resource/cloudavenue_edgegateway_app_port_profile` is a resource moved from `cloudavenue_network_app_port_profile`.
```
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
page_title: "cloudavenue_network_app_port_profile Resource - cloudavenue"
subcategory: "Network"
page_title: "cloudavenue_edgegateway_app_port_profile Resource - cloudavenue"
subcategory: "Edge Gateway (Tier-1)"
description: |-
Provides a NSX-T App Port Profile resource
---

# cloudavenue_network_app_port_profile (Resource)
# cloudavenue_edgegateway_app_port_profile (Resource)

Provides a NSX-T App Port Profile resource

Expand All @@ -16,7 +16,7 @@ data "cloudavenue_vdc" "example" {
name = "VDC_Test"
}
resource "cloudavenue_network_app_port_profile" "example" {
resource "cloudavenue_edgegateway_app_port_profile" "example" {
name = "example-rule"
description = "Application port profile for example"
vdc = data.cloudavenue_vdc.example.id
Expand Down Expand Up @@ -68,5 +68,5 @@ Optional:

Import is supported using the following syntax:
```shell
terraform import cloudavenue.network_app_port_profile vdc-or-vdc-group-id.RuleName
terraform import cloudavenue.edgegateway_app_port_profile vdc-or-vdc-group-id.RuleName
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import cloudavenue.edgegateway_app_port_profile vdc-or-vdc-group-id.RuleName
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data "cloudavenue_vdc" "example" {
name = "VDC_Test"
}

resource "cloudavenue_network_app_port_profile" "example" {
resource "cloudavenue_edgegateway_app_port_profile" "example" {
name = "example-rule"
description = "Application port profile for example"
vdc = data.cloudavenue_vdc.example.id
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package network provides a Terraform resource.
package network
package edgegw

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func (p *cloudavenueProvider) Resources(_ context.Context) []func() resource.Res
// EDGE GATEWAY
edgegw.NewEdgeGatewayResource,
edgegw.NewFirewallResource,
edgegw.NewPortProfilesResource,

// VDC
vdc.NewVDCResource,
Expand Down Expand Up @@ -153,7 +154,6 @@ func (p *cloudavenueProvider) Resources(_ context.Context) []func() resource.Res
// NETWORK
network.NewNetworkRoutedResource,
network.NewNetworkIsolatedResource,
network.NewPortProfilesResource,
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package network
package edgegw

import (
"fmt"
Expand All @@ -16,7 +16,7 @@ data "cloudavenue_vdc" "example" {
name = "VDC_Test"
}
resource "cloudavenue_network_app_port_profile" "example" {
resource "cloudavenue_edgegateway_app_port_profile" "example" {
name = "example-rule"
description = "Application port profile for example"
vdc = data.cloudavenue_vdc.example.id
Expand All @@ -42,7 +42,7 @@ data "cloudavenue_vdc" "example" {
name = "VDC_Test"
}
resource "cloudavenue_network_app_port_profile" "example" {
resource "cloudavenue_edgegateway_app_port_profile" "example" {
name = "example-rule"
description = "Application port profile for example"
vdc = data.cloudavenue_vdc.example.id
Expand Down Expand Up @@ -71,7 +71,7 @@ resource "cloudavenue_network_app_port_profile" "example" {
`

func TestAccPortProfilesResource(t *testing.T) {
resourceName := "cloudavenue_network_app_port_profile.example"
resourceName := "cloudavenue_edgegateway_app_port_profile.example"

resource.Test(t, resource.TestCase{
PreCheck: func() { tests.TestAccPreCheck(t) },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
subcategory: "Network"
subcategory: "Edge Gateway (Tier-1)"
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---
Expand Down

0 comments on commit f2820b6

Please sign in to comment.