Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resources from nutanix terraform provider #105

Merged
merged 1 commit into from
Feb 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 11 additions & 10 deletions resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down