vppagent

package
v0.2.6-vl3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetVppAgent

func ResetVppAgent() error

ResetVppAgent resets the VPP instance settings to nil

func SendVppConfigToVppAgent

func SendVppConfigToVppAgent(vppconfig *vpp.ConfigData, update bool) error

SendVppConfigToVppAgent send the update to the VPP-Agent

Types

type UniversalCNFVPPAgentBackend

type UniversalCNFVPPAgentBackend struct {
	EndpointIfID map[string]int
}

UniversalCNFVPPAgentBackend is the VPP CNF backend struct

func (*UniversalCNFVPPAgentBackend) GetEndpointIfID

func (b *UniversalCNFVPPAgentBackend) GetEndpointIfID(serviceName string) string

GetEndpointIfID generates a new interface ID from the service name

func (*UniversalCNFVPPAgentBackend) NewDPConfig

func (b *UniversalCNFVPPAgentBackend) NewDPConfig() *vpp.ConfigData

NewDPConfig returns a plain DPConfig struct

func (*UniversalCNFVPPAgentBackend) NewUniversalCNFBackend

func (b *UniversalCNFVPPAgentBackend) NewUniversalCNFBackend() error

NewUniversalCNFBackend initializes the VPP CNF backend

func (*UniversalCNFVPPAgentBackend) ProcessClient

func (b *UniversalCNFVPPAgentBackend) ProcessClient(
	dpconfig interface{}, ifName string, conn *connection.Connection) error

ProcessClient runs the client code for VPP CNF

func (*UniversalCNFVPPAgentBackend) ProcessDPConfig

func (b *UniversalCNFVPPAgentBackend) ProcessDPConfig(dpconfig interface{}, update bool) error

ProcessDPConfig applies the VPP CNF configuration to VPP

func (*UniversalCNFVPPAgentBackend) ProcessEndpoint

func (b *UniversalCNFVPPAgentBackend) ProcessEndpoint(
	dpconfig interface{}, serviceName, ifName string, conn *connection.Connection) error

ProcessEndpoint runs the endpoint code for VPP CNF

Jump to

Keyboard shortcuts

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