Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new resource and data-source for "external_epg_intra_epg_contracts" #936

Closed
shrsr opened this issue Sep 12, 2022 · 0 comments · Fixed by #1223
Closed

Create a new resource and data-source for "external_epg_intra_epg_contracts" #936

shrsr opened this issue Sep 12, 2022 · 0 comments · Fixed by #1223

Comments

@shrsr
Copy link
Collaborator

shrsr commented Sep 12, 2022

Specifics:

API Information:

  • Class: "fvRsIntraEpg"
  • Distinguised Name: "/uni/tn-{tenant}/out-{l3out}/instP-{ext_epg}/rsintraEpg-{contract}"

GUI Location:

  • tenants > {tenant} > Networking > L3Outs > {l3out} > External EPGs > {ext_epg}: Contracts

Resource configuration using aci_rest_managed:

resource "aci_rest_managed" "external_epg_intra_epg_contracts" {
  depends_on = [
    aci_external_network_instance_profile.l3out_external_epgs,
    aci_rest_managed.oob_external_epgs
  ]
  for_each   = { for k, v in local.l3out_ext_epg_contracts : k => v if v.controller_type == "apic" && v.contract_type == "intra_epg" }
  dn         = "uni/tn-${each.value.tenant}/out-${each.value.l3out}/instP-${each.value.epg}/rsintraEpg-${each.value.contract}"
  class_name = "fvRsIntraEpg"
  content = {
    tnVzBrCPName = each.value.contract
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants