Closed thomasbertouxbetclic closed 4 years ago
I am experiencing the same issue. I believe it has something to do with missing parameters (mode, encap, etc). I'm not sure if the provider currently has the capability.
I was able to get around this issue by using the aci_rest module. You still need to keep the relation_fv_rs_path_att value in the aci_application_epg module to avoid it being removed on next apply.
resource "aci_rest" "path_att" { path = "api/node/mo/${aci_application_epg.some_epg.id}.json" class_name = "fvRsPathAtt" content = { "tDn" = "topology/pod-1/paths-103/pathep-[eth1/1]" "mode" = "regular" "encap" = "vlan-1111" "instrImedcy" = "immediate" } }
@hakras @thomasbertouxbetclic I will expose this class as concrete resource so that you can create the object by passing all the required parameters.
@hakras @thomasbertouxbetclic. This is the expected behaviour as the relationship class has other parameters which need to be passed. The workaround is correct as well. Are there any other relationship classes that you are using which need parameters to be passed?
@thomasbertouxbetclic @hakras I have exposed this class as concrete resource in the version 0.2.1 of the Provider, please find the details here for your reference: https://www.terraform.io/docs/providers/aci/r/fvrspathatt.html Do let me know if this solves your issue.
@nkatarmal-crest, using my existing tf code from a Linux system (using aci_rest), it is working as expected. I have a requirement to get this working under Windows. I copied over the same tf code to a Windows system and the code provided errors. Using the work you have done here, I modified my code to not use aci_rest, but to use aci_epg_to_static_path instead. Unfortunately, it is not working for me. Here are the issues I'm observing:
Looking forward to your suggestions. Thanks
@hakras Can you try below terraform snippet?
resource "aci_epg_to_static_path" "epg_to_stat_path" {
application_epg_dn = aci_application_epg.inherit_epg.id
tdn = "topology/pod-1/paths-103/pathep-[eth1/1]"
mode = "regular"
encap = "vlan-1111"
instr_imedcy = "immediate"
}
I am able to create the relation without any error using this.
I will remove the annotation attribute from this resource.
Closing as we haven't heard back in long time.
I'm trying to create an EPG on Cisco ACI using Terraform. EPG is created but Leaf's interface isn't attached. The terraform synthax to attach Leaf interface is :
It works when I do it manually through ACI web interface or REST API with tDN field like :
<fvRsPathAtt annotation="" descr="" encap="vlan-{{VLAN-ID}}" instrImedcy="immediate" mode="regular" primaryEncap="unknown" tDn="topology/pod-1/paths-103/pathep-[eth1/1]"/>