From 0aff8e28a5adbea9487f64e10d148190a3ad1c1a Mon Sep 17 00:00:00 2001 From: Yo Takezawa Date: Wed, 27 Jan 2016 17:36:05 +0900 Subject: [PATCH] provider/openstack Changing the port resource to mark the ip_address as Optional --- .../openstack/resource_openstack_networking_port_v2.go | 2 +- .../providers/openstack/r/networking_port_v2.html.markdown | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/builtin/providers/openstack/resource_openstack_networking_port_v2.go b/builtin/providers/openstack/resource_openstack_networking_port_v2.go index 987e1025e..4870f2877 100644 --- a/builtin/providers/openstack/resource_openstack_networking_port_v2.go +++ b/builtin/providers/openstack/resource_openstack_networking_port_v2.go @@ -89,7 +89,7 @@ func resourceNetworkingPortV2() *schema.Resource { }, "ip_address": &schema.Schema{ Type: schema.TypeString, - Required: true, + Optional: true, }, }, }, diff --git a/website/source/docs/providers/openstack/r/networking_port_v2.html.markdown b/website/source/docs/providers/openstack/r/networking_port_v2.html.markdown index 3e5998c94..45ae14c5d 100644 --- a/website/source/docs/providers/openstack/r/networking_port_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/networking_port_v2.html.markdown @@ -69,8 +69,9 @@ The `fixed_ip` block supports: * `subnet_id` - (Required) Subnet in which to allocate IP address for this port. -* `ip_address` - (Required) IP address desired in the subnet for this -port. +* `ip_address` - (Optional) IP address desired in the subnet for this +port. If you don't specify `ip_address`, OpenStack will be allocated an available +IP address to this port. ## Attributes Reference