vppcalls

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStnHandlerVersion

func AddStnHandlerVersion(version vpp.Version, msgs []govppapi.Message, h NewHandlerFunc)

Types

type NewHandlerFunc

type NewHandlerFunc func(ch govppapi.Channel, ifIdx ifaceidx.IfaceMetadataIndex, log logging.Logger) StnVppAPI

type StnDetails

type StnDetails struct {
	Rule *stn.Rule
	Meta *StnMeta
}

StnDetails contains a proto-modelled STN data and VPP specific metadata

type StnMeta

type StnMeta struct {
	IfIdx uint32
}

StnMeta contains an index of the interface defined by name in the STN rule

type StnVppAPI

type StnVppAPI interface {
	StnVppRead

	// AddSTNRule calls StnAddDelRule bin API with IsAdd=1
	AddSTNRule(stnRule *stn.Rule) error
	// DeleteSTNRule calls StnAddDelRule bin API with IsAdd=0
	DeleteSTNRule(stnRule *stn.Rule) error
}

StnVppAPI provides methods for managing STN rules

func CompatibleStnVppHandler

func CompatibleStnVppHandler(c vpp.Client, ifIdx ifaceidx.IfaceMetadataIndex, log logging.Logger) StnVppAPI

type StnVppRead

type StnVppRead interface {
	// DumpSTNRules returns a list of all STN rules configured on the VPP
	DumpSTNRules() ([]*StnDetails, error)
}

StnVppRead provides read methods for STN rules

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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