openvswitch

package
v0.0.0-...-b84de06 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OVS

type OVS struct{}

OVS command wrapper.

func NewOVS

func NewOVS() *OVS

NewOVS initialises new OVS wrapper.

func (*OVS) BridgeAdd

func (o *OVS) BridgeAdd(bridgeName string, mayExist bool) error

BridgeAdd adds an OVS bridge.

func (*OVS) BridgeDelete

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

BridgeDelete deletes an OVS bridge.

func (*OVS) BridgeExists

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

BridgeExists returns true if OVS bridge exists.

func (*OVS) BridgePortAdd

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

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

func (*OVS) BridgePortDelete

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

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

func (*OVS) BridgePortSet

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

BridgePortSet sets port options.

func (*OVS) Installed

func (o *OVS) Installed() bool

Installed returns true if OVS tools are installed.

Jump to

Keyboard shortcuts

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