Make route priority optional, default to 1000

Fixes #1009
This commit is contained in:
Julien Phalip 2018-01-27 13:37:32 -08:00
parent 838296e155
commit 261a43e633
2 changed files with 2 additions and 2 deletions

View File

@ -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{

View File

@ -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))
}