From 43db50f0ed60d2ffdb2ac21fe0118f48627835d2 Mon Sep 17 00:00:00 2001 From: Ashley Dumaine Date: Mon, 17 Jun 2024 17:07:49 -0400 Subject: [PATCH] need to trim /128 on ipv6 addresses --- cloud/linode/instances.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloud/linode/instances.go b/cloud/linode/instances.go index 7ec0421e..f2f467c3 100644 --- a/cloud/linode/instances.go +++ b/cloud/linode/instances.go @@ -6,6 +6,7 @@ import ( "os" "slices" "strconv" + "strings" "sync" "time" @@ -55,7 +56,7 @@ func (nc *nodeCache) getInstanceAddresses(instance linodego.Instance, vpcips []s } if instance.IPv6 != "" { - ips = append(ips, nodeIP{ip: instance.IPv6, ipType: v1.NodeExternalIP}) + ips = append(ips, nodeIP{ip: strings.TrimSuffix(instance.IPv6, "/128"), ipType: v1.NodeExternalIP}) } return ips