Documentation ¶
Overview ¶
Package vppcalls contains wrappers over VPP ABF binary APIs and helpers to dump ABFs configured in VPP
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Versions = map[string]HandlerVersion{}
Functions ¶
This section is empty.
Types ¶
type ABFDetails ¶
ABFDetails contains proto-modeled ABF data together with VPP-related metadata
type ABFMeta ¶
type ABFMeta struct {
PolicyID uint32 `json:"policy_id"`
}
ABFMeta contains policy ID (ABF index)
type ABFVppAPI ¶
type ABFVppAPI interface { ABFVppRead // GetAbfVersion retrieves version of the VPP ABF plugin GetAbfVersion() (ver string, err error) // AddAbfPolicy creates new ABF entry together with a list of forwarding paths AddAbfPolicy(policyID, aclID uint32, abfPaths []*abf.ABF_ForwardingPath) error // DeleteAbfPolicy removes existing ABF entry DeleteAbfPolicy(policyID uint32, abfPaths []*abf.ABF_ForwardingPath) error // AbfAttachInterfaceIPv4 attaches IPv4 interface to the ABF AbfAttachInterfaceIPv4(policyID, ifIdx, priority uint32) error // AbfDetachInterfaceIPv4 detaches IPV4 interface from the ABF AbfDetachInterfaceIPv4(policyID, ifIdx, priority uint32) error // AbfAttachInterfaceIPv6 attaches IPv6 interface to the ABF AbfAttachInterfaceIPv6(policyID, ifIdx, priority uint32) error // AbfDetachInterfaceIPv6 detaches IPv6 interface from the ABF AbfDetachInterfaceIPv6(policyID, ifIdx, priority uint32) error }
ABFVppAPI provides read/write methods required to handle VPP ACL-based forwarding
func CompatibleABFVppHandler ¶
func CompatibleABFVppHandler(ch govppapi.Channel, aclIdx aclidx.ACLMetadataIndex, ifIdx ifaceidx.IfaceMetadataIndex, log logging.Logger) ABFVppAPI
type ABFVppRead ¶
type ABFVppRead interface { // DumpABFPolicy retrieves VPP ABF configuration. DumpABFPolicy() ([]*ABFDetails, error) }
ABFVppRead provides read methods for ABF plugin
type HandlerVersion ¶
Click to show internal directories.
Click to hide internal directories.