CiscoDevNet / terraform-provider-aci

Terraform Cisco ACI provider
https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs
Mozilla Public License 2.0
90 stars 102 forks source link

Support L4-L7 Virtual IPs - class fv:Vip (DCNE-45) #1254

Open bardahlm opened 4 months ago

bardahlm commented 4 months ago

Community Note

Description

To support server clusters set up with DSR (direct server return), L4-L7 Virtual IPs needs to be configured under the EPG.

New or Affected Resource(s) + ACI Class(es):

APIC version and APIC Platform

Potential Terraform Configuration

resource "aci_application_epg" "fooapplication_epg" {
    application_profile_dn  = aci_application_profile.app_profile_for_epg.id
    name                    = "demo_epg"
    description             = "from terraform"
    annotation              = "tag_epg"
    exception_tag           = "0"
    flood_on_encap          = "disabled"
    fwd_ctrl                = "none"
    has_mcast_source        = "no"
    is_attr_based_epg       = "no"
    match_t                 = "AtleastOne"
    name_alias              = "alias_epg"
    pc_enf_pref             = "unenforced"
    pref_gr_memb            = "exclude"
    prio                    = "unspecified"
    shutdown                = "no"
    relation_fv_rs_bd       = aci_bridge_domain.example.id
    l4l7_virtual_ip {
      addr = "10.2.3.4"
      description = "L4 service vip"
    }
    l4l7_virtual_ip {
      addr = "2001:db8:a0b:12f0::5"
      description = "L4 service vip ipv6"
    }
}

References

https://www.cisco.com/c/en/us/solutions/collateral/data-center-virtualization/application-centric-infrastructure/white-paper-c11-739989.html#L4L7VirtualIPs

akinross commented 4 months ago

HI @bardahlm,

Thank you for raising this issue, I will add it to the to do items. I am not sure this will be added to the resource itself but will likely be a separate resource since we typically only add relationship classes to the resource. Will be discussed with the team when it is assigned.