Skip to content

Commit 2d5a6e1

Browse files
authored
Declare zero_advertised_route_priority for each peer in the peers list in the interface module
Declare zero_advertised_route_priority for each peer in the peers list in the interface module. The interface module passes the value of zero_advertised_route_priority to zero_advertised_route_priority in each google_compute_router_peer resource.
1 parent 7d023e2 commit 2d5a6e1

File tree

1 file changed

+4
-3
lines changed
  • modules/interconnect_attachment

1 file changed

+4
-3
lines changed

modules/interconnect_attachment/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ module "interface" {
4646
name = try(var.peer.name, null)
4747

4848
# Peer IP Address must not contain the subnet mask, else will throw an invalid IP address error.
49-
peer_ip_address = element(split("/", google_compute_interconnect_attachment.attachment.customer_router_ip_address), 0)
50-
peer_asn = try(var.peer.peer_asn, null)
51-
advertised_route_priority = try(var.peer.advertised_route_priority, null)
49+
peer_ip_address = element(split("/", google_compute_interconnect_attachment.attachment.customer_router_ip_address), 0)
50+
peer_asn = try(var.peer.peer_asn, null)
51+
advertised_route_priority = try(var.peer.advertised_route_priority, null)
52+
zero_advertised_route_priority = try(var.peer.zero_advertised_route_priority, false)
5253
bfd = try(var.peer.bfd, null)
5354
md5_authentication_key = try(var.peer.md5_authentication_key, null)
5455
}]

0 commit comments

Comments
 (0)