Skip to content

Commit

Permalink
## 1.1.13-beta (September 05, 2023)
Browse files Browse the repository at this point in the history
BUGFIXES:
* Fix in resource building, inconsistency with parent_name modification, updated Terraform output. #197

* dnacenter provider is not able to detect changes on infrastructure  after modifications are done using DNAC GUI on the resource floor.
#188, Upgrade of resource floor to detect changes on infrastructure.

* Upgrade of resource_area about inconsistency with parent_name`
* Modified resource_sd_virtual_network_ip_pool.go to fix issue #198
  • Loading branch information
fmunoz committed Sep 5, 2023
1 parent 575db1f commit d1a0967
Showing 193 changed files with 249 additions and 194 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
## 1.1.13-beta (August 23, 2023)
## 1.1.13-beta (September 05, 2023)
BUGFIXES:
* Fix in resource building, inconsistency with parent_name modification, updated Terraform output. #197

* dnacenter provider is not able to detect changes on infrastructure after modifications are done using DNAC GUI on the resource floor.
#188, Upgrade of resource floor to detect changes on infrastructure.

* Upgrade of resource_area about inconsistency with parent_name
* Upgrade of resource_area about inconsistency with parent_name`
* Modified resource_sd_virtual_network_ip_pool.go to fix issue #198

## 1.1.12-beta (August 23, 2023)
BUGFIXES:
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ HOSTNAME=hashicorp.com
NAMESPACE=edu
NAME=dnacenter
BINARY=terraform-provider-${NAME}
VERSION=1.1.12-beta
VERSION=1.1.13-beta
OS_ARCH=darwin_amd64
# Change to OS_ARCH=darwin_arm64 or your current architecture
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ The following table shows the supported versions.
| 2.2.3.3 | 0.3.0-beta |
| 2.2.3.3 | 0.3.0 |
| 2.3.3.0 | 1.0.19-beta |
| 2.3.5.3 | 1.1.12-beta |
| 2.3.5.3 | 1.1.13-beta |

If your SDK, Terraform provider is older please consider updating it first.

