l2plugin

package
v2.0.1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

DefaultPlugin is a default instance of L2Plugin.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	infra.PluginDeps
	KVScheduler kvs.KVScheduler
	GoVppmux    govppmux.API
	IfPlugin    ifplugin.API
	StatusCheck statuscheck.PluginStatusWriter // optional
}

Deps lists dependencies of the L2 plugin.

type L2Plugin

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

L2Plugin configures VPP bridge domains, L2 FIBs and xConnects using GoVPP.

func NewPlugin

func NewPlugin(opts ...Option) *L2Plugin

NewPlugin creates a new Plugin with the provided Options.

func (*L2Plugin) AfterInit

func (p *L2Plugin) AfterInit() error

AfterInit registers plugin with StatusCheck.

func (*L2Plugin) GetBDIndex

func (p *L2Plugin) GetBDIndex() idxvpp.NameToIndex

GetBDIndex return bridge domain index.

func (*L2Plugin) Init

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

Init registers L2-related descriptors.

type Option

type Option func(*L2Plugin)

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
vpp1810
Package vppcalls contains wrappers over VPP binary APIs for bridge-domains, and L2 FIBs and XConnect pairs and helpers for dumping them.
Package vppcalls contains wrappers over VPP binary APIs for bridge-domains, and L2 FIBs and XConnect pairs and helpers for dumping them.
vpp1901
Package vppcalls contains wrappers over VPP binary APIs for bridge-domains, and L2 FIBs and XConnect pairs and helpers for dumping them.
Package vppcalls contains wrappers over VPP binary APIs for bridge-domains, and L2 FIBs and XConnect pairs and helpers for dumping them.

Jump to

Keyboard shortcuts

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