You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In short, the format used to import an ip address will not work with ipv6 addresses.
$ terraform import 'ovh_ip_reverse.something["2607:5300::1"]''2607:5300::1/128:2607:5300::1'Error: calling /ip/2607/reverse/5300::1%2F128:2607:5300::1: Error 400: "[ipReverse] Given data (5300::1/128:2607:5300::1) is not valid for type ip"
# Fictive ip usedresource"ovh_ip_reverse""something" {
ip="2607:5300::1"ip_reverse="2607:5300::1"reverse="something.ovh."
}
Debug Output
$ terraform import 'ovh_ip_reverse.something["2607:5300::1"] '2607:5300::1/128:2607:5300::1'Error: calling /ip/2607/reverse/5300::1%2F128:2607:5300::1: Error 400: "[ipReverse] Given data (5300::1/128:2607:5300::1) is not valid for type ip"
The text was updated successfully, but these errors were encountered:
berbiche
changed the title
Cannot import ressource ovh_ip_reverse with an IPv6 address
Cannot import resource ovh_ip_reverse with an IPv6 address
Aug 29, 2021
I cant seem to create this resource with an ipv6 address. Reviewing the API docs, the docs indicate the IP should be ipv4. Not sure if this is a typo on the API, or an inconsistency with the terraform provider.
The error I get:
OVHcloud API error (status code 400): "Cannot check if [service name redacted]. resolves to [IPv6 redacted]" (X-OVH-Query-Id: US.ext-[req ID])
In short, the format used to import an ip address will not work with ipv6 addresses.
Faulty code (splitting on ":"):
terraform-provider-ovh/ovh/resource_ip_reverse.go
Lines 58 to 65 in 368954d
Terraform Version
Affected Resource(s)
ovh_ip_reverse
Terraform Configuration Files
Debug Output
Panic Output
N/A
Expected Behavior
Importing an IPv6 address should be possible
Actual Behavior
API error
Steps to Reproduce
terraform import 'ovh_ip_reverse.something["any ipv6 address"]' 'ipv6/128:ipv6'
Important Factoids
N/A
References
The text was updated successfully, but these errors were encountered: