ovs

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// rule versioning; increment each time flow rules change
	VERSION        = 1
	VERSION_TABLE  = "table=253"
	VERSION_ACTION = "actions=note:"

	BR       = "br0"
	LBR      = "lbr0"
	TUN      = "tun0"
	VLINUXBR = "vlinuxbr"
	VOVSBR   = "vovsbr"
	VXLAN    = "vxlan0"
)

Variables

This section is empty.

Functions

func CreatePlugin

func CreatePlugin(registry *osdn.Registry, multitenant bool, hostname string, selfIP string) (api.OsdnPlugin, api.FilteringEndpointsConfigHandler, error)

func MultiTenantPluginName

func MultiTenantPluginName() string

func SingleTenantPluginName

func SingleTenantPluginName() string

Types

type FlowController

type FlowController struct {
	// contains filtered or unexported fields
}

func NewFlowController

func NewFlowController(multitenant bool) *FlowController

func (*FlowController) AddOFRules

func (c *FlowController) AddOFRules(nodeIP, nodeSubnetCIDR, localIP string) error

func (*FlowController) AddServiceOFRules

func (c *FlowController) AddServiceOFRules(netID uint, IP string, protocol api.ServiceProtocol, port uint) error

func (*FlowController) DelOFRules

func (c *FlowController) DelOFRules(nodeIP, localIP string) error

func (*FlowController) DelServiceOFRules

func (c *FlowController) DelServiceOFRules(netID uint, IP string, protocol api.ServiceProtocol, port uint) error

func (*FlowController) GetName

func (c *FlowController) GetName() string

func (*FlowController) Setup

func (c *FlowController) Setup(localSubnetCIDR, clusterNetworkCIDR, servicesNetworkCIDR string, mtu uint) (bool, error)

Jump to

Keyboard shortcuts

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