srv6

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 19 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
	ConfigRetriever  controller.ConfigRetriever
	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
}

Renderer implements SRv6 - SRv6 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() 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.

type ServiceFunctionSelectable

type ServiceFunctionSelectable interface {
}

ServiceFunctionSelectable is holder for one k8s resource that can be used as ServiceFunction in SFC chain (i.e. one pod or one external interface)

Jump to

Keyboard shortcuts

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