Skip to content

Commit 8b5b1b7

Browse files
Add missing documentation for custom learned routes (#12211) (#8618)
[upstream:f6544a1921b2a6f21bbf225f6b2041a8b22284ab] Signed-off-by: Modular Magician <[email protected]>
1 parent da93ff9 commit 8b5b1b7

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.changelog/12211.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
docs: added documentation for `custom_learned_ip_ranges` and `custom_learned_route_priority` fields in `google_compute_router_peer` resource
3+
```

google-beta/services/compute/resource_compute_router_peer.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ IP address is provided without a subnet mask, it is interpreted as, for IPv4, a
154154
"range": {
155155
Type: schema.TypeString,
156156
Required: true,
157-
Description: `The IP range to advertise. The value must be a
157+
Description: `The IP range to learn. The value must be a
158158
CIDR-formatted string.`,
159159
},
160160
},
@@ -1276,7 +1276,6 @@ func flattenNestedComputeRouterBgpPeerIpv4NexthopAddress(v interface{}, d *schem
12761276
func flattenNestedComputeRouterBgpPeerPeerIpv4NexthopAddress(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} {
12771277
return v
12781278
}
1279-
12801279
func flattenNestedComputeRouterBgpPeerExportPolicies(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} {
12811280
return v
12821281
}
@@ -1511,7 +1510,6 @@ func expandNestedComputeRouterBgpPeerIpv4NexthopAddress(v interface{}, d tpgreso
15111510
func expandNestedComputeRouterBgpPeerPeerIpv4NexthopAddress(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) {
15121511
return v, nil
15131512
}
1514-
15151513
func expandNestedComputeRouterBgpPeerExportPolicies(v interface{}, d tpgresource.TerraformResourceData, config *transport_tpg.Config) (interface{}, error) {
15161514
return v, nil
15171515
}

website/docs/r/compute_router_peer.html.markdown

+21
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,20 @@ The following arguments are supported:
413413
Leave this field blank to advertise no custom IP ranges.
414414
Structure is [documented below](#nested_advertised_ip_ranges).
415415

416+
* `custom_learned_route_priority` -
417+
(Optional)
418+
The user-defined custom learned route priority for a BGP session.
419+
This value is applied to all custom learned route ranges for the session.
420+
You can choose a value from 0 to 65335. If you don't provide a value,
421+
Google Cloud assigns a priority of 100 to the ranges.
422+
423+
* `custom_learned_ip_ranges` -
424+
(Optional)
425+
The custom learned route IP address range. Must be a valid CIDR-formatted prefix.
426+
If an IP address is provided without a subnet mask, it is interpreted as, for IPv4,
427+
a /32 singular IP address range, and, for IPv6, /128.
428+
Structure is [documented below](#nested_custom_learned_ip_ranges).
429+
416430
* `bfd` -
417431
(Optional)
418432
BFD configuration for the BGP peering.
@@ -494,6 +508,13 @@ The following arguments are supported:
494508
(Optional)
495509
User-specified description for the IP range.
496510

511+
<a name="nested_custom_learned_ip_ranges"></a>The `custom_learned_ip_ranges` block supports:
512+
513+
* `range` -
514+
(Required)
515+
The IP range to learn. The value must be a
516+
CIDR-formatted string.
517+
497518
<a name="nested_bfd"></a>The `bfd` block supports:
498519

499520
* `session_initialization_mode` -

0 commit comments

Comments
 (0)