ovssubnet

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Maximum VXLAN Network Identifier as per RFC#7348
	MaxVNID = ((1 << 24) - 1)
)

Variables

This section is empty.

Functions

func GetNodeIP added in v1.0.6

func GetNodeIP(nodeName string) (string, error)

Types

type FlowController

type FlowController interface {
	Setup(localSubnetIP, globalSubnetIP, serviceSubnetIP string, mtu uint) error
	AddOFRules(nodeIP, localSubnetIP, localIP string) error
	DelOFRules(nodeIP, localIP string) error
	AddServiceOFRules(netID uint, IP string, protocol api.ServiceProtocol, port uint) error
	DelServiceOFRules(netID uint, IP string, protocol api.ServiceProtocol, port uint) error
}

type OvsController

type OvsController struct {
	VNIDMap map[string]uint

	AdminNamespaces []string
	// contains filtered or unexported fields
}

func NewController

func NewController(sub api.SubnetRegistry, hostname string, selfIP string, ready chan struct{}) (*OvsController, error)

func NewDefaultController

func NewDefaultController(sub api.SubnetRegistry, hostname string, selfIP string, ready chan struct{}) (*OvsController, error)

func NewKubeController

func NewKubeController(sub api.SubnetRegistry, hostname string, selfIP string, ready chan struct{}) (*OvsController, error)

func NewMultitenantController added in v1.0.5

func NewMultitenantController(sub api.SubnetRegistry, hostname string, selfIP string, ready chan struct{}) (*OvsController, error)

func (*OvsController) AddNode

func (oc *OvsController) AddNode(nodeName string, nodeIP string) error

func (*OvsController) DeleteNode

func (oc *OvsController) DeleteNode(nodeName string) error

func (*OvsController) ServeExistingNodes added in v1.0.5

func (oc *OvsController) ServeExistingNodes() error

func (*OvsController) StartMaster

func (oc *OvsController) StartMaster(sync bool, containerNetwork string, containerSubnetLength uint, serviceNetwork string) error

func (*OvsController) StartNode

func (oc *OvsController) StartNode(sync, skipsetup bool, mtu uint) error

func (*OvsController) Stop

func (oc *OvsController) Stop()

Directories

Path Synopsis
lbr

Jump to

Keyboard shortcuts

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