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

[FEAT]: Add support for Multcast Classes in provider #2214

Open
1 task done
sthiffea-tmx opened this issue Mar 28, 2024 · 1 comment
Open
1 task done

[FEAT]: Add support for Multcast Classes in provider #2214

sthiffea-tmx opened this issue Mar 28, 2024 · 1 comment
Labels
Status: Triage This is being looked at and prioritized Type: Feature New feature or request

Comments

@sthiffea-tmx
Copy link

Describe the need

We are migrating to manage some (eventually all) of our ACI tenants complete configuration via terraform using the CiscoDevNet/aci provider. We use multicast, multicast route-maps, inter-vrf multicast. Currently these objects/classes are not supported by the ACI provider and we have to use the aci_rest_managed resource type.

Terraform Version: 1.6.4 (Using Terraform Enterprise)
CiscoDevNet/aci provider Version: v2.13.2
ACI APIC Version: v5.2(8h)

Classes we would like supported:
pimRouteMapPol
pimRouteMapEntry
pimCtxP
pimStaticRPPol
pimRPGrpRangePol
rtdmcRsFilterToRtMapPol
pimInterVRFPol
pimInterVRFEntryPol
rtdmcRsFilterToRtMapPol
igmpIfP
igmpRsIfPol

SDK Version

No response

API Version

No response

Relevant log output

This is an example of what we have to do now:

resource "aci_rest_managed" "BD-192_168_160_0-24_IGMPPOL" {
  dn         = "uni/tn-TENANTA/BD-BD-192.168.160.0-24/igmpIfP"
  depends_on = [aci_bridge_domain.BD-192_168_160_0-24]
  class_name = "igmpIfP"
  child {
    rn = "rsIfPol"
    class_name = "igmpRsIfPol"
    content ={
      tDn = "uni/tn-common/igmpIfPol-default"
    }
  }
}
resource "aci_rest_managed" "ROUTE_MAP_MCAST-TVG--TENANTB-CORE" {
  dn         = "uni/tn-TENANTA/rtmap-TVG--TENANTB-CORE"
  class_name = "pimRouteMapPol"
  content = {
    name = "TVG--TENANTB-CORE"
  }
}
resource "aci_rest_managed" "ROUTE_MAP_MCAST-TVG--TENANTB-CORE-entry1" {
  dn         = "uni/tn-${local.tenant_name}/rtmap-TVG--TENANTB-CORE/rtmapentry-1"
  class_name = "pimRouteMapEntry"
  depends_on = [aci_rest_managed.ROUTE_MAP_MCAST-TVG--TENANTB-CORE]
  content = {
    action = "permit"
    order  = "1"
    grp    = "224.0.1.129/32"
    rp     = "0.0.0.0"
    src    = "0.0.0.0"
  }
}
resource "aci_rest_managed" "CORE-PIM" {
  dn         = "uni/tn-${local.tenant_name}/ctx-CORE/pimctxp"
  class_name = "pimCtxP"
  depends_on = [aci_vrf.CORE]
}
resource "aci_rest_managed" "CORE-PIMRP" {
  dn         = "uni/tn-${local.tenant_name}/ctx-CORE/pimctxp/staticrp"
  class_name = "pimStaticRPPol"
  depends_on = [aci_rest_managed.CORE-PIM]
  child {
    rn         = "staticrpent-[192.168.150.254]"
    class_name = "pimStaticRPEntryPol"
    content = {
      rpIp = "192.168.150.254"
    }
  }
}
resource "aci_rest_managed" "CORE-RPEntry-RTMAP" {
  dn         = "uni/tn-${local.tenant_name}/ctx-CORE/pimctxp/staticrp/staticrpent-[192.168.150.254]/rpgrprange"
  class_name = "pimRPGrpRangePol"
  depends_on = [aci_rest_managed.CORE-PIMRP]
  child {
    rn         = "rsfilterToRtMapPol"
    class_name = "rtdmcRsFilterToRtMapPol"
    content = {
      tDn = "uni/tn-common/rtmap-RP-192.168.150.254"
    }
  }
}
resource "aci_rest_managed" "CORE-INTERVRF" {
  dn         = "uni/tn-${local.tenant_name}/ctx-CORE/pimctxp/intervrf"
  class_name = "pimInterVRFPol"
  depends_on = [aci_rest_managed.CORE-PIM]
}
resource "aci_rest_managed" "CORE-INTERVRF-Entry" {
  dn         = "uni/tn-${local.tenant_name}/ctx-CORE/pimctxp/intervrf/intervrfent-[uni/tn-TIME/ctx-CORE]"
  class_name = "pimInterVRFEntryPol"
  depends_on = [aci_rest_managed.CORE-INTERVRF]
  child {
    rn         = "rsfilterToRtMapPol"
    class_name = "rtdmcRsFilterToRtMapPol"
    content = {
      tDn = "uni/tn-${local.tenant_name}/rtmap-TVG--TENANTB-CORE"
    }
  }
}

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sthiffea-tmx sthiffea-tmx added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Mar 28, 2024
@kfcampbell
Copy link
Member

Hmm...do you have the correct repo here? None of the attached snippets appear related to the GitHub provider or resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants