Merge pull request #1015 from jphalip/route-priority-optional

Make route priority optional, default to 1000
This commit is contained in:
emily 2018-01-30 15:20:03 -08:00 committed by GitHub
commit db3a88ebef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 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))
}

View File

@ -48,7 +48,7 @@ The following arguments are supported:
* `network` - (Required) The name or self_link of the network to attach this route to.
* `priority` - (Required) The priority of this route, used to break ties.
* `priority` - (Optional) The priority of this route, used to break ties. Defaults to 1000.
- - -