vpp1904

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PuntSocketHeaderVersion = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type PuntVppHandler

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

PuntVppHandler is accessor for punt-related vppcalls methods.

func NewPuntVppHandler

func NewPuntVppHandler(
	callsChan govppapi.Channel, ifIndexes ifaceidx.IfaceMetadataIndex, log logging.Logger,
) *PuntVppHandler

NewPuntVppHandler creates new instance of punt vppcalls handler

func (*PuntVppHandler) AddPunt

func (h *PuntVppHandler) AddPunt(p *punt.ToHost) error

AddPunt configures new punt entry

func (*PuntVppHandler) AddPuntException

func (h *PuntVppHandler) AddPuntException(punt *punt.Exception) (string, error)

func (*PuntVppHandler) AddPuntRedirect

func (h *PuntVppHandler) AddPuntRedirect(puntCfg *punt.IPRedirect) error

AddPuntRedirect adds new redirect entry

func (*PuntVppHandler) DeletePunt

func (h *PuntVppHandler) DeletePunt(p *punt.ToHost) error

DeletePunt removes punt entry

func (*PuntVppHandler) DeletePuntException

func (h *PuntVppHandler) DeletePuntException(punt *punt.Exception) error

func (*PuntVppHandler) DeletePuntRedirect

func (h *PuntVppHandler) DeletePuntRedirect(puntCfg *punt.IPRedirect) error

DeletePuntRedirect removes existing redirect entry

func (*PuntVppHandler) DeregisterPuntSocket

func (h *PuntVppHandler) DeregisterPuntSocket(toHost *punt.ToHost) error

DeregisterPuntSocket removes existing punt to socket sogistration

func (*PuntVppHandler) DumpExceptions

func (h *PuntVppHandler) DumpExceptions() ([]*vppcalls.ExceptionDetails, error)

func (*PuntVppHandler) DumpPuntReasons

func (h *PuntVppHandler) DumpPuntReasons() ([]*vppcalls.ReasonDetails, error)

func (*PuntVppHandler) DumpPuntRedirect

func (h *PuntVppHandler) DumpPuntRedirect() (punts []*vpp_punt.IPRedirect, err error)

func (*PuntVppHandler) DumpRegisteredPuntSockets

func (h *PuntVppHandler) DumpRegisteredPuntSockets() (punts []*vppcalls.PuntDetails, err error)

DumpRegisteredPuntSockets returns punt to host via registered socket entries TODO since the binary API is not available, all data are read from local cache for now

func (*PuntVppHandler) RegisterPuntSocket

func (h *PuntVppHandler) RegisterPuntSocket(toHost *punt.ToHost) (string, error)

RegisterPuntSocket registers new punt to socket

Jump to

Keyboard shortcuts

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