provider/openstack Changing the port resource to mark the ip_address as Optional

This commit is contained in:
Yo Takezawa 2016-01-27 17:36:05 +09:00
parent 24f10b024f
commit 0aff8e28a5
2 changed files with 4 additions and 3 deletions

View File

@ -89,7 +89,7 @@ func resourceNetworkingPortV2() *schema.Resource {
}, },
"ip_address": &schema.Schema{ "ip_address": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Optional: true,
}, },
}, },
}, },

View File

@ -69,8 +69,9 @@ The `fixed_ip` block supports:
* `subnet_id` - (Required) Subnet in which to allocate IP address for * `subnet_id` - (Required) Subnet in which to allocate IP address for
this port. this port.
* `ip_address` - (Required) IP address desired in the subnet for this * `ip_address` - (Optional) IP address desired in the subnet for this
port. port. If you don't specify `ip_address`, OpenStack will be allocated an available
IP address to this port.
## Attributes Reference ## Attributes Reference