Documentation
¶
Overview ¶
Package ipamutils provides utility functions for ipam management
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PredefinedBroadNetworks contains a list of 31 IPv4 private networks with host size 16 and 12 // (172.17-31.x.x/16, 192.168.x.x/20) which do not overlap with the networks in `PredefinedGranularNetworks` PredefinedBroadNetworks []*net.IPNet // PredefinedGranularNetworks contains a list of 64K IPv4 private networks with host size 8 // (10.x.x.x/24) which do not overlap with the networks in `PredefinedBroadNetworks` PredefinedGranularNetworks []*net.IPNet )
Functions ¶
func InitNetworks ¶
func InitNetworks(defaultAddressPool []*NetworkToSplit)
InitNetworks initializes the broad network pool and the granular network pool
Types ¶
type NetworkToSplit ¶
NetworkToSplit represent a network that has to be split in chunks with mask length Size. Each subnet in the set is derived from the Base pool. Base is to be passed in CIDR format. Example: a Base "10.10.0.0/16 with Size 24 will define the set of 256 10.10.[0-255].0/24 address pools
Click to show internal directories.
Click to hide internal directories.