vppmemif

package
v0.0.0-...-b15e717 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Binary simple-client is an example VPP management application that exercises the govpp API on real-world use-cases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMemifInterface

func CreateMemifInterface(ch *api.Channel, socketId uint32, role MemifRole, mode MemifMode) (swIfIndex uint32, err error)

Attempt to create a MemIf Interface. Input:

ch *api.Channel
socketId uint32
role MemifRole - RoleMaster or RoleSlave

func CreateMemifSocket

func CreateMemifSocket(ch *api.Channel, socketFile string) (socketId uint32, err error)

API to Create the MemIf Socketfile.

func DeleteMemifInterface

func DeleteMemifInterface(ch *api.Channel, swIfIndex uint32) (err error)

Attempt to delete a memif interface. If the deleted MemIf Interface is the last interface associated with a socketfile, this function will attempt to delete it.

func DeleteMemifSocket

func DeleteMemifSocket(ch *api.Channel, socketId uint32) (err error)

API to Delete the MemIf Socketfile.

func DumpMemif

func DumpMemif(ch *api.Channel)

Dump the set of existing memif interfaces to stdout.

func DumpMemifSocket

func DumpMemifSocket(ch *api.Channel)

Dump the set of existing memif socketfiles to stdout.

func MemifCompatibilityCheck

func MemifCompatibilityCheck(ch *api.Channel) (err error)

Check whether generated API messages are compatible with the version of VPP which the library is connected to.

Types

type MemifMode

type MemifMode uint8
const (
	ModeEthernet   MemifMode = 0
	ModeIP         MemifMode = 1
	ModePuntInject MemifMode = 2
)

type MemifRole

type MemifRole uint8
const (
	RoleMaster MemifRole = 0
	RoleSlave  MemifRole = 1
)

Jump to

Keyboard shortcuts

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