ipam

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvanceIP

func AdvanceIP(ip netaddr.IP, n uint32) (netaddr.IP, error)

func AllocateCabinetSubnet

func AllocateCabinetSubnet(networkName string, slsNetwork sls_common.NetworkExtraProperties, xname xnames.Cabinet, vlanOverride *int16) (sls_common.IPV4Subnet, error)

func AllocateIP

func AllocateIP(slsSubnet sls_common.IPV4Subnet, xname xnames.Xname, alias string) (sls_common.IPReservation, error)

func ExistingIPAddresses

func ExistingIPAddresses(slsSubnet sls_common.IPV4Subnet) (*netaddr.IPSet, error)

func ExpandSubnetStaticRange

func ExpandSubnetStaticRange(slsSubnet *sls_common.IPV4Subnet, count uint32) error

func FindNextAvailableIP

func FindNextAvailableIP(slsSubnet sls_common.IPV4Subnet) (netaddr.IP, error)

func FindNextAvailableSubnet

func FindNextAvailableSubnet(slsNetwork sls_common.NetworkExtraProperties) (netaddr.IPPrefix, error)

func FreeIPsInStaticRange

func FreeIPsInStaticRange(slsSubnet sls_common.IPV4Subnet) (uint32, error)

func SplitNetwork

func SplitNetwork(network netaddr.IPPrefix, subnetMaskOneBits uint8) ([]netaddr.IPPrefix, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL