Documentation
¶
Index ¶
- Constants
- type NetworkController
- func (nc *NetworkController) CreateOVSDPDKNetwork(bridgeName string, phyIfaces []entity.PhyInterface, vlanTags []int32) error
- func (nc *NetworkController) CreateOVSNetwork(datapathType string, bridgeName string, phyIfaces []entity.PhyInterface, ...) error
- func (nc *NetworkController) DeleteOVSNetwork(bridgeName string) error
- func (nc *NetworkController) DumpOVSPorts(bridgeName string) ([]entity.OVSPortStat, error)
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
Click to show internal directories.
Click to hide internal directories.