vpp2210

package
v3.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 []*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 []*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL