Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultDriver defines the name of the driver to be used by // default if a network without any driver name specified is // created. DefaultDriver = "overlay" )
Variables ¶
This section is empty.
Functions ¶
func IsBuiltInDriver ¶
IsBuiltInDriver returns whether the passed driver is an internal network driver
func New ¶
func New(pg plugingetter.PluginGetter, netConfig *NetworkConfig) (networkallocator.NetworkAllocator, error)
New returns a new NetworkAllocator handle
func PredefinedNetworks ¶
func PredefinedNetworks() []networkallocator.PredefinedNetworkData
PredefinedNetworks returns the list of predefined network structures
Types ¶
type NetworkConfig ¶
type NetworkConfig struct {
// DefaultAddrPool specifies default subnet pool for global scope networks
DefaultAddrPool []string
// SubnetSize specifies the subnet size of the networks created from
// the default subnet pool
SubnetSize uint32
// VXLANUDPPort specifies the UDP port number for VXLAN traffic
VXLANUDPPort uint32
}
NetworkConfig is used to store network related cluster config in the Manager.
Click to show internal directories.
Click to hide internal directories.