vpp1908

package
v2.5.0-alpha.0...-0e2148d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStnVppHandler

func NewStnVppHandler(
	callsChan govppapi.Channel, ifIndexes ifaceidx.IfaceMetadataIndex, log logging.Logger,
) vppcalls.StnVppAPI

NewStnVppHandler creates new instance of STN vppcalls handler

Types

type StnVppHandler

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

StnVppHandler is accessor for STN-related vppcalls methods

func (*StnVppHandler) AddSTNRule

func (h *StnVppHandler) AddSTNRule(stnRule *stn.Rule) error

AddSTNRule implements STN handler, adds a new STN rule to the VPP.

func (*StnVppHandler) DeleteSTNRule

func (h *StnVppHandler) DeleteSTNRule(stnRule *stn.Rule) error

DeleteSTNRule implements STN handler, removes the provided STN rule from the VPP.

func (*StnVppHandler) DumpSTNRules

func (h *StnVppHandler) DumpSTNRules() ([]*vppcalls.StnDetails, error)

DumpSTNRules implements STN handler, it returns all STN rules present on the VPP

Jump to

Keyboard shortcuts

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