vppcalls

package
v1.9.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 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

type L4VppAPI interface {
	L4VppWrite
	L4VppRead
}

L4VppAPI provides methods for managing L4 layer configuration

type L4VppHandler

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

L4VppHandler is accessor for l4-related vppcalls methods

func NewL4VppHandler

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

NewL4VppHandler creates new instance of L4 vppcalls handler

func (*L4VppHandler) AddAppNamespace

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

AddAppNamespace adds app namespace.

func (*L4VppHandler) DisableL4Features

func (h *L4VppHandler) DisableL4Features() error

DisableL4Features disables L4 features.

func (*L4VppHandler) DumpL4Config

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

DumpL4Config implements L4VppRead.

func (*L4VppHandler) EnableL4Features

func (h *L4VppHandler) EnableL4Features() error

EnableL4Features enables L4 features.

type L4VppRead

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

L4VppRead provides read methods for L4

type L4VppWrite

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

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.

Source Files

  • api_vppcalls.go
  • app_namespace_vppcalls.go
  • dump_vppcalls.go
  • features_vppcalls.go

Jump to

Keyboard shortcuts

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