Skip to content

Commit

Permalink
Include Export Ranges IPv6 Support (#12809)
Browse files Browse the repository at this point in the history
  • Loading branch information
cynicphoenix authored Jan 23, 2025
1 parent 8e2d6d2 commit d77614b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mmv1/products/networkconnectivity/Spoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ examples:
spoke_name: "vpc-spoke"
auto_accept_project_1_name: "foo"
auto_accept_project_2_name: "bar"
- name: 'network_connectivity_spoke_linked_vpc_network_ipv6_support'
primary_resource_id: 'primary'
vars:
network_name: 'net'
hub_name: 'hub1'
spoke_name: 'spoke1-ipv6'
parameters:
- name: 'location'
type: String
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
resource "google_compute_network" "network" {
name = "{{index $.Vars "network_name"}}"
auto_create_subnetworks = false
}

resource "google_network_connectivity_hub" "basic_hub" {
name = "{{index $.Vars "hub_name"}}"
description = "A sample hub"
labels = {
label-two = "value-one"
}
}

resource "google_network_connectivity_spoke" "{{$.PrimaryResourceId}}" {
name = "{{index $.Vars "spoke_name"}}"
location = "global"
description = "A sample spoke with a linked VPC that include export ranges of all IPv6"
labels = {
label-one = "value-one"
}
hub = google_network_connectivity_hub.basic_hub.id
linked_vpc_network {
include_export_ranges = [
"ALL_IPV6_RANGES",
"ALL_PRIVATE_IPV4_RANGES"
]
uri = google_compute_network.network.self_link
}
}

0 comments on commit d77614b

Please sign in to comment.