mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-03 08:42:39 +00:00
Fix TestAccComputeRoute_routeBasicExample (#2124)
<!-- This change is generated by MagicModules. --> /cc @rileykarson
This commit is contained in:
parent
9f0b792f09
commit
61240c3bac
|
@ -48,20 +48,13 @@ resource "google_compute_route" "default" {
|
|||
name = "network-route-%s"
|
||||
dest_range = "15.0.0.0/24"
|
||||
network = "${google_compute_network.default.name}"
|
||||
next_hop_ip = "10.0.1.5"
|
||||
next_hop_ip = "10.132.1.5"
|
||||
priority = 100
|
||||
}
|
||||
|
||||
resource "google_compute_network" "default" {
|
||||
name = "compute-network-%s"
|
||||
}
|
||||
|
||||
resource "google_compute_subnetwork" "default" {
|
||||
name = "compute-subnetwork-%s"
|
||||
ip_cidr_range = "10.0.0.0/16"
|
||||
network = "${google_compute_network.default.self_link}"
|
||||
region = "us-central1"
|
||||
}
|
||||
`, val, val, val,
|
||||
`, val, val,
|
||||
)
|
||||
}
|
||||
|
|
|
@ -56,20 +56,13 @@ resource "google_compute_route" "default" {
|
|||
name = "network-route"
|
||||
dest_range = "15.0.0.0/24"
|
||||
network = "${google_compute_network.default.name}"
|
||||
next_hop_ip = "10.0.1.5"
|
||||
next_hop_ip = "10.132.1.5"
|
||||
priority = 100
|
||||
}
|
||||
|
||||
resource "google_compute_network" "default" {
|
||||
name = "compute-network"
|
||||
}
|
||||
|
||||
resource "google_compute_subnetwork" "default" {
|
||||
name = "compute-subnetwork"
|
||||
ip_cidr_range = "10.0.0.0/16"
|
||||
network = "${google_compute_network.default.self_link}"
|
||||
region = "us-central1"
|
||||
}
|
||||
```
|
||||
|
||||
## Argument Reference
|
||||
|
|
Loading…
Reference in New Issue
Block a user