Skip to content

aci_rest_managed import for objects that include ":" in the dn (DCNE-510) #1371

@juchowan

Description

@juchowan

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.12.2

APIC version and APIC Platform

  • V 6.0

Affected Resource(s)

  • aci_rest_managed

Terraform Configuration Files

import {
  to = module.aci.module.aci_set_rule["ABC/SET1"].aci_rest_managed.rtctrlSetAddComm["regular:as2-nn2:34:3456"]
  id = "uni/tn-ABC/attr-SET1/saddcomm-regular:as2-nn2:34:3456"
}

Debug Output

╷
│ Error: Unexpected Import Identifier
│ 
│ Expected import identifier with format: <DN>:<RN-CHILD>,... or <CLASS_NAME>:<DN>:<RN-CHILD>,... Got:
│ "uni/tn-ABC/attr-SET1/saddcomm-regular:as2-nn2:34:3456"

--->

Panic Output

Expected Behavior

resource should be correctly imported

Actual Behavior

import fails as for rest_managed resource the ":" character is used to import children

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions