From d07415ec6e3bd4138e6f45a91fbea3c12c5a31ea Mon Sep 17 00:00:00 2001 From: Megan Bang Date: Wed, 18 Sep 2019 16:04:05 -0500 Subject: [PATCH] add docs for comute router peer new fields --- .../docs/r/compute_router_peer.html.markdown | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/third_party/terraform/website/docs/r/compute_router_peer.html.markdown b/third_party/terraform/website/docs/r/compute_router_peer.html.markdown index 882506069e10..7ffb41178732 100644 --- a/third_party/terraform/website/docs/r/compute_router_peer.html.markdown +++ b/third_party/terraform/website/docs/r/compute_router_peer.html.markdown @@ -51,6 +51,25 @@ The following arguments are supported: * `advertised_route_priority` - (Optional) The priority of routes advertised to this BGP peer. Changing this forces a new peer to be created. +* `advertise_mode` - (Optional) User-specified flag to indicate which mode to use for advertisement. + Options include `DEFAULT` or `CUSTOM`. + +* `advertised_groups` - (Optional) User-specified list of prefix groups to advertise in custom mode, + which can take one of the following options: + + `ALL_SUBNETS`: Advertises all available subnets, including peer VPC subnets. + `ALL_VPC_SUBNETS`: Advertises the router's own VPC subnets. + `ALL_PEER_VPC_SUBNETS`: Advertises peer subnets of the router's VPC network. + + Note that this field can only be populated if `advertise_mode` is `CUSTOM` and overrides the list + defined for the router (in the "bgp" message). These groups are advertised in addition to any + specified prefixes. Leave this field blank to advertise no custom groups. + +* `advertised_ip_ranges` - (Optional) User-specified list of individual IP ranges to advertise in + custom mode. This field can only be populated if `advertise_mode` is `CUSTOM` and overrides + the list defined for the router (in the "bgp" message). These IP ranges are advertised in + addition to any specified groups. Leave this field blank to advertise no custom IP ranges. + * `project` - (Optional) The ID of the project in which this peer's router belongs. If it is not provided, the provider project is used. Changing this forces a new peer to be created. @@ -58,6 +77,16 @@ The following arguments are supported: the project region will be used. Changing this forces a new peer to be created. + +The `advertised_ip_ranges` block supports: + +* `description` - + (Optional) User-specified description for the IP range. + +* `range` - + (Optional) The IP range to advertise. The value must be a CIDR-formatted string. + + ## Attributes Reference In addition to the arguments listed above, the following computed attributes are