vpp2306

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EventDeliverTimeout defines maximum time to deliver event upstream.
	EventDeliverTimeout = time.Second

	// NotificationChanBufferSize defines size of notification channel buffer.
	NotificationChanBufferSize = 10
)

Functions

func NewBfdVppHandler

func NewBfdVppHandler(calls govppapi.Channel, ifIndexes ifaceidx.IfaceMetadataIndex, log logging.Logger) vppcalls.BfdVppAPI

NewBfdVppHandler creates new instance of BFD vppcalls handler

Types

type BfdVppHandler

type BfdVppHandler struct {
	// contains filtered or unexported fields
}

BfdVppHandler is accessor for BFD-related vppcalls methods

func (*BfdVppHandler) AddBfd

func (h *BfdVppHandler) AddBfd(confID uint32, bfdEntry *bfd.BFD) error

AddBfd creates BFD session attached to the defined interface with given configuration ID.

func (*BfdVppHandler) DeleteBfd

func (h *BfdVppHandler) DeleteBfd(bfdEntry *bfd.BFD) error

DeletebfdEntry removes existing BFD session.

func (*BfdVppHandler) DumpBfd

func (h *BfdVppHandler) DumpBfd() ([]*vppcalls.BfdDetails, error)

DumpBfd returns retrieved BFD data together with BFD state.

func (*BfdVppHandler) WatchBfdEvents

func (h *BfdVppHandler) WatchBfdEvents(ctx context.Context, eventChan chan<- *bfd.BFDEvent) error

WatchBfdEvents starts BFD event watcher.

Jump to

Keyboard shortcuts

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