mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-03 08:42:39 +00:00
Merge pull request #1015 from jphalip/route-priority-optional
Make route priority optional, default to 1000
This commit is contained in:
commit
db3a88ebef
|
@ -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{
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
- - -
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user