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 ¶
- func NewL2VppHandler(ch govppapi.Channel, ifIdx ifaceidx.IfaceMetadataIndex, ...) vppcalls.L2VppAPI
- type BridgeDomainVppHandler
- func (h *BridgeDomainVppHandler) AddArpTerminationTableEntry(bdID uint32, mac string, ip string) error
- func (h *BridgeDomainVppHandler) AddBridgeDomain(bdIdx uint32, bd *l2.BridgeDomain) error
- func (h *BridgeDomainVppHandler) AddInterfaceToBridgeDomain(bdIdx uint32, ifaceCfg *l2.BridgeDomain_Interface) error
- func (h *BridgeDomainVppHandler) DeleteBridgeDomain(bdIdx uint32) error
- func (h *BridgeDomainVppHandler) DeleteInterfaceFromBridgeDomain(bdIdx uint32, ifaceCfg *l2.BridgeDomain_Interface) error
- func (h *BridgeDomainVppHandler) DumpBridgeDomains() ([]*vppcalls.BridgeDomainDetails, error)
- func (h *BridgeDomainVppHandler) RemoveArpTerminationTableEntry(bdID uint32, mac string, ip string) error
- type FIBVppHandler
- type L2VppHandler
- type XConnectVppHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
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 *l2nb.FIBEntry) error
AddL2FIB creates L2 FIB table entry.
func (*FIBVppHandler) DeleteL2FIB ¶
func (h *FIBVppHandler) DeleteL2FIB(fib *l2nb.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 L2VppHandler ¶
type L2VppHandler struct { *BridgeDomainVppHandler *FIBVppHandler *XConnectVppHandler }
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.