ovs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VSwitch

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

VSwitch client.

func NewVSwitch

func NewVSwitch() (*VSwitch, error)

NewVSwitch initialises a new vSwitch client..

func (*VSwitch) BridgeAdd

func (o *VSwitch) BridgeAdd(bridgeName string, mayExist bool, hwaddr net.HardwareAddr, mtu uint32) error

BridgeAdd adds a new bridge.

func (*VSwitch) BridgeDelete

func (o *VSwitch) BridgeDelete(bridgeName string) error

BridgeDelete deletes a bridge.

func (*VSwitch) BridgeExists

func (o *VSwitch) BridgeExists(bridgeName string) (bool, error)

BridgeExists returns true if the bridge exists.

func (*VSwitch) BridgePortAdd

func (o *VSwitch) BridgePortAdd(bridgeName string, portName string, mayExist bool) error

BridgePortAdd adds a port to the bridge (if already attached does nothing).

func (*VSwitch) BridgePortDelete

func (o *VSwitch) BridgePortDelete(bridgeName string, portName string) error

BridgePortDelete deletes a port from the bridge (if already detached does nothing).

func (*VSwitch) BridgePortList

func (o *VSwitch) BridgePortList(bridgeName string) ([]string, error)

BridgePortList returns a list of ports that are connected to the bridge.

func (*VSwitch) BridgePortSet

func (o *VSwitch) BridgePortSet(portName string, options ...string) error

BridgePortSet sets port options.

func (*VSwitch) ChassisID

func (o *VSwitch) ChassisID() (string, error)

ChassisID returns the local chassis ID.

func (*VSwitch) HardwareOffloadingEnabled

func (o *VSwitch) HardwareOffloadingEnabled() bool

HardwareOffloadingEnabled returns true if hardware offloading is enabled.

func (*VSwitch) Installed

func (o *VSwitch) Installed() bool

Installed returns true if the OVS tools are installed.

func (*VSwitch) InterfaceAssociateOVNSwitchPort

func (o *VSwitch) InterfaceAssociateOVNSwitchPort(interfaceName string, ovnSwitchPortName string) error

InterfaceAssociateOVNSwitchPort removes any existing switch ports associated to the specified ovnSwitchPortName and then associates the specified interfaceName to the OVN switch port.

func (*VSwitch) InterfaceAssociatedOVNSwitchPort

func (o *VSwitch) InterfaceAssociatedOVNSwitchPort(interfaceName string) (string, error)

InterfaceAssociatedOVNSwitchPort returns the OVN switch port associated to the interface.

func (*VSwitch) OVNBridgeMappingAdd

func (o *VSwitch) OVNBridgeMappingAdd(bridgeName string, providerName string) error

OVNBridgeMappingAdd appends an OVN bridge mapping between a bridge and the logical provider name.

func (*VSwitch) OVNBridgeMappingDelete

func (o *VSwitch) OVNBridgeMappingDelete(bridgeName string, providerName string) error

OVNBridgeMappingDelete deletes an OVN bridge mapping between a bridge and the logical provider name.

func (*VSwitch) OVNBridgeMappings

func (o *VSwitch) OVNBridgeMappings(bridgeName string) ([]string, error)

OVNBridgeMappings gets the current OVN bridge mappings.

func (*VSwitch) OVNEncapIP

func (o *VSwitch) OVNEncapIP() (net.IP, error)

OVNEncapIP returns the enscapsulation IP used for OVN underlay tunnels.

func (*VSwitch) OVNSouthboundDBRemoteAddress

func (o *VSwitch) OVNSouthboundDBRemoteAddress() (string, error)

OVNSouthboundDBRemoteAddress gets the address of the southbound ovn database.

Directories

Path Synopsis
schema
ovs

Jump to

Keyboard shortcuts

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