Skip to content

Commit e39ceb4

Browse files
sent ips only when external (#93)
1 parent 2674bfe commit e39ceb4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cc_fabric.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,8 @@ resource "catalystcenter_fabric_multicast_virtual_networks" "multicast" {
894894
ipv4_ssm_ranges = try(vn.ipv4_ssm_ranges, [])
895895
multicast_rps = [
896896
for rp in try(vn.multicast_rps, []) : {
897-
ipv4_address = try(rp.ipv4_address, null)
898-
ipv6_address = try(rp.ipv6_address, null)
897+
ipv4_address = try(rp.rp_location, "") != "FABRIC" ? try(rp.ipv4_address, null) : null
898+
ipv6_address = try(rp.rp_location, "") != "FABRIC" ? try(rp.ipv6_address, null) : null
899899
ipv4_asm_ranges = try(rp.ipv4_asm_ranges, [])
900900
ipv6_asm_ranges = try(rp.ipv6_asm_ranges, [])
901901
is_default_v4_rp = try(rp.is_default_v4_rp, null)

0 commit comments

Comments
 (0)