Skip to content

Commit 261a43e

Browse files
committed
Make route priority optional, default to 1000
Fixes hashicorp#1009
1 parent 838296e commit 261a43e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/resource_compute_route.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ func resourceComputeRoute() *schema.Resource {
3939

4040
"priority": &schema.Schema{
4141
Type: schema.TypeInt,
42-
Required: true,
42+
Optional: true,
4343
ForceNew: true,
44+
Default: 1000,
4445
},
4546

4647
"next_hop_gateway": &schema.Schema{

google/resource_compute_route_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ resource "google_compute_route" "foobar" {
153153
dest_range = "15.0.0.0/24"
154154
network = "${google_compute_network.foobar.name}"
155155
next_hop_ip = "10.0.1.5"
156-
priority = 100
157156
}`, acctest.RandString(10), acctest.RandString(10))
158157
}
159158

0 commit comments

Comments
 (0)