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
Click to show internal directories.
Click to hide internal directories.