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
- Variables
- func AllMessages() []api.Message
- type Address
- type AddressFamily
- type AddressUnion
- type AddressWithPrefix
- type GreTunnel
- type GreTunnelAddDel
- type GreTunnelAddDelReply
- type GreTunnelDetails
- type GreTunnelDump
- type GreTunnelMode
- type GreTunnelType
- type IP4Address
- type IP4AddressWithPrefix
- type IP4Prefix
- type IP6Address
- type IP6AddressWithPrefix
- type IP6Prefix
- type IPDscp
- type IPEcn
- type IPProto
- type IfStatusFlags
- type IfType
- type InterfaceIndex
- type LinkDuplex
- type Mprefix
- type MtuProto
- type Prefix
- type PrefixMatcher
- type RPCService
- type RPCService_DumpGreTunnelClient
- type RxMode
- type SubIfFlags
Constants ¶
View Source
const ( // ModuleName is the name of this module. ModuleName = "gre" // APIVersion is the API version of this module. APIVersion = "2.0.1" // 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 ¶
Messages returns list of all messages in this module.
Types ¶
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 ¶
type GreTunnelAddDel ¶
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 IP6Address ¶
type IP6Address = ip_types.IP6Address
type IP6AddressWithPrefix ¶
type IP6AddressWithPrefix = ip_types.IP6AddressWithPrefix
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 MtuProto ¶
type MtuProto = interface_types.MtuProto
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
Click to show internal directories.
Click to hide internal directories.