l2xconn

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	Log              logging.Logger
	Config           *config.Config
	ContivConf       contivconf.API
	IPAM             ipam.API
	IPNet            ipnet.API
	UpdateTxnFactory func(change string) (txn controller.UpdateOperations)
	ResyncTxnFactory func() (txn controller.ResyncOperations)
	Stats            statscollector.API /* used for exporting the statistics */
}

Deps lists dependencies of the Renderer.

type Renderer

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

Renderer implements L2 cross-connect -based rendering of SFC in Contiv-VPP.

func (*Renderer) AddChain

func (rndr *Renderer) AddChain(sfc *renderer.ContivSFC) error

AddChain is called for a newly added service function chain.

func (*Renderer) AfterInit

func (rndr *Renderer) AfterInit() error

AfterInit does nothing for this renderer.

func (*Renderer) Close

func (rndr *Renderer) Close() error

Close deallocates resources held by the renderer.

func (*Renderer) DeleteChain

func (rndr *Renderer) DeleteChain(sfc *renderer.ContivSFC) error

DeleteChain is called for every removed service function chain.

func (*Renderer) Init

func (rndr *Renderer) Init(snatOnly bool) error

Init initializes the renderer.

func (*Renderer) Resync

func (rndr *Renderer) Resync(resyncEv *renderer.ResyncEventData) error

Resync completely replaces the current configuration with the provided full state of service chains.

func (*Renderer) UpdateChain

func (rndr *Renderer) UpdateChain(oldSFC, newSFC *renderer.ContivSFC) error

UpdateChain informs renderer about a change in the configuration or in the state of a service function chain.

Jump to

Keyboard shortcuts

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