Documentation
¶
Overview ¶
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 license.
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 license.
Index ¶
- Constants
- func DoMacpoolsOverlap(firstMacPool *MacPool, secondMacPool *MacPool) bool
- func GetDefaultMacPoolRange() (startMac string, endMac string)
- func ValidatePoolRange(startAddress net.HardwareAddr, endAddress net.HardwareAddr) error
- type Ipam
- func (c *Ipam) AllocateAddress(ipAddressStr string) error
- func (c *Ipam) AllocateNextAvailable(ip *net.IP) (bool, *net.IP, error)
- func (c *Ipam) Clear(ip *net.IP) error
- func (c *Ipam) ClearRange(startIp *net.IP, endIp *net.IP, force bool) error
- func (c *Ipam) Get(ip *net.IP) (bool, error)
- func (c *Ipam) GetNextAllocated(ip *net.IP) (bool, *net.IP, error)
- func (c *Ipam) GetNextAvailable(ip *net.IP) (bool, *net.IP, error)
- func (c *Ipam) GetPreviousAllocated(ip *net.IP) (bool, *net.IP, error)
- func (c *Ipam) GetPreviousAvailable(ip *net.IP) (bool, *net.IP, error)
- func (c *Ipam) GetRange(startIp *net.IP, endIp *net.IP) (bool, error)
- func (c *Ipam) IsEmpty() bool
- func (c *Ipam) IsFull() bool
- func (c *Ipam) ReleaseAddress(ipAddressStr string) error
- func (c *Ipam) Set(ip *net.IP) error
- func (c *Ipam) SetRange(startIp *net.IP, endIp *net.IP) error
- func (c *Ipam) ToJson() (string, error)
- type MacPool
- type MacRange
- type Macam
- func (c *Macam) AddressToMac(suffixAsAddress *bittree.BitTreeAddress) *net.HardwareAddr
- func (c *Macam) Clear(mac *net.HardwareAddr) error
- func (c *Macam) ClearRange(startIp *net.HardwareAddr, endIp *net.HardwareAddr, force bool) error
- func (c *Macam) Get(mac *net.HardwareAddr) (bool, error)
- func (c *Macam) GetNextAllocated(mac *net.HardwareAddr) (bool, *net.HardwareAddr, error)
- func (c *Macam) GetNextAvailable(mac *net.HardwareAddr) (bool, *net.HardwareAddr, error)
- func (c *Macam) GetPreviousAllocated(mac *net.HardwareAddr) (bool, *net.HardwareAddr, error)
- func (c *Macam) GetPreviousAvailable(mac *net.HardwareAddr) (bool, *net.HardwareAddr, error)
- func (c *Macam) GetRange(startIp *net.HardwareAddr, endIp *net.HardwareAddr) (bool, error)
- func (c *Macam) IsEmpty() bool
- func (c *Macam) IsFull() bool
- func (c *Macam) MacToAddress(mac *net.HardwareAddr) (*bittree.BitTreeAddress, error)
- func (c *Macam) Set(mac *net.HardwareAddr) error
- func (c *Macam) SetRange(startIp *net.HardwareAddr, endIp *net.HardwareAddr) error
- func (c *Macam) ToJson() (string, error)
Constants ¶
View Source
const ( MacLengthBytes = 6 MacLengthBits = 48 EcpMacPrefix = "02:EC" // This is the default prefix chosen for ECP )
Variables ¶
This section is empty.
Functions ¶
func DoMacpoolsOverlap ¶
func GetDefaultMacPoolRange ¶
func ValidatePoolRange ¶
func ValidatePoolRange(startAddress net.HardwareAddr, endAddress net.HardwareAddr) error
Types ¶
type Ipam ¶
type Ipam struct {
// contains filtered or unexported fields
}
func (*Ipam) AllocateAddress ¶
func (*Ipam) AllocateNextAvailable ¶
func (*Ipam) ClearRange ¶
func (*Ipam) GetPreviousAllocated ¶
func (*Ipam) GetPreviousAvailable ¶
func (*Ipam) ReleaseAddress ¶
type MacPool ¶
type MacPool struct {
// contains filtered or unexported fields
}
func (*MacPool) AllocateAddress ¶
func (*MacPool) AllocateNextAvailable ¶
func (*MacPool) ReleaseAddress ¶
func (*MacPool) ValidatePoolForMac ¶
type Macam ¶
type Macam struct {
// contains filtered or unexported fields
}
func (*Macam) AddressToMac ¶
func (c *Macam) AddressToMac(suffixAsAddress *bittree.BitTreeAddress) *net.HardwareAddr
func (*Macam) ClearRange ¶
func (c *Macam) ClearRange(startIp *net.HardwareAddr, endIp *net.HardwareAddr, force bool) error
func (*Macam) GetNextAllocated ¶
func (c *Macam) GetNextAllocated(mac *net.HardwareAddr) (bool, *net.HardwareAddr, error)
func (*Macam) GetNextAvailable ¶
func (c *Macam) GetNextAvailable(mac *net.HardwareAddr) (bool, *net.HardwareAddr, error)
func (*Macam) GetPreviousAllocated ¶
func (c *Macam) GetPreviousAllocated(mac *net.HardwareAddr) (bool, *net.HardwareAddr, error)
func (*Macam) GetPreviousAvailable ¶
func (c *Macam) GetPreviousAvailable(mac *net.HardwareAddr) (bool, *net.HardwareAddr, error)
func (*Macam) GetRange ¶
func (c *Macam) GetRange(startIp *net.HardwareAddr, endIp *net.HardwareAddr) (bool, error)
func (*Macam) MacToAddress ¶
func (c *Macam) MacToAddress(mac *net.HardwareAddr) (*bittree.BitTreeAddress, error)
Private functions
func (*Macam) SetRange ¶
func (c *Macam) SetRange(startIp *net.HardwareAddr, endIp *net.HardwareAddr) error
Click to show internal directories.
Click to hide internal directories.