l3plugin

package
v3.4.0-beta Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

DefaultPlugin is a default instance of IfPlugin.

Functions

This section is empty.

Types

type API

type API interface {
	// GetVRFIndex gives read-only access to map with metadata of all configured VPP VRFs.
	GetVRFIndex() vrfidx.VRFMetadataIndex
}

API defines methods exposed by VPP-L3Plugin.

type Deps

type Deps struct {
	infra.PluginDeps
	KVScheduler kvs.KVScheduler
	VPP         govppmux.API
	IfPlugin    ifplugin.API
	AddrAlloc   netalloc.AddressAllocator
	StatusCheck statuscheck.PluginStatusWriter // optional
}

type L3Plugin

type L3Plugin struct {
	Deps
	// contains filtered or unexported fields
}

L3Plugin configures Linux routes and ARP entries using Netlink API.

func NewPlugin

func NewPlugin(opts ...Option) *L3Plugin

NewPlugin creates a new Plugin with the provides Options

func (*L3Plugin) AfterInit

func (p *L3Plugin) AfterInit() error

AfterInit registers plugin with StatusCheck.

func (*L3Plugin) GetVRFIndex

func (p *L3Plugin) GetVRFIndex() vrfidx.VRFMetadataIndex

GetVRFIndex gives read-only access to map with metadata of all configured VPP VRFs.

func (*L3Plugin) Init

func (p *L3Plugin) Init() (err error)

Init initializes and registers descriptors for Linux ARPs and Routes.

type Option

type Option func(*L3Plugin)

Option is a function that can be used in NewPlugin to customize Plugin.

func UseDeps

func UseDeps(f func(*Deps)) Option

UseDeps returns Option that can inject custom dependencies.

Directories

Path Synopsis
vpp2101
Package vppcalls contains wrappers over VPP binary APIs for ARPs, proxy ARPs, L3 FIBs and helpers for dumping them.
Package vppcalls contains wrappers over VPP binary APIs for ARPs, proxy ARPs, L3 FIBs and helpers for dumping them.
vpp2106
Package vpp2106 contains wrappers over VPP binary APIs for ARPs, proxy ARPs, L3 FIBs and helpers for dumping them.
Package vpp2106 contains wrappers over VPP binary APIs for ARPs, proxy ARPs, L3 FIBs and helpers for dumping them.
vpp2202
Package vpp2202 contains wrappers over VPP binary APIs for ARPs, proxy ARPs, L3 FIBs and helpers for dumping them.
Package vpp2202 contains wrappers over VPP binary APIs for ARPs, proxy ARPs, L3 FIBs and helpers for dumping them.
Package vrfidx implements name-to-index mapping registry and cache for VPP VRFs.
Package vrfidx implements name-to-index mapping registry and cache for VPP VRFs.

Jump to

Keyboard shortcuts

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