Documentation ¶
Index ¶
- Constants
- func NewABFVppHandler(calls govppapi.Channel, aclIdx aclidx.ACLMetadataIndex, ...) vppcalls.ABFVppAPI
- type ABFVppHandler
- func (h *ABFVppHandler) AbfAttachInterfaceIPv4(policyID, ifIdx, priority uint32) error
- func (h *ABFVppHandler) AbfAttachInterfaceIPv6(policyID, ifIdx, priority uint32) error
- func (h *ABFVppHandler) AbfDetachInterfaceIPv4(policyID, ifIdx, priority uint32) error
- func (h *ABFVppHandler) AbfDetachInterfaceIPv6(policyID, ifIdx, priority uint32) error
- func (h *ABFVppHandler) AddAbfPolicy(policyID, aclID uint32, abfPaths []*vpp_abf.ABF_ForwardingPath) error
- func (h *ABFVppHandler) DeleteAbfPolicy(policyID uint32, abfPaths []*vpp_abf.ABF_ForwardingPath) error
- func (h *ABFVppHandler) DumpABFPolicy() ([]*vppcalls.ABFDetails, error)
- func (h *ABFVppHandler) GetAbfVersion() (ver string, err error)
Constants ¶
View Source
const ( // NextHopViaLabelUnset constant has to be assigned into the field next hop via label // in abf_policy_add_del binary message if next hop via label is not defined. NextHopViaLabelUnset uint32 = 0xfffff + 1 // ClassifyTableIndexUnset is a default value for field classify_table_index // in abf_policy_add_del binary message. ClassifyTableIndexUnset = ^uint32(0) )
Variables ¶
This section is empty.
Functions ¶
func NewABFVppHandler ¶
func NewABFVppHandler( calls govppapi.Channel, aclIdx aclidx.ACLMetadataIndex, ifIdx ifaceidx.IfaceMetadataIndex, log logging.Logger, ) vppcalls.ABFVppAPI
NewABFVppHandler returns new ABFVppHandler.
Types ¶
type ABFVppHandler ¶
type ABFVppHandler struct {
// contains filtered or unexported fields
}
ABFVppHandler is accessor for abf-related vppcalls methods
func (*ABFVppHandler) AbfAttachInterfaceIPv4 ¶
func (h *ABFVppHandler) AbfAttachInterfaceIPv4(policyID, ifIdx, priority uint32) error
AbfAttachInterfaceIPv4 attaches IPv4 interface to the ABF
func (*ABFVppHandler) AbfAttachInterfaceIPv6 ¶
func (h *ABFVppHandler) AbfAttachInterfaceIPv6(policyID, ifIdx, priority uint32) error
AbfAttachInterfaceIPv6 attaches IPv6 interface to the ABF
func (*ABFVppHandler) AbfDetachInterfaceIPv4 ¶
func (h *ABFVppHandler) AbfDetachInterfaceIPv4(policyID, ifIdx, priority uint32) error
AbfDetachInterfaceIPv4 detaches IPV4 interface from the ABF
func (*ABFVppHandler) AbfDetachInterfaceIPv6 ¶
func (h *ABFVppHandler) AbfDetachInterfaceIPv6(policyID, ifIdx, priority uint32) error
AbfDetachInterfaceIPv6 detaches IPv6 interface from the ABF
func (*ABFVppHandler) AddAbfPolicy ¶
func (h *ABFVppHandler) AddAbfPolicy(policyID, aclID uint32, abfPaths []*vpp_abf.ABF_ForwardingPath) error
AddAbfPolicy creates new ABF entry together with a list of forwarding paths
func (*ABFVppHandler) DeleteAbfPolicy ¶
func (h *ABFVppHandler) DeleteAbfPolicy(policyID uint32, abfPaths []*vpp_abf.ABF_ForwardingPath) error
DeleteAbfPolicy removes existing ABF entry
func (*ABFVppHandler) DumpABFPolicy ¶
func (h *ABFVppHandler) DumpABFPolicy() ([]*vppcalls.ABFDetails, error)
DumpABFPolicy retrieves VPP ABF configuration.
func (*ABFVppHandler) GetAbfVersion ¶
func (h *ABFVppHandler) GetAbfVersion() (ver string, err error)
GetAbfVersion retrieves version of the VPP ABF plugin
Click to show internal directories.
Click to hide internal directories.