cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
448
Views
1
Helpful
2
Replies

ACI Terraform aci_interface_config and static ports configurations

Dirk Feldhaus
Level 1
Level 1
Hello,

I'd like to use Terraform to configure interfaces with the resource "aci_interface_config" and later configure a static port with "aci_bulk_epg_to_static_path".
However, for "aci_bulk_epg_to_static_path" I need the interface_dn for the specific ports and I'm not able to pull that from the state returned by "aci_interface_config".
When I check the object browser for the created "infraPortConfig" object the attribute "pcPortDn" seems to hold the appropriate value, but it is not part of the terraform state for this object.

Is it missing there (and can you add it) or am I missing something?

Dirk
2 Replies 2

Lennart Jung
Level 1
Level 1

Hi @Dirk Feldhaus,
did you ever manage to find a way around this problem?

I am currently using a static assignment using the path, i.e. 

"topology/pod-1/protpaths-LEAF1-LEAF2/pathep-[IPG_$WHATEVERDEVICE-NODE-1-VPC]" for VPCs and 
"topology/pod-1/paths-LEAF-ID2/pathep-[eth1/1]" for physical ports.
 
This is really inconvenient but seems to be the only way?
 
Cheers,
 
Lennart

@Lennart Jung :

I've opened a bug report on github and got the reply that it is fixed. But I got distracted by other problems and never really followed up. This is the bug report in github: https://github.com/CiscoDevNet/terraform-provider-aci/issues/1080#issuecomment-1639113368. I hope that helps. Dirk

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License