vppcalls

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Versions = map[string]HandlerVersion{}

Functions

This section is empty.

Types

type HandlerVersion

type HandlerVersion struct {
	Msgs []govppapi.Message
	New  func(govppapi.Channel, ifaceidx.IfaceMetadataIndex, 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
	// DelSTNRule calls StnAddDelRule bin API with IsAdd=0
	DeleteSTNRule(stnRule *stn.Rule) error
}

StnVppAPI provides methods for managing STN rules

func CompatibleStnVppHandler

func CompatibleStnVppHandler(
	ch govppapi.Channel, idx 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