paultyng/terraform-provider-unifi

Cannot create stastic route for ipv6

kastermester opened this issue · 0 comments

Hi, this provider looks to be exactly what I need. Great to see!

However, I'm trying to maintain static routes on an ipv6 network, but I'm getting an error message.

│ Error: expected next_hop to contain a valid IPv4 address, got: **snipped my ipv6 address for privacy**
│ 
│   with module.cluster_network.module.worker_ip6_subnet.unifi_static_route.routable_ip6,
│   on modules/ip6_subnet/main.tf line 21, in resource "unifi_static_route" "routable_ip6":
│   21:   next_hop = var.router_endpoint

Having no experience with terraform providers i'm not really sure exactly how to test a fix for this, but as far as I can see it is because of this line:

ValidateFunc: validation.IsIPv4Address,