Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network peering routes config updates #12581

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions mmv1/products/compute/NetworkPeeringRoutesConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,17 @@ properties:
Whether to import the custom routes to the peer network.
required: true
send_empty_value: true
- name: 'exportSubnetRoutesWithPublicIp'
brcabrera marked this conversation as resolved.
Show resolved Hide resolved
description: |
Whether subnet routes with public IP range are exported.
IPv4 special-use ranges are always exported to peers and
are not controlled by this field.
send_empty_value: true
default_from_api: true
- name: 'importSubnetRoutesWithPublicIp'
description: |
Whether subnet routes with public IP range are imported.
IPv4 special-use ranges are always imported from peers and
are not controlled by this field.
send_empty_value: true
default_from_api: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ resource "google_compute_network_peering_routes_config" "{{$.PrimaryResourceId}}
peering = google_compute_network_peering.peering_primary.name
network = google_compute_network.network_primary.name

import_custom_routes = true
export_custom_routes = true
import_custom_routes = true
export_custom_routes = true
import_subnet_routes_with_public_ip = true
export_subnet_routes_with_public_ip = true
}

resource "google_compute_network_peering" "peering_primary" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ resource "google_compute_network_peering_routes_config" "{{$.PrimaryResourceId}}
peering = google_container_cluster.private_cluster.private_cluster_config[0].peering_name
network = google_compute_network.container_network.name

import_custom_routes = true
export_custom_routes = true
import_custom_routes = true
export_custom_routes = true
import_subnet_routes_with_public_ip = true
export_subnet_routes_with_public_ip = true
}

resource "google_compute_network" "container_network" {
Expand Down
Loading