refactor cluster network related constants

This commit is contained in:
Pavel Sviderski
2024-11-28 19:57:26 +10:00
parent 3d5fe0a824
commit 035f44896d
5 changed files with 7 additions and 44 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ func (c *Cluster) AddMachine(ctx context.Context, req *pb.AddMachineRequest) (*p
if err != nil {
return nil, status.Errorf(codes.Internal, "create IPAM manager: %v", err)
}
subnet, err := ipam.AllocateSubnetLen(network.DefaultSubnetBits)
subnet, err := ipam.AllocateSubnetLen(DefaultSubnetBits)
if err != nil {
return nil, status.Errorf(codes.Internal, "allocate subnet for machine: %v", err)
}