From dd5c915c197b87432c993b2e03756cf77ac21566 Mon Sep 17 00:00:00 2001 From: Falk Stern Date: Thu, 14 Feb 2019 16:53:36 +0100 Subject: [PATCH] Add Nutanix provider (#105) --- README.md | 1 + resource.go | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1279aa0..b4a1350 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ The following providers are supported: * Scaleway * SoftLayer * VMware +* Nutanix It's very simple to add support for new providers. See pull requests with the [provider][pv] label for examples. diff --git a/resource.go b/resource.go index 4f1890a..c98c7fe 100644 --- a/resource.go +++ b/resource.go @@ -16,16 +16,16 @@ var nameParser *regexp.Regexp func init() { keyNames = []string{ - "ipv4_address", // DO and SoftLayer - "public_ip", // AWS - "public_ipv6", // Scaleway - "private_ip", // AWS - "ipaddress", // CS - "ip_address", // VMware, Docker - "network_interface.0.ipv4_address", // VMware - "default_ip_address", // provider.vsphere v1.1.1 - "access_ip_v4", // OpenStack - "floating_ip", // OpenStack + "ipv4_address", // DO and SoftLayer + "public_ip", // AWS + "public_ipv6", // Scaleway + "private_ip", // AWS + "ipaddress", // CS + "ip_address", // VMware, Docker + "network_interface.0.ipv4_address", // VMware + "default_ip_address", // provider.vsphere v1.1.1 + "access_ip_v4", // OpenStack + "floating_ip", // OpenStack "network_interface.0.access_config.0.nat_ip", // GCE "network_interface.0.access_config.0.assigned_nat_ip", // GCE "network_interface.0.address", // GCE @@ -35,6 +35,7 @@ func init() { "network_interface.0.addresses.0", // Libvirt "network.0.address", // Packet "primary_ip", // Profitbricks + "nic_list.0.ip_endpoint_list.0.ip", // Nutanix } // type.name.0