gre

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package gre is a generated VPP binary API for 'gre' module.

It consists of:

12 enums
 6 aliases
 7 types
 1 union
 4 messages
 2 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "gre"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0xb7663194
)

Variables

View Source
var GreTunnelMode_name = map[uint8]string{
	1: "GRE_API_TUNNEL_MODE_P2P",
	2: "GRE_API_TUNNEL_MODE_MP",
}
View Source
var GreTunnelMode_value = map[string]uint8{
	"GRE_API_TUNNEL_MODE_P2P": 1,
	"GRE_API_TUNNEL_MODE_MP":  2,
}
View Source
var GreTunnelType_name = map[uint8]string{
	0: "GRE_API_TUNNEL_TYPE_L3",
	1: "GRE_API_TUNNEL_TYPE_TEB",
	2: "GRE_API_TUNNEL_TYPE_ERSPAN",
}
View Source
var GreTunnelType_value = map[string]uint8{
	"GRE_API_TUNNEL_TYPE_L3":     0,
	"GRE_API_TUNNEL_TYPE_TEB":    1,
	"GRE_API_TUNNEL_TYPE_ERSPAN": 2,
}

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type Address

type Address = ip_types.Address

type AddressFamily

type AddressFamily = ip_types.AddressFamily

type AddressUnion

type AddressUnion = ip_types.AddressUnion

type AddressWithPrefix

type AddressWithPrefix = ip_types.AddressWithPrefix

type GreTunnel

type GreTunnel struct {
	Type         GreTunnelType
	Mode         GreTunnelMode
	SessionID    uint16
	Instance     uint32
	OuterTableID uint32
	SwIfIndex    InterfaceIndex
	Src          Address
	Dst          Address
}

GreTunnel represents VPP binary API type 'gre_tunnel'.

func (*GreTunnel) GetTypeName

func (*GreTunnel) GetTypeName() string

type GreTunnelAddDel

type GreTunnelAddDel struct {
	IsAdd  bool
	Tunnel GreTunnel
}

GreTunnelAddDel represents VPP binary API message 'gre_tunnel_add_del'.

func (*GreTunnelAddDel) GetCrcString

func (*GreTunnelAddDel) GetCrcString() string

func (*GreTunnelAddDel) GetMessageName

func (*GreTunnelAddDel) GetMessageName() string

func (*GreTunnelAddDel) GetMessageType

func (*GreTunnelAddDel) GetMessageType() api.MessageType

func (*GreTunnelAddDel) Reset

func (m *GreTunnelAddDel) Reset()

type GreTunnelAddDelReply

type GreTunnelAddDelReply struct {
	Retval    int32
	SwIfIndex InterfaceIndex
}

GreTunnelAddDelReply represents VPP binary API message 'gre_tunnel_add_del_reply'.

func (*GreTunnelAddDelReply) GetCrcString

func (*GreTunnelAddDelReply) GetCrcString() string

func (*GreTunnelAddDelReply) GetMessageName

func (*GreTunnelAddDelReply) GetMessageName() string

func (*GreTunnelAddDelReply) GetMessageType

func (*GreTunnelAddDelReply) GetMessageType() api.MessageType

func (*GreTunnelAddDelReply) Reset

func (m *GreTunnelAddDelReply) Reset()

type GreTunnelDetails

type GreTunnelDetails struct {
	Tunnel GreTunnel
}

GreTunnelDetails represents VPP binary API message 'gre_tunnel_details'.

func (*GreTunnelDetails) GetCrcString

func (*GreTunnelDetails) GetCrcString() string

func (*GreTunnelDetails) GetMessageName

func (*GreTunnelDetails) GetMessageName() string

func (*GreTunnelDetails) GetMessageType

func (*GreTunnelDetails) GetMessageType() api.MessageType

func (*GreTunnelDetails) Reset

func (m *GreTunnelDetails) Reset()

type GreTunnelDump

type GreTunnelDump struct {
	SwIfIndex InterfaceIndex
}

GreTunnelDump represents VPP binary API message 'gre_tunnel_dump'.

func (*GreTunnelDump) GetCrcString

func (*GreTunnelDump) GetCrcString() string

func (*GreTunnelDump) GetMessageName

func (*GreTunnelDump) GetMessageName() string

func (*GreTunnelDump) GetMessageType

func (*GreTunnelDump) GetMessageType() api.MessageType

func (*GreTunnelDump) Reset

func (m *GreTunnelDump) Reset()

type GreTunnelMode

type GreTunnelMode uint8

GreTunnelMode represents VPP binary API enum 'gre_tunnel_mode'.

const (
	GRE_API_TUNNEL_MODE_P2P GreTunnelMode = 1
	GRE_API_TUNNEL_MODE_MP  GreTunnelMode = 2
)

func (GreTunnelMode) String

func (x GreTunnelMode) String() string

type GreTunnelType

type GreTunnelType uint8

GreTunnelType represents VPP binary API enum 'gre_tunnel_type'.

const (
	GRE_API_TUNNEL_TYPE_L3     GreTunnelType = 0
	GRE_API_TUNNEL_TYPE_TEB    GreTunnelType = 1
	GRE_API_TUNNEL_TYPE_ERSPAN GreTunnelType = 2
)

func (GreTunnelType) String

func (x GreTunnelType) String() string

type IP4Address

type IP4Address = ip_types.IP4Address

type IP4AddressWithPrefix

type IP4AddressWithPrefix = ip_types.IP4AddressWithPrefix

type IP4Prefix

type IP4Prefix = ip_types.IP4Prefix

type IP6Address

type IP6Address = ip_types.IP6Address

type IP6AddressWithPrefix

type IP6AddressWithPrefix = ip_types.IP6AddressWithPrefix

type IP6Prefix

type IP6Prefix = ip_types.IP6Prefix

type IPDscp

type IPDscp = ip_types.IPDscp

type IPEcn

type IPEcn = ip_types.IPEcn

type IPProto

type IPProto = ip_types.IPProto

type IfStatusFlags

type IfStatusFlags = interface_types.IfStatusFlags

type IfType

type IfType = interface_types.IfType

type InterfaceIndex

type InterfaceIndex = interface_types.InterfaceIndex

type LinkDuplex

type LinkDuplex = interface_types.LinkDuplex

type Mprefix

type Mprefix = ip_types.Mprefix

type MtuProto

type MtuProto = interface_types.MtuProto

type Prefix

type Prefix = ip_types.Prefix

type PrefixMatcher

type PrefixMatcher = ip_types.PrefixMatcher

type RPCService

type RPCService interface {
	DumpGreTunnel(ctx context.Context, in *GreTunnelDump) (RPCService_DumpGreTunnelClient, error)
	GreTunnelAddDel(ctx context.Context, in *GreTunnelAddDel) (*GreTunnelAddDelReply, error)
}

RPCService represents RPC service API for gre module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpGreTunnelClient

type RPCService_DumpGreTunnelClient interface {
	Recv() (*GreTunnelDetails, error)
}

type RxMode

type RxMode = interface_types.RxMode

type SubIfFlags

type SubIfFlags = interface_types.SubIfFlags

Jump to

Keyboard shortcuts

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