Documentation ¶
Index ¶
- Variables
- type ArpDetails
- type ArpMeta
- type ArpVppAPI
- type ArpVppRead
- type FibMplsLabel
- type HandlerVersion
- type IPNeighVppAPI
- type L3VppAPI
- type ProxyArpInterfaceDetails
- type ProxyArpInterfaceMeta
- type ProxyArpRangesDetails
- type ProxyArpVppAPI
- type ProxyArpVppRead
- type RouteDetails
- type RouteMeta
- type RouteVppAPI
- type RouteVppRead
- type VrfTableVppAPI
- type VrfTableVppRead
Constants ¶
This section is empty.
Variables ¶
var Versions = map[string]HandlerVersion{}
Functions ¶
This section is empty.
Types ¶
type ArpDetails ¶ added in v1.8.1
ArpDetails holds info about ARP entry as a proto model
type ArpMeta ¶ added in v1.8.1
type ArpMeta struct {
SwIfIndex uint32
}
ArpMeta contains interface index of the ARP interface
type ArpVppAPI ¶ added in v1.8.1
type ArpVppAPI interface { ArpVppRead // VppAddArp adds ARP entry according to provided input VppAddArp(entry *l3.ARPEntry) error // VppDelArp removes old ARP entry according to provided input VppDelArp(entry *l3.ARPEntry) error }
ArpVppAPI provides methods for managing ARP entries
type ArpVppRead ¶ added in v1.8.1
type ArpVppRead interface { // DumpArpEntries dumps ARPs from VPP and fills them into the provided static route map. DumpArpEntries() ([]*ArpDetails, error) }
ArpVppRead provides read methods for ARPs
type FibMplsLabel ¶
FibMplsLabel is object returned with route dump.
type HandlerVersion ¶
type IPNeighVppAPI ¶ added in v1.8.1
type IPNeighVppAPI interface { // SetIPScanNeighbor configures IP scan neighbor to the VPP SetIPScanNeighbor(data *l3.IPScanNeighbor) error // GetIPScanNeighbor returns IP scan neighbor configuration from the VPP GetIPScanNeighbor() (*l3.IPScanNeighbor, error) }
IPNeighVppAPI provides methods for managing IP scan neighbor configuration
type L3VppAPI ¶
type L3VppAPI interface { ArpVppAPI ProxyArpVppAPI RouteVppAPI IPNeighVppAPI VrfTableVppAPI }
L3VppAPI groups L3 Vpp APIs.
func CompatibleL3VppHandler ¶
type ProxyArpInterfaceDetails ¶ added in v1.8.1
type ProxyArpInterfaceDetails struct { Interface *l3.ProxyARP_Interface Meta *ProxyArpInterfaceMeta }
ProxyArpInterfaceDetails holds info about proxy ARP interfaces as a proto modeled data
type ProxyArpInterfaceMeta ¶ added in v1.8.1
type ProxyArpInterfaceMeta struct {
SwIfIndex uint32
}
ProxyArpInterfaceMeta contains interface vpp index
type ProxyArpRangesDetails ¶ added in v1.8.1
type ProxyArpRangesDetails struct {
Range *l3.ProxyARP_Range
}
ProxyArpRangesDetails holds info about proxy ARP range as a proto modeled data
type ProxyArpVppAPI ¶ added in v1.8.1
type ProxyArpVppAPI interface { ProxyArpVppRead // EnableProxyArpInterface enables interface for proxy ARP EnableProxyArpInterface(ifName string) error // DisableProxyArpInterface disables interface for proxy ARP DisableProxyArpInterface(ifName string) error // AddProxyArpRange adds new IP range for proxy ARP AddProxyArpRange(firstIP, lastIP []byte) error // DeleteProxyArpRange removes proxy ARP IP range DeleteProxyArpRange(firstIP, lastIP []byte) error }
ProxyArpVppAPI provides methods for managing proxy ARP entries
type ProxyArpVppRead ¶ added in v1.8.1
type ProxyArpVppRead interface { // DumpProxyArpRanges returns configured proxy ARP ranges DumpProxyArpRanges() ([]*ProxyArpRangesDetails, error) // DumpProxyArpRanges returns configured proxy ARP interfaces DumpProxyArpInterfaces() ([]*ProxyArpInterfaceDetails, error) }
ProxyArpVppRead provides read methods for proxy ARPs
type RouteDetails ¶ added in v1.8.1
RouteDetails is object returned as a VPP dump. It contains static route data in proto format, and VPP-specific metadata
type RouteMeta ¶ added in v1.8.1
type RouteMeta struct { TableName string OutgoingIfIdx uint32 IsIPv6 bool Afi uint8 IsLocal bool IsUDPEncap bool IsUnreach bool IsProhibit bool IsResolveHost bool IsResolveAttached bool IsDvr bool IsSourceLookup bool NextHopID uint32 RpfID uint32 LabelStack []FibMplsLabel }
RouteMeta holds fields returned from the VPP as details which are not in the model
type RouteVppAPI ¶ added in v1.8.1
type RouteVppAPI interface { RouteVppRead // VppAddRoute adds new route, according to provided input. // Every route has to contain VRF ID (default is 0). VppAddRoute(route *l3.Route) error // VppDelRoute removes old route, according to provided input. // Every route has to contain VRF ID (default is 0). VppDelRoute(route *l3.Route) error }
RouteVppAPI provides methods for managing routes
type RouteVppRead ¶ added in v1.8.1
type RouteVppRead interface { // DumpRoutes dumps l3 routes from VPP and fills them // into the provided static route map. DumpRoutes() ([]*RouteDetails, error) }
RouteVppRead provides read methods for routes
type VrfTableVppAPI ¶
type VrfTableVppAPI interface { VrfTableVppRead // AddVrfTable adds new VRF table. AddVrfTable(table *l3.VrfTable) error // DelVrfTable deletes existing VRF table. DelVrfTable(table *l3.VrfTable) error }
VrfTableVppAPI provides methods for managing VRF tables.
type VrfTableVppRead ¶
type VrfTableVppRead interface { // DumpVrfTables dumps all configured VRF tables. DumpVrfTables() ([]*l3.VrfTable, error) }
VrfTableVppRead provides read methods for VRF tables.
Directories ¶
Path | Synopsis |
---|---|
Package vppcalls contains wrappers over VPP binary APIs for ARPs, proxy ARPs, L3 FIBs and helpers for dumping them.
|
Package vppcalls contains wrappers over VPP binary APIs for ARPs, proxy ARPs, L3 FIBs and helpers for dumping them. |
Package vppcalls contains wrappers over VPP binary APIs for ARPs, proxy ARPs, L3 FIBs and helpers for dumping them.
|
Package vppcalls contains wrappers over VPP binary APIs for ARPs, proxy ARPs, L3 FIBs and helpers for dumping them. |