vppcalls

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type L4VppAPI added in v1.8.1

type L4VppAPI interface {
	L4VppWrite
	L4VppRead
}

L4VppAPI provides methods for managing L4 layer configuration

type L4VppHandler added in v1.8.1

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

L4VppHandler is accessor for l4-related vppcalls methods

func NewL4VppHandler added in v1.8.1

func NewL4VppHandler(callsChan govppapi.Channel, log logging.Logger) *L4VppHandler

NewL4VppHandler creates new instance of L4 vppcalls handler

func (*L4VppHandler) AddAppNamespace added in v1.8.1

func (h *L4VppHandler) AddAppNamespace(secret uint64, swIfIdx, ip4FibID, ip6FibID uint32, id []byte) (appNsIdx uint32, err error)

AddAppNamespace adds app namespace.

func (*L4VppHandler) DisableL4Features added in v1.8.1

func (h *L4VppHandler) DisableL4Features() error

DisableL4Features disables L4 features.

func (*L4VppHandler) DumpL4Config added in v1.8.1

func (h *L4VppHandler) DumpL4Config() ([]*SessionDetails, error)

DumpL4Config implements L4VppRead.

func (*L4VppHandler) EnableL4Features added in v1.8.1

func (h *L4VppHandler) EnableL4Features() error

EnableL4Features enables L4 features.

type L4VppRead added in v1.8.1

type L4VppRead interface {
	// DumpL4Config returns L4 configuration
	DumpL4Config() ([]*SessionDetails, error)
}

L4VppRead provides read methods for L4

type L4VppWrite added in v1.8.1

type L4VppWrite interface {
	// EnableL4Features sets L4 feature flag on VPP to true
	EnableL4Features() error
	// DisableL4Features sets L4 feature flag on VPP to false
	DisableL4Features() error
	// AddAppNamespace calls respective VPP binary api to configure AppNamespace
	AddAppNamespace(secret uint64, swIfIdx, ip4FibID, ip6FibID uint32, id []byte) (appNsIdx uint32, err error)
}

L4VppWrite provides write methods for L4

type SessionDetails added in v1.8.1

type SessionDetails struct {
	TransportProto uint8
	LocalIP        string
	LocalPort      uint16
	RemoteIP       string
	RemotePort     uint16
	ActionIndex    uint32
	AppnsIndex     uint32
	Scope          uint8
	Tag            string
}

SessionDetails represents session details.

Jump to

Keyboard shortcuts

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