terraform/builtin/providers/openstack
Joe Topjian 77a41ca859 provider/openstack: Resolve issues with Port Fixed IPs (#13056)
* provider/openstack: Add all_fixed_ips computed attribute to port resource

This commit adds the `all_fixed_ips` attribute to the
openstack_networking_port_v2 resource. This contains all of the port's
Fixed IPs returned by the Networking v2 API.

* provider/openstack: Revert Port fixed_ip back to a List

This commit reverts the changes made in a8c4e81a6e3f2. This
re-enables the ability to reference IP addresses using the
numerical-element notation.

This commit also makes fixed_ip a non-computed field, meaning
Terraform will no longer set fixed_ip with what was returned
by the API. This resolves the original issue about ordering.

The last use-case is for fixed_ips that received an IP address
via DHCP. Because fixed_ip is no longer computed, the DHCP IP
will not be set. The workaround for this use-case is to use the
new all_fixed_ips attribute.

In effect, users should use fixed_ip only as a way of inputting
data into Terraform and use all_fixed_ips as the output returned
by the API. If use-cases exist where fixed_ip can be used as an
output, that's a bonus feature.
2017-03-27 20:22:56 +03:00
..
config.go provider/openstack: Enable HTTP Logging (#12089) 2017-02-20 14:36:05 +02:00
data_source_openstack_images_image_v2.go provider/openstack: rename image data source files (#12439) 2017-03-04 20:24:19 +02:00
data_source_openstack_images_image_v2_test.go provider/openstack: rename image data source files (#12439) 2017-03-04 20:24:19 +02:00
data_source_openstack_networking_network_v2.go provider/openstack: Add network_id to Network data source (#12615) 2017-03-12 18:39:25 +02:00
data_source_openstack_networking_network_v2_test.go provider/openstack: Add network_id to Network data source (#12615) 2017-03-12 18:39:25 +02:00
import_openstack_blockstorage_volume_v1_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_blockstorage_volume_v2_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_compute_floatingip_associate_v2_test.go provider/openstack: openstack_compute_floatingip_associate_v2 resource (#12190) 2017-03-02 05:18:57 +00:00
import_openstack_compute_floatingip_v2_test.go provider/openstack: Updating Compute acceptance tests (#10954) 2016-12-29 16:01:30 +00:00
import_openstack_compute_keypair_v2_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_compute_secgroup_v2_test.go provider/openstack: Updating Compute acceptance tests (#10954) 2016-12-29 16:01:30 +00:00
import_openstack_compute_servergroup_v2_test.go provider/openstack: Updating Compute acceptance tests (#10954) 2016-12-29 16:01:30 +00:00
import_openstack_compute_volume_attach_v2_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_fw_firewall_v1_test.go provider/openstack: Updating FWaaS and LBaaS v2 Acceptance Tests (#10959) 2016-12-29 23:37:01 +00:00
import_openstack_fw_policy_v1_test.go provider/openstack: Updating FWaaS and LBaaS v2 Acceptance Tests (#10959) 2016-12-29 23:37:01 +00:00
import_openstack_fw_rule_v1_test.go provider/openstack: Updating FWaaS and LBaaS v2 Acceptance Tests (#10959) 2016-12-29 23:37:01 +00:00
import_openstack_images_image_v2_test.go provider/openstack: Fix Creation of Empty Tags 2017-02-19 18:44:42 +00:00
import_openstack_lb_member_v1_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_lb_monitor_v1_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_lb_pool_v1_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_lb_vip_v1_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_networking_floatingip_v2_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_networking_network_v2_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_networking_port_v2_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_networking_secgroup_rule_v2_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_networking_secgroup_v2_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
import_openstack_networking_subnet_v2_test.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
provider.go provider/openstack: Add openstack_networking_network_v2 datasource (#12304) 2017-03-06 13:25:08 +02:00
provider_test.go provider/openstack: Updates to openstack_images_image_v2 resource 2017-02-19 21:20:29 +00:00
resource_openstack_blockstorage_volume_attach_v2.go provider/openstack: Adding Timeouts to Blockstorage Resources (#12862) 2017-03-19 17:07:26 +00:00
resource_openstack_blockstorage_volume_attach_v2_test.go provider/openstack: Adding Timeouts to Blockstorage Resources (#12862) 2017-03-19 17:07:26 +00:00
resource_openstack_blockstorage_volume_v1.go provider/openstack: Adding Timeouts to Blockstorage Resources (#12862) 2017-03-19 17:07:26 +00:00
resource_openstack_blockstorage_volume_v1_test.go provider/openstack: Adding Timeouts to Blockstorage Resources (#12862) 2017-03-19 17:07:26 +00:00
resource_openstack_blockstorage_volume_v2.go provider/openstack: Adding Timeouts to Blockstorage Resources (#12862) 2017-03-19 17:07:26 +00:00
resource_openstack_blockstorage_volume_v2_test.go provider/openstack: Adding Timeouts to Blockstorage Resources (#12862) 2017-03-19 17:07:26 +00:00
resource_openstack_compute_floatingip_associate_v2.go provider/openstack: openstack_compute_floatingip_associate_v2 resource (#12190) 2017-03-02 05:18:57 +00:00
resource_openstack_compute_floatingip_associate_v2_test.go provider/openstack: openstack_compute_floatingip_associate_v2 resource (#12190) 2017-03-02 05:18:57 +00:00
resource_openstack_compute_floatingip_v2.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
resource_openstack_compute_floatingip_v2_test.go provider/openstack: Updating Compute acceptance tests (#10954) 2016-12-29 16:01:30 +00:00
resource_openstack_compute_instance_v2.go provider/openstack: Adding all_metadata attribute (#13061) 2017-03-27 20:09:18 +03:00
resource_openstack_compute_instance_v2_test.go provider/openstack: Adding all_metadata attribute (#13061) 2017-03-27 20:09:18 +03:00
resource_openstack_compute_keypair_v2.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
resource_openstack_compute_keypair_v2_test.go provider/openstack: Updating Compute acceptance tests (#10954) 2016-12-29 16:01:30 +00:00
resource_openstack_compute_secgroup_v2.go provider/openstack: Add timeout support for Compute resources (#12794) 2017-03-17 16:08:02 +00:00
resource_openstack_compute_secgroup_v2_test.go provider/openstack: Add timeout support for Compute resources (#12794) 2017-03-17 16:08:02 +00:00
resource_openstack_compute_servergroup_v2.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
resource_openstack_compute_servergroup_v2_test.go provider/openstack: Updating Compute acceptance tests (#10954) 2016-12-29 16:01:30 +00:00
resource_openstack_compute_volume_attach_v2.go provider/openstack: Add timeout support for Compute resources (#12794) 2017-03-17 16:08:02 +00:00
resource_openstack_compute_volume_attach_v2_test.go provider/openstack: Add timeout support for Compute resources (#12794) 2017-03-17 16:08:02 +00:00
resource_openstack_fw_firewall_v1.go provider/openstack: Adding Timeouts to FWaaS v1 Resources (#12863) 2017-03-19 17:09:22 +00:00
resource_openstack_fw_firewall_v1_test.go provider/openstack: Adding Timeouts to FWaaS v1 Resources (#12863) 2017-03-19 17:09:22 +00:00
resource_openstack_fw_policy_v1.go provider/openstack: Adding Timeouts to FWaaS v1 Resources (#12863) 2017-03-19 17:09:22 +00:00
resource_openstack_fw_policy_v1_test.go provider/openstack: Adding Timeouts to FWaaS v1 Resources (#12863) 2017-03-19 17:09:22 +00:00
resource_openstack_fw_rule_v1.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
resource_openstack_fw_rule_v1_test.go provider/openstack: Updating FWaaS and LBaaS v2 Acceptance Tests (#10959) 2016-12-29 23:37:01 +00:00
resource_openstack_images_image_v2.go provider/openstack: Adding Timeouts to Image v2 and LBaaS v2 Resources (#12865) 2017-03-19 17:14:20 +00:00
resource_openstack_images_image_v2_test.go provider/openstack: Adding Timeouts to Image v2 and LBaaS v2 Resources (#12865) 2017-03-19 17:14:20 +00:00
resource_openstack_lb_listener_v2.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
resource_openstack_lb_listener_v2_test.go provider/openstack: Updating FWaaS and LBaaS v2 Acceptance Tests (#10959) 2016-12-29 23:37:01 +00:00
resource_openstack_lb_loadbalancer_v2.go provider/openstack: Adding Timeouts to Image v2 and LBaaS v2 Resources (#12865) 2017-03-19 17:14:20 +00:00
resource_openstack_lb_loadbalancer_v2_test.go provider/openstack: Adding Timeouts to Image v2 and LBaaS v2 Resources (#12865) 2017-03-19 17:14:20 +00:00
resource_openstack_lb_member_v1.go provider/openstack: Adding Timeouts to LBaaS v1 Resources (#12867) 2017-03-19 17:18:03 +00:00
resource_openstack_lb_member_v1_test.go provider/openstack: Adding Timeouts to LBaaS v1 Resources (#12867) 2017-03-19 17:18:03 +00:00
resource_openstack_lb_member_v2.go provider/openstack: Adding Timeouts to Image v2 and LBaaS v2 Resources (#12865) 2017-03-19 17:14:20 +00:00
resource_openstack_lb_member_v2_test.go provider/openstack: Adding Timeouts to Image v2 and LBaaS v2 Resources (#12865) 2017-03-19 17:14:20 +00:00
resource_openstack_lb_monitor_v1.go provider/openstack: Adding Timeouts to LBaaS v1 Resources (#12867) 2017-03-19 17:18:03 +00:00
resource_openstack_lb_monitor_v1_test.go provider/openstack: Adding Timeouts to LBaaS v1 Resources (#12867) 2017-03-19 17:18:03 +00:00
resource_openstack_lb_monitor_v2.go provider/openstack: Adding Timeouts to Image v2 and LBaaS v2 Resources (#12865) 2017-03-19 17:14:20 +00:00
resource_openstack_lb_monitor_v2_test.go provider/openstack: Adding Timeouts to Image v2 and LBaaS v2 Resources (#12865) 2017-03-19 17:14:20 +00:00
resource_openstack_lb_pool_v1.go provider/openstack: Fix monitor_id typo in LBaaS v1 Pool (#13069) 2017-03-25 22:42:18 +02:00
resource_openstack_lb_pool_v1_test.go provider/openstack: Fix monitor_id typo in LBaaS v1 Pool (#13069) 2017-03-25 22:42:18 +02:00
resource_openstack_lb_pool_v2.go provider/openstack: 409 Response on Pool Create (#13074) 2017-03-26 14:35:01 +03:00
resource_openstack_lb_pool_v2_test.go provider/openstack: Adding Timeouts to Image v2 and LBaaS v2 Resources (#12865) 2017-03-19 17:14:20 +00:00
resource_openstack_lb_vip_v1.go provider/openstack: Adding Timeouts to LBaaS v1 Resources (#12867) 2017-03-19 17:18:03 +00:00
resource_openstack_lb_vip_v1_test.go provider/openstack: Adding Timeouts to LBaaS v1 Resources (#12867) 2017-03-19 17:18:03 +00:00
resource_openstack_networking_floatingip_v2.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_floatingip_v2_test.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_network_v2.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_network_v2_test.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_port_v2.go provider/openstack: Resolve issues with Port Fixed IPs (#13056) 2017-03-27 20:22:56 +03:00
resource_openstack_networking_port_v2_test.go provider/openstack: Resolve issues with Port Fixed IPs (#13056) 2017-03-27 20:22:56 +03:00
resource_openstack_networking_router_interface_v2.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_router_interface_v2_test.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_router_route_v2.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
resource_openstack_networking_router_route_v2_test.go provider/openstack: Network and Object Storage Acceptance Test Cleanup (#10967) 2016-12-31 18:09:56 +00:00
resource_openstack_networking_router_v2.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_router_v2_test.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_secgroup_rule_v2.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_secgroup_rule_v2_test.go provider/openstack: Fixing typo in secgroup rule timeout test 2017-03-25 01:34:42 +00:00
resource_openstack_networking_secgroup_v2.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_secgroup_v2_test.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_subnet_v2.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_networking_subnet_v2_test.go provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
resource_openstack_objectstorage_container_v1.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00
resource_openstack_objectstorage_container_v1_test.go provider/openstack: Network and Object Storage Acceptance Test Cleanup (#10967) 2016-12-31 18:09:56 +00:00
types.go provider/openstack: Don't log the catalog (#13075) 2017-03-26 12:35:40 +03:00
util.go provider/openstack: Detect Region for Importing Resources (#10509) 2016-12-04 14:24:07 +00:00