Skip to content

Commit

Permalink
Make route priority optional, default to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
jphalip committed Jan 27, 2018
1 parent 838296e commit 261a43e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion google/resource_compute_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ func resourceComputeRoute() *schema.Resource {

"priority": &schema.Schema{
Type: schema.TypeInt,
Required: true,
Optional: true,
ForceNew: true,
Default: 1000,
},

"next_hop_gateway": &schema.Schema{
Expand Down
1 change: 0 additions & 1 deletion google/resource_compute_route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ resource "google_compute_route" "foobar" {
dest_range = "15.0.0.0/24"
network = "${google_compute_network.foobar.name}"
next_hop_ip = "10.0.1.5"
priority = 100
}`, acctest.RandString(10), acctest.RandString(10))
}

Expand Down

0 comments on commit 261a43e

Please sign in to comment.