vppcalls

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package vppcalls contains wrappers over VPP binary APIs for L3 FIBs.

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 VppAddArp added in v1.0.8

func VppAddArp(entry *ArpEntry, vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) error

VppAddArp adds ARP entry according to provided input

func VppAddRoute added in v1.0.6

func VppAddRoute(route *Route, vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) error

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

func VppDelArp added in v1.0.8

func VppDelArp(entry *ArpEntry, vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) error

VppDelArp removes old ARP entry according to provided input

func VppDelRoute added in v1.0.6

func VppDelRoute(route *Route, vppChan *govppapi.Channel, timeLog measure.StopWatchEntry) error

VppDelRoute removes old route, according to provided input. Every route has to contain VRF ID (default is 0).

Types

type ArpEntry added in v1.0.8

type ArpEntry struct {
	Interface  uint32
	IPAddress  net.IP
	MacAddress net.HardwareAddr
	Static     bool
}

ArpEntry represents ARP entry for interface

type Route

type Route struct {
	VrfID       uint32    `json:"vrf_id"`
	TableName   string    `json:"table_name"`
	DstAddr     net.IPNet `json:"dst_addr"`
	NextHopAddr net.IP    `json:"next_hop_addr"`
	OutIface    uint32    `json:"out_iface"`
	Weight      uint32    `json:"weight"`
	Preference  uint32    `json:"preference"`
}

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