Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Change resource cloudavenue_network_app_port_profile to cloudavenue_edgegateway_app_port_profile #347

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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