ovsdb

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge added in v0.22.0

type Bridge struct {
	UUID string `ovsdb:"_uuid"`
}

Bridge defines an object in Bridge table

type OpenvSwitch added in v0.22.0

type OpenvSwitch struct {
	UUID string `ovsdb:"_uuid"`
}

OpenvSwitch defines an object in Open_vSwitch table

type OvsBridgeDriver

type OvsBridgeDriver struct {
	OvsDriver

	// Name of the OVS bridge
	OvsBridgeName string
}

OvsBridgeDriver OVS bridge driver state

func NewOvsBridgeDriver

func NewOvsBridgeDriver(bridgeName, socketFile string) (*OvsBridgeDriver, error)

NewOvsBridgeDriver Create a new OVS driver for a bridge with Unix socket

func (*OvsBridgeDriver) CreatePort

func (ovsd *OvsBridgeDriver) CreatePort(intfName, contNetnsPath, contIfaceName, ovnPortName string, vlanTag uint, trunks []uint, portType string) error

CreatePort Create an internal port in OVS

func (*OvsBridgeDriver) DeletePort

func (ovsd *OvsBridgeDriver) DeletePort(intfName string) error

DeletePort Delete a port from OVS

type OvsDriver added in v0.20.0

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

OvsDriver OVS driver state

func NewOvsDriver added in v0.20.0

func NewOvsDriver(ovsSocket string) (*OvsDriver, error)

NewOvsDriver Create a new OVS driver with Unix socket

func (*OvsDriver) BridgeList added in v0.20.0

func (ovsd *OvsDriver) BridgeList() ([]string, error)

BridgeList returns available ovs bridge names

func (*OvsDriver) Disconnected added in v0.20.0

func (ovsd *OvsDriver) Disconnected(ovsClient client.Client)

Disconnected yet to be implemented

func (*OvsDriver) Echo added in v0.20.0

func (ovsd *OvsDriver) Echo([]interface{})

Echo yet to be implemented

func (*OvsDriver) FindInterfacesWithError added in v0.20.0

func (ovsd *OvsDriver) FindInterfacesWithError() ([]string, error)

FindInterfacesWithError returns the interfaces which are in error state

func (*OvsDriver) GetOFPortOpState added in v0.20.0

func (ovsd *OvsDriver) GetOFPortOpState(portName string) (string, error)

GetOFPortOpState retrieves link state of the OF port

func (*OvsDriver) GetOFPortVlanState added in v0.26.0

func (ovsd *OvsDriver) GetOFPortVlanState(portName string) (string, *uint, []uint, error)

GetOFPortVlanState retrieves port vlan state of the OF port

func (*OvsDriver) GetOvsPortForContIface added in v0.20.0

func (ovsd *OvsDriver) GetOvsPortForContIface(contIface, contNetnsPath string) (string, bool, error)

GetOvsPortForContIface Return ovs port name for an container interface

func (*OvsDriver) IsBridgePresent added in v0.20.0

func (ovsd *OvsDriver) IsBridgePresent(bridgeName string) (bool, error)

IsBridgePresent Check if the bridge entry already exists

func (*OvsDriver) Locked added in v0.20.0

func (ovsd *OvsDriver) Locked([]interface{})

Locked yet to be implemented

func (*OvsDriver) Stolen added in v0.20.0

func (ovsd *OvsDriver) Stolen([]interface{})

Stolen yet to be implemented

func (*OvsDriver) Update added in v0.20.0

func (ovsd *OvsDriver) Update(context interface{}, tableUpdates ovsdb.TableUpdates)

Update yet to be implemented

Jump to

Keyboard shortcuts

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