ovs

package
v0.0.0-...-088e8fb Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger
)

Functions

func InitDefaultLogging

func InitDefaultLogging(debug bool)

func InitLogging

func InitLogging(debugHandle io.Writer,
	infoHandle io.Writer,
	warningHandle io.Writer,
	errorHandle io.Writer)

Types

type Driver

type Driver struct {
	dknet.Driver

	OvsdbNotifier
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver() (*Driver, error)

func (*Driver) CreateEndpoint

func (d *Driver) CreateEndpoint(r *dknet.CreateEndpointRequest) error

func (*Driver) CreateNetwork

func (d *Driver) CreateNetwork(r *dknet.CreateNetworkRequest) error

func (*Driver) DeleteEndpoint

func (d *Driver) DeleteEndpoint(r *dknet.DeleteEndpointRequest) error

func (*Driver) DeleteNetwork

func (d *Driver) DeleteNetwork(r *dknet.DeleteNetworkRequest) error

func (*Driver) EndpointInfo

func (d *Driver) EndpointInfo(r *dknet.InfoRequest) (*dknet.InfoResponse, error)

func (*Driver) Join

func (d *Driver) Join(r *dknet.JoinRequest) (*dknet.JoinResponse, error)

func (*Driver) Leave

func (d *Driver) Leave(r *dknet.LeaveRequest) error

type NetworkState

type NetworkState struct {
	BridgeName        string
	MTU               int
	Mode              string
	Gateway           string
	GatewayMask       string
	FlatBindInterface string
}

NetworkState is filled in at network creation time it contains state that we wish to keep for each network

type OvsdbNotifier

type OvsdbNotifier struct {
}

func (OvsdbNotifier) Disconnected

func (o OvsdbNotifier) Disconnected(ovsClient *libovsdb.OvsdbClient)

func (OvsdbNotifier) Echo

func (o OvsdbNotifier) Echo([]interface{})

func (OvsdbNotifier) Locked

func (o OvsdbNotifier) Locked([]interface{})

func (OvsdbNotifier) Stolen

func (o OvsdbNotifier) Stolen([]interface{})

func (OvsdbNotifier) Update

func (o OvsdbNotifier) Update(context interface{}, tableUpdates libovsdb.TableUpdates)

Jump to

Keyboard shortcuts

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