vpp1908

package
v2.2.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 13, 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(p *punt.Exception) (string, error)

AddPuntException adds new punt exception entry

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(p *punt.Exception) error

DeletePuntException removes punt exception entry

func (*PuntVppHandler) DeletePuntRedirect

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

DeletePuntRedirect removes existing redirect entry

func (*PuntVppHandler) DeregisterPuntSocket

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

DeregisterPuntSocket removes existing punt to socket registration

func (*PuntVppHandler) DumpExceptions

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

DumpExceptions returns dump of registered punt exceptions.

func (*PuntVppHandler) DumpPuntReasons

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

DumpPuntReasons returns all known punt reasons from VPP

func (*PuntVppHandler) DumpPuntRedirect

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

DumpPuntRedirect dumps ip redirect punts

func (*PuntVppHandler) DumpRegisteredPuntSockets

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

DumpRegisteredPuntSockets returns punt to host via registered socket entries

func (*PuntVppHandler) RegisterPuntSocket

func (h *PuntVppHandler) RegisterPuntSocket(p *punt.ToHost) (pathName string, err error)

RegisterPuntSocket registers new punt to unix domain socket entry

Jump to

Keyboard shortcuts

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