Skip to content

Commit

Permalink
Fix subnetwork_reserved_secondary_range test vars (GoogleCloudPlatfor…
Browse files Browse the repository at this point in the history
  • Loading branch information
roaks3 authored and trodge committed Oct 10, 2024
1 parent 6c20346 commit ee838d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions mmv1/products/compute/Subnetwork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ examples:
vars:
subnetwork_name: 'subnetwork-reserved-secondary-range'
network_name: 'network-reserved-secondary-range'
primary_range_name: 'reserved-primary'
secondary_range_name: 'reserved-secondary'
virtual_fields:
- name: 'send_secondary_ip_range_if_empty'
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "google_compute_network" "default" {

resource "google_network_connectivity_internal_range" "reserved" {
provider = google-beta
name = "reserved"
name = "{{index $.Vars "primary_range_name"}}"
network = google_compute_network.default.id
usage = "FOR_VPC"
peering = "FOR_SELF"
Expand All @@ -31,7 +31,7 @@ resource "google_network_connectivity_internal_range" "reserved" {

resource "google_network_connectivity_internal_range" "reserved_secondary" {
provider = google-beta
name = "reserved-secondary"
name = "{{index $.Vars "secondary_range_name"}}"
network = google_compute_network.default.id
usage = "FOR_VPC"
peering = "FOR_SELF"
Expand Down

0 comments on commit ee838d7

Please sign in to comment.