Documentation ¶
Overview ¶
Package ipamutils provides utililty functions for ipam management
Package ipamutils provides utililty 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 ElectInterfaceAddresses ¶
ElectInterfaceAddresses looks for an interface on the OS with the specified name and returns its IPv4 and IPv6 addresses in CIDR form. If the interface does not exist, it chooses from a predifined list the first IPv4 address which does not conflict with other interfaces on the system.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.