vpp1810

package
v2.1.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: Apache-2.0 Imports: 17 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(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(0)
)

Variables

This section is empty.

Functions

Types

type ArpVppHandler

type ArpVppHandler struct {
	// contains filtered or unexported fields
}

ArpVppHandler is accessor for ARP-related vppcalls methods

func NewArpVppHandler

func NewArpVppHandler(callsChan govppapi.Channel, ifIndexes ifaceidx.IfaceMetadataIndex, log logging.Logger) *ArpVppHandler

NewArpVppHandler creates new instance of IPsec vppcalls handler

func (*ArpVppHandler) DumpArpEntries

func (h *ArpVppHandler) DumpArpEntries() ([]*vppcalls.ArpDetails, error)

DumpArpEntries implements arp handler.

func (*ArpVppHandler) VppAddArp

func (h *ArpVppHandler) VppAddArp(entry *l3.ARPEntry) error

VppAddArp implements arp handler.

func (*ArpVppHandler) VppDelArp

func (h *ArpVppHandler) VppDelArp(entry *l3.ARPEntry) error

VppDelArp implements arp handler.

type IPNeighHandler

type IPNeighHandler struct {
	vpevppcalls.VpeVppAPI
	// contains filtered or unexported fields
}

IPNeighHandler is accessor for ip-neighbor-related vppcalls methods

func NewIPNeighVppHandler

func NewIPNeighVppHandler(callsChan govppapi.Channel, log logging.Logger) *IPNeighHandler

NewIPNeighVppHandler creates new instance of ip neighbor vppcalls handler

func (*IPNeighHandler) GetIPScanNeighbor

func (h *IPNeighHandler) GetIPScanNeighbor() (*l3.IPScanNeighbor, error)

GetIPScanNeighbor dumps current IP Scan Neighbor configuration.

func (*IPNeighHandler) SetIPScanNeighbor

func (h *IPNeighHandler) SetIPScanNeighbor(data *l3.IPScanNeighbor) error

SetIPScanNeighbor implements ip neigh handler.

type ProxyArpVppHandler

type ProxyArpVppHandler struct {
	// contains filtered or unexported fields
}

ProxyArpVppHandler is accessor for proxy ARP-related vppcalls methods

func NewProxyArpVppHandler

func NewProxyArpVppHandler(callsChan govppapi.Channel, ifIndexes ifaceidx.IfaceMetadataIndex, log logging.Logger) *ProxyArpVppHandler

NewProxyArpVppHandler creates new instance of proxy ARP vppcalls handler

func (*ProxyArpVppHandler) AddProxyArpRange

func (h *ProxyArpVppHandler) AddProxyArpRange(firstIP, lastIP []byte) error

AddProxyArpRange implements proxy arp handler.

func (*ProxyArpVppHandler) DeleteProxyArpRange

func (h *ProxyArpVppHandler) DeleteProxyArpRange(firstIP, lastIP []byte) error

DeleteProxyArpRange implements proxy arp handler.

func (*ProxyArpVppHandler) DisableProxyArpInterface

func (h *ProxyArpVppHandler) DisableProxyArpInterface(ifName string) error

DisableProxyArpInterface implements proxy arp handler.

func (*ProxyArpVppHandler) DumpProxyArpInterfaces

func (h *ProxyArpVppHandler) DumpProxyArpInterfaces() (pArpIfs []*vppcalls.ProxyArpInterfaceDetails, err error)

DumpProxyArpInterfaces implements proxy arp handler.

func (*ProxyArpVppHandler) DumpProxyArpRanges

func (h *ProxyArpVppHandler) DumpProxyArpRanges() (pArpRngs []*vppcalls.ProxyArpRangesDetails, err error)

DumpProxyArpRanges implements proxy arp handler.

func (*ProxyArpVppHandler) EnableProxyArpInterface

func (h *ProxyArpVppHandler) EnableProxyArpInterface(ifName string) error

EnableProxyArpInterface implements proxy arp handler.

type RouteHandler

type RouteHandler struct {
	// contains filtered or unexported fields
}

RouteHandler is accessor for route-related vppcalls methods

func NewRouteVppHandler

func NewRouteVppHandler(callsChan govppapi.Channel, ifIndexes ifaceidx.IfaceMetadataIndex, log logging.Logger) *RouteHandler

NewRouteVppHandler creates new instance of route vppcalls handler

func (*RouteHandler) DumpRoutes

func (h *RouteHandler) DumpRoutes() ([]*vppcalls.RouteDetails, error)

DumpRoutes implements route handler.

func (*RouteHandler) VppAddRoute

func (h *RouteHandler) VppAddRoute(route *vpp_l3.Route) error

VppAddRoute implements route handler.

func (*RouteHandler) VppDelRoute

func (h *RouteHandler) VppDelRoute(route *vpp_l3.Route) error

VppDelRoute implements route handler.

Jump to

Keyboard shortcuts

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