diff --git a/CHANGELOG.md b/CHANGELOG.md index 25fa13c2..a71a2f19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - Fix PIM policy compatibility issue with ACI 6.0.x - Add support for VMware VMM domain security domains - Add support for security domains +- Add option to clear remote MAC entries of BDs ## 0.7.0 diff --git a/aci_tenants.tf b/aci_tenants.tf index 396b3ced..7b668793 100644 --- a/aci_tenants.tf +++ b/aci_tenants.tf @@ -168,6 +168,7 @@ locals { mac = try(bd.mac, local.defaults.apic.tenants.bridge_domains.mac) virtual_mac = try(bd.virtual_mac, "") ep_move_detection = try(bd.ep_move_detection, local.defaults.apic.tenants.bridge_domains.ep_move_detection) + clear_remote_mac_entries = try(bd.clear_remote_mac_entries, local.defaults.apic.tenants.bridge_domains.clear_remote_mac_entries) l3_multicast = try(bd.l3_multicast, local.defaults.apic.tenants.bridge_domains.l3_multicast) multi_destination_flooding = try(bd.multi_destination_flooding, local.defaults.apic.tenants.bridge_domains.multi_destination_flooding) unicast_routing = try(bd.unicast_routing, local.defaults.apic.tenants.bridge_domains.unicast_routing) @@ -213,6 +214,7 @@ module "aci_bridge_domain" { mac = each.value.mac virtual_mac = each.value.virtual_mac ep_move_detection = each.value.ep_move_detection + clear_remote_mac_entries = each.value.clear_remote_mac_entries l3_multicast = each.value.l3_multicast multi_destination_flooding = each.value.multi_destination_flooding unicast_routing = each.value.unicast_routing diff --git a/modules/terraform-aci-bridge-domain/main.tf b/modules/terraform-aci-bridge-domain/main.tf index b2d517e0..13dea986 100644 --- a/modules/terraform-aci-bridge-domain/main.tf +++ b/modules/terraform-aci-bridge-domain/main.tf @@ -31,6 +31,7 @@ resource "aci_rest_managed" "fvBD" { unkMacUcastAct = var.unknown_unicast unkMcastAct = var.unknown_ipv4_multicast v6unkMcastAct = var.unknown_ipv6_multicast + epClear = var.clear_remote_mac_entries == true ? "yes" : "no" } } diff --git a/modules/terraform-aci-bridge-domain/variables.tf b/modules/terraform-aci-bridge-domain/variables.tf index f18a95b5..3f5ac573 100644 --- a/modules/terraform-aci-bridge-domain/variables.tf +++ b/modules/terraform-aci-bridge-domain/variables.tf @@ -79,7 +79,12 @@ variable "ep_move_detection" { description = "Endpoint move detection flag." type = bool default = false +} +variable "clear_remote_mac_entries" { + description = "Clear remote MAC entries flag." + type = bool + default = false } variable "virtual_mac" {