File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ resource "google_compute_router_peer" "bgp_peer" {
114114 router = local. router
115115 peer_ip_address = each. value . bgp_peer . address
116116 peer_asn = each. value . bgp_peer . asn
117+ custom_learned_route_priority = each. value . custom_learned_route_priority == null ? null : each. value . custom_learned_route_priority
117118 ip_address = each. value . bgp_peer_options == null ? null : each. value . bgp_peer_options . ip_address
118119 advertised_route_priority = (
119120 each. value . bgp_peer_options == null ? var. route_priority : (
@@ -152,6 +153,18 @@ resource "google_compute_router_peer" "bgp_peer" {
152153 description = range. value
153154 }
154155 }
156+
157+ dynamic "custom_learned_ip_ranges" {
158+ for_each = (
159+ each. value . bgp_peer_options == null ? {} : (
160+ each. value . bgp_peer_options . custom_learned_ip_ranges
161+ )
162+ )
163+ iterator = range
164+ content {
165+ range = range. key
166+ }
167+ }
155168 interface = google_compute_router_interface. router_interface [each . key ]. name
156169}
157170
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ variable "tunnels" {
112112 advertise_groups = optional (list (string ))
113113 advertise_ip_ranges = optional (map (string ))
114114 advertise_mode = optional (string )
115+ custom_learned_ip_ranges = optional (map (string ))
115116 route_priority = optional (number )
116117 import_policies = optional (list (string ))
117118 export_policies = optional (list (string ))
@@ -122,6 +123,7 @@ variable "tunnels" {
122123 peer_external_gateway_self_link = optional (string , null )
123124 peer_external_gateway_interface = optional (number )
124125 shared_secret = optional (string , " " )
126+ custom_learned_route_priority = optional (number )
125127 }))
126128 default = {}
127129}
You can’t perform that action at this time.
0 commit comments