Skip to content

Commit

Permalink
Add clear remote mac bd option
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Nov 11, 2023
1 parent a25de66 commit ec6775a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions aci_tenants.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions modules/terraform-aci-bridge-domain/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down
5 changes: 5 additions & 0 deletions modules/terraform-aci-bridge-domain/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit ec6775a

Please sign in to comment.