Documentation ¶
Index ¶
- 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABFVppHandler ¶
type ABFVppHandler struct {
// contains filtered or unexported fields
}
ABFVppHandler is accessor for abf-related vppcalls methods
func NewABFVppHandler ¶
func NewABFVppHandler(calls govppapi.Channel, aclIdx aclidx.ACLMetadataIndex, ifIdx ifaceidx.IfaceMetadataIndex, log logging.Logger) *ABFVppHandler
NewABFVppHandler returns new ABFVppHandler.
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.