Documentation ¶
Overview ¶
Package vppdump provides helpers for dumping all bridge-domains, L2 FIBs and XConnect pairs configured in VPP.
Index ¶
- func DumpBridgeDomainIDs(vppChannel vppcalls.VPPChannel, stopwatch *measure.Stopwatch) ([]uint32, error)
- func DumpBridgeDomains(vppChan vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[uint32]*BridgeDomain, error)
- func DumpFIBTableEntries(vppChan vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[string]*FIBTableEntry, error)
- func DumpXConnectPairs(vppChan vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[uint32]*XConnectPairs, error)
- type BridgeDomain
- type BridgeDomainInterface
- type FIBTableEntry
- type XConnectPairs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpBridgeDomainIDs ¶
func DumpBridgeDomainIDs(vppChannel vppcalls.VPPChannel, stopwatch *measure.Stopwatch) ([]uint32, error)
DumpBridgeDomainIDs lists all configured bridge domains. Auxiliary method for LookupFIBEntries. returns list of bridge domain IDs (BD IDs). First element of returned slice is 0. It is default BD to which all interfaces belong
func DumpBridgeDomains ¶
func DumpBridgeDomains(vppChan vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[uint32]*BridgeDomain, error)
DumpBridgeDomains dumps VPP bridge domain data into the northbound API data structure map indexed by bridge domain ID.
LIMITATIONS: - not able to dump ArpTerminationTable - missing binary API
func DumpFIBTableEntries ¶
func DumpFIBTableEntries(vppChan vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[string]*FIBTableEntry, error)
DumpFIBTableEntries dumps VPP FIB table entries into the northbound API data structure map indexed by destination MAC address.
func DumpXConnectPairs ¶
func DumpXConnectPairs(vppChan vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[uint32]*XConnectPairs, error)
DumpXConnectPairs dumps VPP xconnect pair data into the northbound API data structure map indexed by rx interface index.
Types ¶
type BridgeDomain ¶
type BridgeDomain struct { Interfaces []*BridgeDomainInterface `json:"interfaces"` l2nb.BridgeDomains_BridgeDomain }
BridgeDomain is the wrapper structure for the bridge domain northbound API structure. NOTE: Interfaces in BridgeDomains_BridgeDomain is overridden by the local Interfaces member.
type BridgeDomainInterface ¶
type BridgeDomainInterface struct { SwIfIndex uint32 `json:"sw_if_index"` l2nb.BridgeDomains_BridgeDomain_Interfaces }
BridgeDomainInterface is the wrapper structure for the bridge domain interface northbound API structure.
type FIBTableEntry ¶
type FIBTableEntry struct { BridgeDomainIdx uint32 `json:"bridge_domain_idx"` OutgoingInterfaceSwIfIdx uint32 `json:"outgoing_interface_sw_if_idx"` l2nb.FibTable_FibEntry }
FIBTableEntry is the wrapper structure for the FIB table entry northbound API structure.
type XConnectPairs ¶
type XConnectPairs struct { ReceiveInterfaceSwIfIdx uint32 `json:"receive_interface_sw_if_idx"` TransmitInterfaceSwIfIdx uint32 `json:"transmit_interface_sw_if_idx"` }
XConnectPairs is the wrapper structure for the l2 xconnect northbound API structure.