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 ¶
WatchBfdEvents starts BFD event watcher.
Click to show internal directories.
Click to hide internal directories.