vppcalls

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package vppcalls contains wrappers over VPP binary APIs for bridge-domains, and L2 FIBs and XConnect pairs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMsgCompatibilityForBridgeDomains

func CheckMsgCompatibilityForBridgeDomains(log logging.Logger, vppChan *govppapi.Channel) error

CheckMsgCompatibilityForBridgeDomains checks if CRSs are compatible with VPP in runtime.

func CheckMsgCompatibilityForL2FIB

func CheckMsgCompatibilityForL2FIB(log logging.Logger, vppChan *govppapi.Channel) error

CheckMsgCompatibilityForL2FIB checks if CRSs are compatible with VPP in runtime.

func CheckMsgCompatibilityForL2XConnect

func CheckMsgCompatibilityForL2XConnect(log logging.Logger, vppChan *govppapi.Channel) error

CheckMsgCompatibilityForL2XConnect checks if CRSs are compatible with VPP in runtime.

func VppAddArpTerminationTableEntry

func VppAddArpTerminationTableEntry(bdID uint32, mac string, ip string,
	log logging.Logger, vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) error

VppAddArpTerminationTableEntry creates ARP termination entry for bridge domain.

func VppAddBridgeDomain

func VppAddBridgeDomain(bdIdx uint32, bridgeDomain *l2.BridgeDomains_BridgeDomain, log logging.Logger,
	vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) error

VppAddBridgeDomain adds new bridge domain.

func VppDeleteBridgeDomain

func VppDeleteBridgeDomain(bdIdx uint32, log logging.Logger, vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) error

VppDeleteBridgeDomain removes existing bridge domain.

func VppRemoveArpTerminationTableEntry

func VppRemoveArpTerminationTableEntry(bdID uint32, mac string, ip string, log logging.Logger,
	vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) error

VppRemoveArpTerminationTableEntry removes ARP termination entry from bridge domain

func VppSetAllInterfacesToBridgeDomain

func VppSetAllInterfacesToBridgeDomain(bridgeDomain *l2.BridgeDomains_BridgeDomain, bridgeDomainIndex uint32,
	swIfIndexes ifaceidx.SwIfIndex, log logging.Logger, vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) ([]string, []string, string)

VppSetAllInterfacesToBridgeDomain looks up all interfaces which belong to bridge domain and bvi interface.

func VppSetInterfaceToBridgeDomain

func VppSetInterfaceToBridgeDomain(bridgeDomainIndex uint32, interfaceIndex uint32, bvi bool, log logging.Logger,
	vppChan *govppapi.Channel, timeLog measure.StopWatchEntry)

VppSetInterfaceToBridgeDomain sets provided interface to bridge domain.

func VppSetL2XConnect

func VppSetL2XConnect(receiveIfaceIndex uint32, transmitIfaceIndex uint32, log logging.Logger, vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) error

VppSetL2XConnect creates xConnect between two existing interfaces.

func VppUnsetAllInterfacesFromBridgeDomain

func VppUnsetAllInterfacesFromBridgeDomain(bridgeDomain *l2.BridgeDomains_BridgeDomain, bridgeDomainIndex uint32,
	swIfIndexes ifaceidx.SwIfIndex, log logging.Logger, vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) []string

VppUnsetAllInterfacesFromBridgeDomain removes all interfaces from bridge domain (set them as L3).

func VppUnsetL2XConnect

func VppUnsetL2XConnect(receiveIfaceIndex uint32, transmitIfaceIndex uint32, log logging.Logger, vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) error

VppUnsetL2XConnect removes xConnect between two interfaces.

func VppUpdateBridgeDomain

func VppUpdateBridgeDomain(oldBdIdx uint32, newBdIdx uint32, newBridgeDomain *l2.BridgeDomains_BridgeDomain, log logging.Logger,
	vppChan *govppapi.Channel, stopwatch *measure.Stopwatch) error

VppUpdateBridgeDomain updates bridge domain parameters.

Types

type FibLogicalReq

type FibLogicalReq struct {
	MAC     string
	BDIdx   uint32
	SwIfIdx uint32
	BVI     bool
	Static  bool
	Delete  bool
	// contains filtered or unexported fields
}

FibLogicalReq groups multiple fields so that all of them do not enumerate in one function call (request, reply/callback).

type L2FibVppCalls

type L2FibVppCalls struct {
	// contains filtered or unexported fields
}

L2FibVppCalls aggregates vpp calls related to l2 fib.

func NewL2FibVppCalls

func NewL2FibVppCalls(vppChan *govppapi.Channel, stopwatch *measure.Stopwatch) *L2FibVppCalls

NewL2FibVppCalls is a constructor.

func (*L2FibVppCalls) Add

func (fib *L2FibVppCalls) Add(mac string, bdID uint32, ifIdx uint32, bvi bool, static bool, callback func(error), log logging.Logger) error

Add creates L2 FIB table entry.

func (*L2FibVppCalls) Delete

func (fib *L2FibVppCalls) Delete(mac string, bdID uint32, ifIdx uint32, callback func(error), log logging.Logger) error

Delete removes existing L2 FIB table entry.

func (*L2FibVppCalls) WatchFIBReplies

func (fib *L2FibVppCalls) WatchFIBReplies(log logging.Logger)

WatchFIBReplies is meant to be used in go routine.

Jump to

Keyboard shortcuts

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