CiscoDevNet / terraform-provider-mso

Terraform Cisco MSO provider
https://registry.terraform.io/providers/CiscoDevNet/mso/latest/docs
Mozilla Public License 2.0
7 stars 28 forks source link

`mso_schema_site_anp_epg_bulk_staticport` resource destroys/recreates object instead of updating #270

Closed edudppaz closed 1 month ago

edudppaz commented 2 months ago

Community Note

Terraform Version

v.1.5.6

MSO version

APIC version and APIC Platform for Site Level Resources

Affected Resource(s)

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

Debug Output

module.tf-aci-ndo-staticports.mso_schema_site_anp_epg_bulk_staticport.accessPortsL2_bulk["TENANT-0100-EPG-prod-aci"] must be replaced
Plan: 47 to add, 5 to change, 47 to destroy.

Panic Output

Expected Behavior

The resource should update the object in NDO by adding/removing the ports. Not completely destroy and re-create the object. Destroying and recreating the object creates a time period where any error on the pipeline can leave an incomplete template on NDO.

Actual Behavior

Terraform is destroying and re-creating all objects

Steps to Reproduce

Terraform plan/apply

Important Factoids

References