vpp1908

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 10 Imported by: 9

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

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

Jump to

Keyboard shortcuts

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