vppcalls

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NextHopViaLabelUnset constant has to be assigned into the field next hop via label in ip_add_del_route binary message
	// if next hop via label is not defined.
	// equals to MPLS_LABEL_INVALID defined in VPP
	NextHopViaLabelUnset uint32 = 0xfffff + 1

	// ClassifyTableIndexUnset is a default value for field classify_table_index in ip_add_del_route binary message
	ClassifyTableIndexUnset uint32 = ^uint32(0)

	// NextHopOutgoingIfUnset constant has to be assigned into the field next_hop_outgoing_interface in ip_add_del_route binary message
	// if outgoing interface for next hop is not defined.
	NextHopOutgoingIfUnset uint32 = ^uint32(0)
)

Variables

This section is empty.

Functions

func VppAddDelRoute

func VppAddDelRoute(route *Route, vppChan *govppapi.Channel, delete bool) error

VppAddDelRoute adds new route according to provided input. Every route has to contain VRF ID (default is 0)

Types

type Route

type Route struct {
	VrfID       uint32
	DstAddr     net.IPNet
	NextHopAddr net.IP
	OutIface    uint32
	Weight      uint32
	Preference  uint32
}

Route represents a forward IP route entry with the parameters of gateway to which packets should be forwarded when a given routing table entry is applied.

Jump to

Keyboard shortcuts

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