vpp1810

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPuntVppHandler

func NewPuntVppHandler(callsChan govppapi.Channel, ifIndexes ifaceidx.IfaceMetadataIndex, log logging.Logger) vppcalls.PuntVppAPI

NewPuntVppHandler creates new instance of punt vppcalls handler

Types

type PuntVppHandler

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

PuntVppHandler is accessor for punt-related vppcalls methods.

func (*PuntVppHandler) AddPunt

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

AddPunt configures new punt entry

func (*PuntVppHandler) AddPuntRedirect

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

AddPuntRedirect adds new redirect entry

func (*PuntVppHandler) DeletePunt

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

DeletePunt removes punt entry

func (*PuntVppHandler) DeletePuntRedirect

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

DeletePuntRedirect removes existing redirect entry

func (*PuntVppHandler) DeregisterPuntSocket

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

DeregisterPuntSocket removes existing punt to socket sogistration

func (*PuntVppHandler) DumpRegisteredPuntSockets

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

DumpPuntRegisteredSockets 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(puntCfg *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