@@ -66,7 +66,7 @@ terraform {
required_providers {
dnacenter = {
source = "cisco-en-programmability/dnacenter"
version = "1.1.12-beta"
version = "1.1.13-beta"
}
}
}
1 change: 1 addition & 0 deletions dnacenter/data_source_sda_virtual_network_ip_pool.go
Original file line number Diff line number Diff line change
@@ -166,6 +166,7 @@ func flattenSdaGetIPPoolFromSdaVirtualNetworkItem(item *dnacentersdkgo.ResponseS
respItem["scalable_group_name"] = item.ScalableGroupName
respItem["is_l2_flooding_enabled"] = boolPtrToString(item.IsL2FloodingEnabled)
respItem["is_this_critical_pool"] = boolPtrToString(item.IsThisCriticalPool)
respItem["vlan_name"] = item.VLANName
return []map[string]interface{}{
respItem,
}
1 change: 0 additions & 1 deletion dnacenter/resource_building.go
Original file line number Diff line number Diff line change
@@ -391,7 +391,6 @@ func resourceBuildingRead(ctx context.Context, d *schema.ResourceData, m interfa
}
parameters := d.Get("parameters").([]interface{})
vItem1 := flattenSitesGetSiteItems(response1.Response, parameters)
log.Printf("TEST1", response1.Response)
log.Printf("[DEBUG] response flatten sent => %v", responseInterfaceToString(vItem1))
if err := d.Set("item", vItem1); err != nil {
diags = append(diags, diagError(
51 changes: 51 additions & 0 deletions dnacenter/resource_business_sda_hostonboarding_ssid_ippool.go
Original file line number Diff line number Diff line change
@@ -136,6 +136,57 @@ func resourceBusinessSdaHostonboardingSSIDIPpoolCreate(ctx context.Context, d *s
resourceMap := make(map[string]string)
resourceMap["vlan_name"] = item2.VLANName
resourceMap["site_name_hierarchy"] = vvSiteNameHierarchy
request2 := expandRequestBusinessSdaHostonboardingSSIDIPpoolUpdateSSIDToIPPoolMapping(ctx, "parameters.0", d)
log.Printf("[DEBUG] update request => %s", responseInterfaceToString(*request2))
response3, restyResp3, err := client.FabricWireless.UpdateSSIDToIPPoolMapping(request2)
if err != nil || response3 == nil {
if restyResp3 != nil {
log.Printf("[DEBUG] resty response for update operation => %v", restyResp3.String())
diags = append(diags, diagErrorWithAltAndResponse(
"Failure when executing UpdateSSIDToIPPoolMapping", err, restyResp3.String(),
"Failure at UpdateSSIDToIPPoolMapping, unexpected response", ""))
return diags
}
diags = append(diags, diagErrorWithAlt(
"Failure when executing UpdateSSIDToIPPoolMapping", err,
"Failure at UpdateSSIDToIPPoolMapping, unexpected response", ""))
return diags
}

executionId2 := response3.ExecutionID
log.Printf("[DEBUG] executionId2 => %s", executionId2)
if executionId2 != "" {
time.Sleep(5 * time.Second)
response4, restyResp4, err := client.Task.GetBusinessAPIExecutionDetails(executionId2)
if err != nil || response4 == nil {
if restyResp4 != nil {
log.Printf("[DEBUG] Retrieved error response %s", restyResp4.String())
}
diags = append(diags, diagErrorWithAlt(
"Failure when executing GetExecutionByID", err,
"Failure at GetExecutionByID, unexpected response", ""))
return diags
}
for statusIsPending(response4.Status) {
time.Sleep(10 * time.Second)
response4, restyResp4, err = client.Task.GetBusinessAPIExecutionDetails(executionId2)
if err != nil || response4 == nil {
if restyResp4 != nil {
log.Printf("[DEBUG] Retrieved error response %s", restyResp4.String())
}
diags = append(diags, diagErrorWithAlt(
"Failure when executing GetExecutionByID", err,
"Failure at GetExecutionByID, unexpected response", ""))
return diags
}
}
if statusIsFailure(response4.Status) {
log.Printf("[DEBUG] Error %s", response4.BapiError)
diags = append(diags, diagError(
"Failure when executing Loading resource", err))
return diags
}
}
d.SetId(joinResourceID(resourceMap))
return resourceBusinessSdaHostonboardingSSIDIPpoolRead(ctx, d, m)
}
5 changes: 4 additions & 1 deletion dnacenter/resource_sda_virtual_network_ip_pool.go
Original file line number Diff line number Diff line change
@@ -257,7 +257,10 @@ func resourceSdaVirtualNetworkIPPoolCreate(ctx context.Context, d *schema.Resour
resourceMap := make(map[string]string)
resourceMap["site_name_hierarchy"] = vvSiteNameHierarchy
resourceMap["virtual_network_name"] = item2.VirtualNetworkName
resourceMap["ip_pool_name"] = item2.IPPoolName
//resourceMap["ip_pool_name"] = item2.IPPoolName
if item2.IPPoolName == "" {
resourceMap["ip_pool_name"] = item2.VLANName
}
d.SetId(joinResourceID(resourceMap))
return resourceSdaVirtualNetworkIPPoolRead(ctx, d, m)
}
2 changes: 1 addition & 1 deletion examples/samples/data-sources/dnacenter_app_policy/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
dnacenter = {
version = "1.1.12-beta"
version = "1.1.13-beta"
source = "hashicorp.com/edu/dnacenter"
# "hashicorp.com/edu/dnacenter" is the local built source, change to "cisco-en-programmability/dnacenter" to use downloaded version from registry
}
Loading

0 comments on commit d1a0967

Please sign in to comment.