ovsSwitch

package
v0.0.0-09-22-2015.01-5... Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const OVS_CTRLER_IP = "127.0.0.1"
View Source
const OVS_CTRLER_PORT = 6633
View Source
const USE_VETH_PAIR = true

Variables

This section is empty.

Functions

This section is empty.

Types

type OvsSwitch

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

OvsSwitch represents on OVS bridge instance

func NewOvsSwitch

func NewOvsSwitch(bridgeName, netType, localIP string) (*OvsSwitch, error)

NewOvsSwitch Creates a new OVS switch instance

func (*OvsSwitch) AddPeer

func (sw *OvsSwitch) AddPeer(vtepIP string) error

AddPeer creates a VTEP interface

func (*OvsSwitch) AddUplinkPort

func (sw *OvsSwitch) AddUplinkPort(intfName string) error

AddUplinkPort adds uplink port to the OVS

func (*OvsSwitch) CreateEndpoint

func (sw *OvsSwitch) CreateEndpoint(intfName, macAddr, ipAddr string, pktTag int) error

CreateEndpoint creates a port in ovs switch

func (*OvsSwitch) CreateNetwork

func (sw *OvsSwitch) CreateNetwork(pktTag uint16, extPktTag uint32) error

CreateNetwork creates a new network/vlan

func (*OvsSwitch) Delete

func (sw *OvsSwitch) Delete()

Delete performs cleanup prior to destruction of the OvsDriver

func (*OvsSwitch) DeleteEndpoint

func (sw *OvsSwitch) DeleteEndpoint(intfName string) error

DeleteEndpoint removes a port from OVS

func (*OvsSwitch) DeleteNetwork

func (sw *OvsSwitch) DeleteNetwork(pktTag uint16, extPktTag uint32) error

DeleteNetwork deletes a network/vlan

func (*OvsSwitch) RemovePeer

func (sw *OvsSwitch) RemovePeer(vtepIP string) error

RemovePeer deletes a VTEP

func (*OvsSwitch) UpdateEndpoint

func (sw *OvsSwitch) UpdateEndpoint(intfName, macAddr, ipAddr string, pktTag int) error

UpdateEndpoint updates an OVS port without creating it

Jump to

Keyboard shortcuts

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