Closed scotttyso closed 1 year ago
Remove annotation in list @ https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/aci/resource_aci_rest_managed.go#L16 should resolve this issue.
Issue is closely related to https://github.com/CiscoDevNet/terraform-provider-aci/issues/1074 where injection into content should be made by global default when not provided to content. Be aware that only class that contain annotation attribute should be injected with a annotation
Community Note
Terraform Version
APIC version and APIC Platform
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
on re-apply even though the api has the value of the annotation, the annotation object is missing from the state file, and it believes it needs to be updated.
A few examples are: infraSetPol latencyPtpMode fabricProtPol vzOOBBrCP mgmtInstP
I may have more in tenant policies and route-maps. But I need to do further testing there.
If I try to add annotation to infraSHPortS I get the following error
If I try to add annotation to syslogGroup I get the following error:
Additional challenges with some more with trying to utilize annotation
The following are ignoring annotation all together. snmpSrc snmpTrapFwdServerP snmpGroup snmpPol datetimeFormat datetimePol fabricPodPGrp fabricPodP fabricPodS syslogRemoteDest syslogSrc
With aci_fabric_node_control ignores annotation. aci_l3_interface_policy ignores annotation. aci_vlan_pool isn't by default setting annotation.
In function it is working but annotation is not being added to the state, so it believes it needs to re-apply each time.
On a Side note, outside of the provider and with the GUI, it seems to be inconsistent when the Tag is added to the object or not.
i.e. BGP Route Reflector and COOP Group show it. APIC Connectivity Preference, Fabric-Wide Settings, Global AES, ISIS Policy, Port Tracking, PTP and Latency, qosInstPol, infraSpAccPortGrp, Admin > AAA > Authentication Default Settings/Security Default Settings, do not. Would be nice for the UI to be consistent.
Important Factoids
References
0000