Skip to content

Commit 590d969

Browse files
committed
fix small nit
1 parent 2ad01f3 commit 590d969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloud/nodeipam/ipam/cloud_allocator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type cloudAllocator struct {
7575
const (
7676
providerIDPrefix = "linode://"
7777
ipv6BitLen = 128
78-
ipv6PrefixLen64 = 64
78+
ipv6PodCIDRMaskSize = 112
7979
)
8080

8181
var _ CIDRAllocator = &cloudAllocator{}
@@ -363,7 +363,7 @@ func getIPv6RangeFromLinodeInterface(iface linodego.LinodeInterface) string {
363363
// in the base range. Otherwise, returns (nil, false) to signal fallback.
364364
func getIPv6PodCIDR(ip net.IP, desiredMask int) (*net.IPNet, bool) {
365365
// Some validation checks
366-
if ip == nil || desiredMask != 112 {
366+
if ip == nil || desiredMask != ipv6PodCIDRMaskSize {
367367
return nil, false
368368
}
369369

0 commit comments

Comments
 (0)