Skip to content

Commit 778edae

Browse files
l-technicoreYashwantGohokar
authored andcommitted
Fixes needed to support Single Stack IPv6 Clusters
Replace hyphen with colon in SS IPv6 NodeNames to get the IPs Account for changes in vnic.PrimaryIP field being null for vnics belonging to SS IPv6 subnet
1 parent fba738f commit 778edae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/oci/client/compute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func (c *client) GetInstanceByNodeName(ctx context.Context, compartmentID, vcnID
280280

281281
if (vnic.PublicIp != nil && *vnic.PublicIp == nodeName) ||
282282
(vnic.PrivateIp != nil && *vnic.PrivateIp == nodeName) ||
283-
(len(vnic.Ipv6Addresses) > 0 && vnic.Ipv6Addresses[0] == nodeName) ||
283+
(len(vnic.Ipv6Addresses) > 0 && vnic.Ipv6Addresses[0] == strings.ReplaceAll(nodeName, "-", ":")) ||
284284
(vnic.HostnameLabel != nil && (*vnic.HostnameLabel != "" && strings.HasPrefix(nodeName, *vnic.HostnameLabel))) {
285285
instance, err := c.GetInstance(ctx, *attachment.InstanceId)
286286
if err != nil {

0 commit comments

Comments
 (0)