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

Auto updated assets for terraform 30.2.1 #599

Open
wants to merge 2 commits into
base: 30.2.1
Choose a base branch
from
Open
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
39 changes: 1 addition & 38 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,4 @@
## 31.1.1 (Unreleased)
## 30.2.1 (Unreleased)
ENHANCEMENTS:
- Added new resource `avi_controllerportalregistration` [#553](https://github.com/vmware/terraform-provider-avi/pull/553)
- Added new resource `avi_serviceauthprofile` [#553](https://github.com/vmware/terraform-provider-avi/pull/553)
- Added new resource `avi_taskjournal` [#590](https://github.com/vmware/terraform-provider-avi/pull/590)

BUG FIXES:
- AV-202599 Resource avi_useraccount fails with generic error instead of providing user useful feedback
- Failure to create avi_useraccount resource. https://github.com/vmware/terraform-provider-avi/issues/314
- AV-187301: Entering wrong credentials on terraform using AVI as provider, while using Plan command breaks statefile
- AV-186452: AVI-provider for Terraform version 22.1.2 and 22.1.4 creates any object in the Admin tenant.
- AV-186737: Changes to certain subresources are not detected as changes by Terraform
- AV-187199: AVI terraform apply the resource object even if it is already exist without showing Error.
- Terraform Provider Avi overwriting existing resources. https://github.com/vmware/terraform-provider-avi/issues/358
- AV-194160 Terraform Provider crash during avi_serviceenginegroup destroy. https://github.com/vmware/terraform-provider-avi/issues/376

## 22.1.6 (March 08, 2024)
NOTE:

From version 22.1.6, updating system default configurations now requires first importing the existing configuration into the Terraform state.

Please refer [README.MD](https://github.com/vmware/terraform-provider-avi/tree/22.1.7)

ENHANCEMENTS:
- Added new resource `avi_systemreport` [#576](https://github.com/vmware/terraform-provider-avi/pull/576/files)
- Updated resources with newly added fields [#576](https://github.com/vmware/terraform-provider-avi/pull/576/files)

BUG FIXES:
- AV-187199: AVI terraform apply the resource object even if it is already exist without showing Error.
- Terraform Provider Avi overwriting existing resources. https://github.com/vmware/terraform-provider-avi/issues/358

## 22.1.5 (October 30, 2023)
BUG FIXES:
- AV-187301: Entering wrong credentials on terraform using AVI as provider, while using Plan command breaks statefile
- AV-186452: AVI-provider for Terraform version 22.1.2 and 22.1.4 creates any object in the Admin tenant.
- AV-186737: Changes to certain subresources are not detected as changes by Terraform

## 0.3.0 (Unreleased)
## 0.2.3 (June 16, 2020)
Features:
- Updated Avi Go SDK to latest.
Expand Down
3 changes: 0 additions & 3 deletions avi/data_source_avi_applicationprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ resource "avi_applicationprofile" "testApplicationProfile" {
use_app_keepalive_timeout = false
}
preserve_client_port = false
l4_ssl_profile {
ssl_stream_idle_timeout = "3600"
}
}

data "avi_applicationprofile" "testApplicationProfile" {
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_customipamdnsprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAVIDataSourceCustomIpamDnsProfileBasic(t *testing.T) {

}

// nolint
//nolint
const testAccAVIDSCustomIpamDnsProfileConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_dnspolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAVIDataSourceDnsPolicyBasic(t *testing.T) {

}

// nolint
//nolint
const testAccAVIDSDnsPolicyConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_ipaddrgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAVIDataSourceIpAddrGroupBasic(t *testing.T) {

}

// nolint
//nolint
const testAccAVIDSIpAddrGroupConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_ipamdnsproviderprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestAVIDataSourceIpamDnsProviderProfileBasic(t *testing.T) {

}

// nolint
//nolint
const testAccAVIDSIpamDnsProviderProfileConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_customipamdnsprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

// nolint
//nolint
func dataSourceAviCustomIpamDnsProfile() *schema.Resource {
return &schema.Resource{
Read: ResourceAviCustomIpamDnsProfileRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_dnspolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

// nolint
//nolint
func dataSourceAviDnsPolicy() *schema.Resource {
return &schema.Resource{
Read: ResourceAviDnsPolicyRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_dynamicdnsrecord.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

// nolint
//nolint
func dataSourceAviDynamicDnsRecord() *schema.Resource {
return &schema.Resource{
Read: ResourceAviDynamicDnsRecordRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_ipaddrgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

// nolint
//nolint
func dataSourceAviIpAddrGroup() *schema.Resource {
return &schema.Resource{
Read: ResourceAviIpAddrGroupRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_ipamdnsproviderprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

// nolint
//nolint
func dataSourceAviIpamDnsProviderProfile() *schema.Resource {
return &schema.Resource{
Read: ResourceAviIpamDnsProviderProfileRead,
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_actiongroupconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func ResourceAviActionGroupConfigRead(d *schema.ResourceData, meta interface{})

func resourceAviActionGroupConfigCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceActionGroupConfigSchema()
err := APICreate(d, meta, "actiongroupconfig", s)
err := APICreateOrUpdate(d, meta, "actiongroupconfig", s)
if err == nil {
err = ResourceAviActionGroupConfigRead(d, meta)
}
Expand All @@ -112,7 +112,7 @@ func resourceAviActionGroupConfigCreate(d *schema.ResourceData, meta interface{}
func resourceAviActionGroupConfigUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceActionGroupConfigSchema()
var err error
err = APIUpdate(d, meta, "actiongroupconfig", s)
err = APICreateOrUpdate(d, meta, "actiongroupconfig", s)
if err == nil {
err = ResourceAviActionGroupConfigRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_albservicesconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func ResourceAviALBServicesConfigRead(d *schema.ResourceData, meta interface{})

func resourceAviALBServicesConfigCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceALBServicesConfigSchema()
err := APICreate(d, meta, "albservicesconfig", s)
err := APICreateOrUpdate(d, meta, "albservicesconfig", s)
if err == nil {
err = ResourceAviALBServicesConfigRead(d, meta)
}
Expand All @@ -164,7 +164,7 @@ func resourceAviALBServicesConfigCreate(d *schema.ResourceData, meta interface{}
func resourceAviALBServicesConfigUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceALBServicesConfigSchema()
var err error
err = APIUpdate(d, meta, "albservicesconfig", s)
err = APICreateOrUpdate(d, meta, "albservicesconfig", s)
if err == nil {
err = ResourceAviALBServicesConfigRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_albservicesfiledownload.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func ResourceAviALBServicesFileDownloadRead(d *schema.ResourceData, meta interfa

func resourceAviALBServicesFileDownloadCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceALBServicesFileDownloadSchema()
err := APICreate(d, meta, "albservicesfiledownload", s)
err := APICreateOrUpdate(d, meta, "albservicesfiledownload", s)
if err == nil {
err = ResourceAviALBServicesFileDownloadRead(d, meta)
}
Expand All @@ -100,7 +100,7 @@ func resourceAviALBServicesFileDownloadCreate(d *schema.ResourceData, meta inter
func resourceAviALBServicesFileDownloadUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceALBServicesFileDownloadSchema()
var err error
err = APIUpdate(d, meta, "albservicesfiledownload", s)
err = APICreateOrUpdate(d, meta, "albservicesfiledownload", s)
if err == nil {
err = ResourceAviALBServicesFileDownloadRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_albservicesfileupload.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func ResourceAviALBServicesFileUploadRead(d *schema.ResourceData, meta interface

func resourceAviALBServicesFileUploadCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceALBServicesFileUploadSchema()
err := APICreate(d, meta, "albservicesfileupload", s)
err := APICreateOrUpdate(d, meta, "albservicesfileupload", s)
if err == nil {
err = ResourceAviALBServicesFileUploadRead(d, meta)
}
Expand All @@ -90,7 +90,7 @@ func resourceAviALBServicesFileUploadCreate(d *schema.ResourceData, meta interfa
func resourceAviALBServicesFileUploadUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceALBServicesFileUploadSchema()
var err error
err = APIUpdate(d, meta, "albservicesfileupload", s)
err = APICreateOrUpdate(d, meta, "albservicesfileupload", s)
if err == nil {
err = ResourceAviALBServicesFileUploadRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_albservicesjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func ResourceAviALBServicesJobRead(d *schema.ResourceData, meta interface{}) err

func resourceAviALBServicesJobCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceALBServicesJobSchema()
err := APICreate(d, meta, "albservicesjob", s)
err := APICreateOrUpdate(d, meta, "albservicesjob", s)
if err == nil {
err = ResourceAviALBServicesJobRead(d, meta)
}
Expand All @@ -125,7 +125,7 @@ func resourceAviALBServicesJobCreate(d *schema.ResourceData, meta interface{}) e
func resourceAviALBServicesJobUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceALBServicesJobSchema()
var err error
err = APIUpdate(d, meta, "albservicesjob", s)
err = APICreateOrUpdate(d, meta, "albservicesjob", s)
if err == nil {
err = ResourceAviALBServicesJobRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_alertconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func ResourceAviAlertConfigRead(d *schema.ResourceData, meta interface{}) error

func resourceAviAlertConfigCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAlertConfigSchema()
err := APICreate(d, meta, "alertconfig", s)
err := APICreateOrUpdate(d, meta, "alertconfig", s)
if err == nil {
err = ResourceAviAlertConfigRead(d, meta)
}
Expand All @@ -151,7 +151,7 @@ func resourceAviAlertConfigCreate(d *schema.ResourceData, meta interface{}) erro
func resourceAviAlertConfigUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAlertConfigSchema()
var err error
err = APIUpdate(d, meta, "alertconfig", s)
err = APICreateOrUpdate(d, meta, "alertconfig", s)
if err == nil {
err = ResourceAviAlertConfigRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_alertemailconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func ResourceAviAlertEmailConfigRead(d *schema.ResourceData, meta interface{}) e

func resourceAviAlertEmailConfigCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAlertEmailConfigSchema()
err := APICreate(d, meta, "alertemailconfig", s)
err := APICreateOrUpdate(d, meta, "alertemailconfig", s)
if err == nil {
err = ResourceAviAlertEmailConfigRead(d, meta)
}
Expand All @@ -86,7 +86,7 @@ func resourceAviAlertEmailConfigCreate(d *schema.ResourceData, meta interface{})
func resourceAviAlertEmailConfigUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAlertEmailConfigSchema()
var err error
err = APIUpdate(d, meta, "alertemailconfig", s)
err = APICreateOrUpdate(d, meta, "alertemailconfig", s)
if err == nil {
err = ResourceAviAlertEmailConfigRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_alertscriptconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func ResourceAviAlertScriptConfigRead(d *schema.ResourceData, meta interface{})

func resourceAviAlertScriptConfigCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAlertScriptConfigSchema()
err := APICreate(d, meta, "alertscriptconfig", s)
err := APICreateOrUpdate(d, meta, "alertscriptconfig", s)
if err == nil {
err = ResourceAviAlertScriptConfigRead(d, meta)
}
Expand All @@ -83,7 +83,7 @@ func resourceAviAlertScriptConfigCreate(d *schema.ResourceData, meta interface{}
func resourceAviAlertScriptConfigUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAlertScriptConfigSchema()
var err error
err = APIUpdate(d, meta, "alertscriptconfig", s)
err = APICreateOrUpdate(d, meta, "alertscriptconfig", s)
if err == nil {
err = ResourceAviAlertScriptConfigRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_alertsyslogconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func ResourceAviAlertSyslogConfigRead(d *schema.ResourceData, meta interface{})

func resourceAviAlertSyslogConfigCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAlertSyslogConfigSchema()
err := APICreate(d, meta, "alertsyslogconfig", s)
err := APICreateOrUpdate(d, meta, "alertsyslogconfig", s)
if err == nil {
err = ResourceAviAlertSyslogConfigRead(d, meta)
}
Expand All @@ -87,7 +87,7 @@ func resourceAviAlertSyslogConfigCreate(d *schema.ResourceData, meta interface{}
func resourceAviAlertSyslogConfigUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAlertSyslogConfigSchema()
var err error
err = APIUpdate(d, meta, "alertsyslogconfig", s)
err = APICreateOrUpdate(d, meta, "alertsyslogconfig", s)
if err == nil {
err = ResourceAviAlertSyslogConfigRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_analyticsprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ func ResourceAviAnalyticsProfileRead(d *schema.ResourceData, meta interface{}) e

func resourceAviAnalyticsProfileCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAnalyticsProfileSchema()
err := APICreate(d, meta, "analyticsprofile", s)
err := APICreateOrUpdate(d, meta, "analyticsprofile", s)
if err == nil {
err = ResourceAviAnalyticsProfileRead(d, meta)
}
Expand All @@ -564,7 +564,7 @@ func resourceAviAnalyticsProfileCreate(d *schema.ResourceData, meta interface{})
func resourceAviAnalyticsProfileUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAnalyticsProfileSchema()
var err error
err = APIUpdate(d, meta, "analyticsprofile", s)
err = APICreateOrUpdate(d, meta, "analyticsprofile", s)
if err == nil {
err = ResourceAviAnalyticsProfileRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_applicationpersistenceprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func ResourceAviApplicationPersistenceProfileRead(d *schema.ResourceData, meta i

func resourceAviApplicationPersistenceProfileCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceApplicationPersistenceProfileSchema()
err := APICreate(d, meta, "applicationpersistenceprofile", s)
err := APICreateOrUpdate(d, meta, "applicationpersistenceprofile", s)
if err == nil {
err = ResourceAviApplicationPersistenceProfileRead(d, meta)
}
Expand All @@ -121,7 +121,7 @@ func resourceAviApplicationPersistenceProfileCreate(d *schema.ResourceData, meta
func resourceAviApplicationPersistenceProfileUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceApplicationPersistenceProfileSchema()
var err error
err = APIUpdate(d, meta, "applicationpersistenceprofile", s)
err = APICreateOrUpdate(d, meta, "applicationpersistenceprofile", s)
if err == nil {
err = ResourceAviApplicationPersistenceProfileRead(d, meta)
}
Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_applicationprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func ResourceAviApplicationProfileRead(d *schema.ResourceData, meta interface{})

func resourceAviApplicationProfileCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceApplicationProfileSchema()
err := APICreate(d, meta, "applicationprofile", s)
err := APICreateOrUpdate(d, meta, "applicationprofile", s)
if err == nil {
err = ResourceAviApplicationProfileRead(d, meta)
}
Expand All @@ -155,7 +155,7 @@ func resourceAviApplicationProfileCreate(d *schema.ResourceData, meta interface{
func resourceAviApplicationProfileUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceApplicationProfileSchema()
var err error
err = APIUpdate(d, meta, "applicationprofile", s)
err = APICreateOrUpdate(d, meta, "applicationprofile", s)
if err == nil {
err = ResourceAviApplicationProfileRead(d, meta)
}
Expand Down
6 changes: 0 additions & 6 deletions avi/resource_avi_applicationprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,6 @@ resource "avi_applicationprofile" "testApplicationProfile" {
use_app_keepalive_timeout = false
}
preserve_client_port = false
l4_ssl_profile {
ssl_stream_idle_timeout = "3600"
}
}
`

Expand Down Expand Up @@ -274,8 +271,5 @@ resource "avi_applicationprofile" "testApplicationProfile" {
use_app_keepalive_timeout = false
}
preserve_client_port = false
l4_ssl_profile {
ssl_stream_idle_timeout = "3600"
}
}
`
4 changes: 2 additions & 2 deletions avi/resource_avi_authmappingprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func ResourceAviAuthMappingProfileRead(d *schema.ResourceData, meta interface{})

func resourceAviAuthMappingProfileCreate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAuthMappingProfileSchema()
err := APICreate(d, meta, "authmappingprofile", s)
err := APICreateOrUpdate(d, meta, "authmappingprofile", s)
if err == nil {
err = ResourceAviAuthMappingProfileRead(d, meta)
}
Expand All @@ -86,7 +86,7 @@ func resourceAviAuthMappingProfileCreate(d *schema.ResourceData, meta interface{
func resourceAviAuthMappingProfileUpdate(d *schema.ResourceData, meta interface{}) error {
s := ResourceAuthMappingProfileSchema()
var err error
err = APIUpdate(d, meta, "authmappingprofile", s)
err = APICreateOrUpdate(d, meta, "authmappingprofile", s)
if err == nil {
err = ResourceAviAuthMappingProfileRead(d, meta)
}
Expand Down
Loading
Loading