vpp2001

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeDomainVppHandler

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

BridgeDomainVppHandler is accessor for bridge domain-related vppcalls methods.

func (*BridgeDomainVppHandler) AddArpTerminationTableEntry

func (h *BridgeDomainVppHandler) AddArpTerminationTableEntry(bdID uint32, mac string, ip string) error

AddArpTerminationTableEntry creates ARP termination entry for bridge domain.

func (*BridgeDomainVppHandler) AddBridgeDomain

func (h *BridgeDomainVppHandler) AddBridgeDomain(bdIdx uint32, bd *l2.BridgeDomain) error

AddBridgeDomain adds new bridge domain.

func (*BridgeDomainVppHandler) AddInterfaceToBridgeDomain

func (h *BridgeDomainVppHandler) AddInterfaceToBridgeDomain(bdIdx uint32, ifaceCfg *l2.BridgeDomain_Interface) error

AddInterfaceToBridgeDomain puts interface into bridge domain.

func (*BridgeDomainVppHandler) DeleteBridgeDomain

func (h *BridgeDomainVppHandler) DeleteBridgeDomain(bdIdx uint32) error

DeleteBridgeDomain removes existing bridge domain.

func (*BridgeDomainVppHandler) DeleteInterfaceFromBridgeDomain

func (h *BridgeDomainVppHandler) DeleteInterfaceFromBridgeDomain(bdIdx uint32, ifaceCfg *l2.BridgeDomain_Interface) error

DeleteInterfaceFromBridgeDomain removes interface from bridge domain.

func (*BridgeDomainVppHandler) DumpBridgeDomains

func (h *BridgeDomainVppHandler) DumpBridgeDomains() ([]*vppcalls.BridgeDomainDetails, error)

DumpBridgeDomains implements bridge domain handler.

func (*BridgeDomainVppHandler) RemoveArpTerminationTableEntry

func (h *BridgeDomainVppHandler) RemoveArpTerminationTableEntry(bdID uint32, mac string, ip string) error

RemoveArpTerminationTableEntry removes ARP termination entry from bridge domain.

type FIBVppHandler

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

FIBVppHandler is accessor for FIB-related vppcalls methods.

func (*FIBVppHandler) AddL2FIB

func (h *FIBVppHandler) AddL2FIB(fib *l2.FIBEntry) error

AddL2FIB creates L2 FIB table entry.

func (*FIBVppHandler) DeleteL2FIB

func (h *FIBVppHandler) DeleteL2FIB(fib *l2.FIBEntry) error

DeleteL2FIB removes existing L2 FIB table entry.

func (*FIBVppHandler) DumpL2FIBs

func (h *FIBVppHandler) DumpL2FIBs() (map[string]*vppcalls.FibTableDetails, error)

DumpL2FIBs dumps VPP L2 FIB table entries into the northbound API data structure map indexed by destination MAC address.

type XConnectVppHandler

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

XConnectVppHandler is accessor for cross-connect-related vppcalls methods.

func (*XConnectVppHandler) AddL2XConnect

func (h *XConnectVppHandler) AddL2XConnect(rxIface, txIface string) error

AddL2XConnect creates xConnect between two existing interfaces.

func (*XConnectVppHandler) DeleteL2XConnect

func (h *XConnectVppHandler) DeleteL2XConnect(rxIface, txIface string) error

DeleteL2XConnect removes xConnect between two interfaces.

func (*XConnectVppHandler) DumpXConnectPairs

func (h *XConnectVppHandler) DumpXConnectPairs() (map[uint32]*vppcalls.XConnectDetails, error)

DumpXConnectPairs implements xconnect handler.

Jump to

Keyboard shortcuts

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