vppcalls

package
v0.0.0-...-ae01f8c Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBfdHandlerVersion

func AddBfdHandlerVersion(version vpp.Version, msgs []govppapi.Message,
	h func(ch govppapi.Channel, ifIdx ifaceidx.IfaceMetadataIndex, log logging.Logger) BfdVppAPI,
)

Types

type BfdDetails

type BfdDetails struct {
	Config          *bfd.BFD
	State           bfd.BFDEvent_SessionState
	ConfKey         uint32
	BfdKey          uint8
	IsAuthenticated bool
}

BfdDetails represents retrieved BFD data

type BfdVppAPI

type BfdVppAPI interface {
	// AddBfd creates BFD session attached to the defined interface
	// with given configuration ID.
	AddBfd(confID uint32, bfd *bfd.BFD) error

	// DeleteBfd removes existing BFD session.
	DeleteBfd(bfd *bfd.BFD) error

	// DumpBfd returns retrieved BFD data together with BFD state.
	DumpBfd() ([]*BfdDetails, error)

	// WatchBfdEvents starts BFD event watcher.
	WatchBfdEvents(ctx context.Context, eventChan chan<- *bfd.BFDEvent) error
}

BfdVppAPI defines methods to add, delete and watch BFD configuration

func CompatibleBfdVppHandler

func CompatibleBfdVppHandler(c vpp.Client, ifIdx ifaceidx.IfaceMetadataIndex, log logging.Logger) BfdVppAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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