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
+4
View File
@@ -7,6 +7,10 @@ import (
"net/netip"
)
const DefaultSubnetBits = 24
var DefaultNetwork = netip.MustParsePrefix("10.210.0.0/16")
// IPAM is an in-memory IP address manager for allocating and releasing subnets for machines from a cluster network.
type IPAM struct {
network netip.Prefix