2015-05-05 14:00:00 +02:00
|
|
|
---
|
|
|
|
layout: "openstack"
|
|
|
|
page_title: "OpenStack: openstack_networking_router_v2"
|
2015-05-08 18:14:02 +02:00
|
|
|
sidebar_current: "docs-openstack-resource-networking-router-v2"
|
2015-05-05 14:00:00 +02:00
|
|
|
description: |-
|
|
|
|
Manages a V2 router resource within OpenStack.
|
|
|
|
---
|
|
|
|
|
|
|
|
# openstack\_networking\_router_v2
|
|
|
|
|
|
|
|
Manages a V2 router resource within OpenStack.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-17 12:17:54 +02:00
|
|
|
```hcl
|
2015-05-05 14:00:00 +02:00
|
|
|
resource "openstack_networking_router_v2" "router_1" {
|
2017-02-18 23:48:50 +01:00
|
|
|
name = "my_router"
|
2015-05-05 14:00:00 +02:00
|
|
|
external_gateway = "f67f0d72-0ddf-11e4-9d95-e1f29f417e2f"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `region` - (Required) The region in which to obtain the V2 networking client.
|
|
|
|
A networking client is needed to create a router. If omitted, the
|
|
|
|
`OS_REGION_NAME` environment variable is used. Changing this creates a new
|
|
|
|
router.
|
|
|
|
|
|
|
|
* `name` - (Optional) A unique name for the router. Changing this
|
|
|
|
updates the `name` of an existing router.
|
|
|
|
|
|
|
|
* `admin_state_up` - (Optional) Administrative up/down status for the router
|
|
|
|
(must be "true" or "false" if provided). Changing this updates the
|
|
|
|
`admin_state_up` of an existing router.
|
|
|
|
|
2016-02-12 18:57:41 +01:00
|
|
|
* `distributed` - (Optional) Indicates whether or not to create a
|
|
|
|
distributed router. The default policy setting in Neutron restricts
|
|
|
|
usage of this property to administrative users only.
|
|
|
|
|
2015-05-05 14:00:00 +02:00
|
|
|
* `external_gateway` - (Optional) The network UUID of an external gateway for
|
|
|
|
the router. A router with an external gateway is required if any compute
|
|
|
|
instances or load balancers will be using floating IPs. Changing this
|
|
|
|
updates the `external_gateway` of an existing router.
|
|
|
|
|
|
|
|
* `tenant_id` - (Optional) The owner of the floating IP. Required if admin wants
|
|
|
|
to create a router for another tenant. Changing this creates a new router.
|
|
|
|
|
2016-04-11 10:23:01 +02:00
|
|
|
* `value_specs` - (Optional) Map of additional driver-specific options.
|
|
|
|
|
2015-05-05 14:00:00 +02:00
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
2017-01-17 19:36:47 +01:00
|
|
|
* `id` - ID of the router.
|
2015-05-05 14:00:00 +02:00
|
|
|
* `region` - See Argument Reference above.
|
|
|
|
* `name` - See Argument Reference above.
|
|
|
|
* `admin_state_up` - See Argument Reference above.
|
|
|
|
* `external_gateway` - See Argument Reference above.
|
|
|
|
* `tenant_id` - See Argument Reference above.
|
2016-04-11 10:23:01 +02:00
|
|
|
* `value_specs` - See Argument Reference above.
|