ovs

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDatapathID

func GenerateDatapathID(switchName string) string

generateDatapathID generates a datapath ID from the switch name

Types

type Bridge

type Bridge struct {
	Controller string
	Name       string
	Protocol   string
	DatapathId string
	Ports      []Port
}

func FromName

func FromName(bridgeName string) Bridge

func NewBridge

func NewBridge(bridgeConf Bridge) (Bridge, error)

func (*Bridge) AddPort

func (bridge *Bridge) AddPort(portName string) error

func (*Bridge) CreateVxlan

func (bridge *Bridge) CreateVxlan(vxlan Vxlan) error

func (*Bridge) GetPortNumber

func (bridge *Bridge) GetPortNumber(portName string) (int64, error)

type Port

type Port struct {
	Name   string
	Status string
}

type Vxlan

type Vxlan struct {
	VxlanId  string
	LocalIp  string
	RemoteIp string
	UdpPort  string
}

Jump to

Keyboard shortcuts

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