srv6

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: 18 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
	ContivConf       contivconf.API
	NodeSync         nodesync.API
	PodManager       podmanager.API
	IPAM             ipam.API
	IPNet            ipnet.API
	ConfigRetriever  controller.ConfigRetriever
	UpdateTxnFactory func(change string) (txn controller.UpdateOperations)
	ResyncTxnFactory func() (txn controller.ResyncOperations)
}

Deps lists dependencies of the Renderer.

type Renderer

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

Renderer implements rendering of services for SRv6 in VPP.

func (*Renderer) AddService

func (r *Renderer) AddService(service *renderer.ContivService) error

AddService installs VPP config for a newly added service.

func (*Renderer) AfterInit

func (r *Renderer) AfterInit() error

AfterInit is NOOP.

func (*Renderer) Close

func (r *Renderer) Close() error

Close deallocates resources held by the renderer.

func (*Renderer) DeleteService

func (r *Renderer) DeleteService(service *renderer.ContivService, otherExistingServices []*renderer.ContivService) error

DeleteService removes VPP config associated with a freshly un-deployed service.

func (*Renderer) Init

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

Init initializes the renderer. Set <snatOnly> to true if the renderer should only configure SNAT and leave services to another renderer.

func (*Renderer) Resync

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

Resync completely replaces the current VPP service configuration with the provided full state of K8s services.

func (*Renderer) UpdateLocalBackendIfs

func (r *Renderer) UpdateLocalBackendIfs(oldIfNames, newIfNames renderer.Interfaces) error

UpdateLocalBackendIfs gives an updated about a changed set of backend interfaces (VPP specific).

func (*Renderer) UpdateLocalFrontendIfs

func (r *Renderer) UpdateLocalFrontendIfs(oldIfNames, newIfNames renderer.Interfaces) error

UpdateLocalFrontendIfs gives an update about a changed set of Frontend interfaces (VPP specific).

func (*Renderer) UpdateNodePortServices

func (r *Renderer) UpdateNodePortServices(nodeIPs *renderer.IPAddresses, npServices []*renderer.ContivService) error

UpdateNodePortServices is called whenever the set of node IPs in the cluster changes.

func (*Renderer) UpdateService

func (r *Renderer) UpdateService(oldService, newService *renderer.ContivService, otherExistingServices []*renderer.ContivService) error

UpdateService updates VPP config for a changed service.

Jump to

Keyboard shortcuts

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