networkcontroller

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_CONTROLLER_PORT = "50051"

DEFAULT_CONTROLLER_PORT set the default port as 50051

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkController

type NetworkController struct {
	ClientCtl pb.NetworkControlClient
	Context   context.Context
}

NetworkController is the structure for Network Controller

func New

func New(serverAddress string) (*NetworkController, error)

New will Set up a connection to the Network Controller server

func (*NetworkController) CreateOVSDPDKNetwork

func (nc *NetworkController) CreateOVSDPDKNetwork(bridgeName string, phyIfaces []entity.PhyInterface, vlanTags []int32) error

CreateOVSDPDKNetwork will Create OVS+DPDK Network by Network Controller

func (*NetworkController) CreateOVSNetwork

func (nc *NetworkController) CreateOVSNetwork(datapathType string, bridgeName string, phyIfaces []entity.PhyInterface, vlanTags []int32) error

CreateOVSNetwork will Create OVS Network by Network Controller

func (*NetworkController) DeleteOVSNetwork

func (nc *NetworkController) DeleteOVSNetwork(bridgeName string) error

DeleteOVSNetwork will delete OVS network controller

func (*NetworkController) DumpOVSPorts added in v0.2.1

func (nc *NetworkController) DumpOVSPorts(bridgeName string) ([]entity.OVSPortStat, error)

DumpOVSPorts will dump ports infromation of the target ovs

Jump to

Keyboard shortcuts

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