gre

package
v3.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package gre contains generated bindings for API file gre.api.

Contents:

1 enum
1 struct
4 messages

Index

Constants

View Source
const (
	APIFile    = "gre"
	APIVersion = "2.1.1"
	VersionCrc = 0x8ac2b605
)

Variables

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",
	}
	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 GreTunnel

type GreTunnel struct {
	Type         GreTunnelType                      `binapi:"gre_tunnel_type,name=type" json:"type,omitempty"`
	Mode         tunnel_types.TunnelMode            `binapi:"tunnel_mode,name=mode" json:"mode,omitempty"`
	Flags        tunnel_types.TunnelEncapDecapFlags `binapi:"tunnel_encap_decap_flags,name=flags" json:"flags,omitempty"`
	SessionID    uint16                             `binapi:"u16,name=session_id" json:"session_id,omitempty"`
	Instance     uint32                             `binapi:"u32,name=instance" json:"instance,omitempty"`
	OuterTableID uint32                             `binapi:"u32,name=outer_table_id" json:"outer_table_id,omitempty"`
	SwIfIndex    interface_types.InterfaceIndex     `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Src          ip_types.Address                   `binapi:"address,name=src" json:"src,omitempty"`
	Dst          ip_types.Address                   `binapi:"address,name=dst" json:"dst,omitempty"`
}

GreTunnel defines type 'gre_tunnel'.

type GreTunnelAddDel

type GreTunnelAddDel struct {
	IsAdd  bool      `binapi:"bool,name=is_add" json:"is_add,omitempty"`
	Tunnel GreTunnel `binapi:"gre_tunnel,name=tunnel" json:"tunnel,omitempty"`
}

GreTunnelAddDel defines 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) Marshal

func (m *GreTunnelAddDel) Marshal(b []byte) ([]byte, error)

func (*GreTunnelAddDel) Reset

func (m *GreTunnelAddDel) Reset()

func (*GreTunnelAddDel) Size

func (m *GreTunnelAddDel) Size() (size int)

func (*GreTunnelAddDel) Unmarshal

func (m *GreTunnelAddDel) Unmarshal(b []byte) error

type GreTunnelAddDelReply

type GreTunnelAddDelReply struct {
	Retval    int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

GreTunnelAddDelReply defines 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) Marshal

func (m *GreTunnelAddDelReply) Marshal(b []byte) ([]byte, error)

func (*GreTunnelAddDelReply) Reset

func (m *GreTunnelAddDelReply) Reset()

func (*GreTunnelAddDelReply) Size

func (m *GreTunnelAddDelReply) Size() (size int)

func (*GreTunnelAddDelReply) Unmarshal

func (m *GreTunnelAddDelReply) Unmarshal(b []byte) error

type GreTunnelDetails

type GreTunnelDetails struct {
	Tunnel GreTunnel `binapi:"gre_tunnel,name=tunnel" json:"tunnel,omitempty"`
}

GreTunnelDetails defines 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) Marshal

func (m *GreTunnelDetails) Marshal(b []byte) ([]byte, error)

func (*GreTunnelDetails) Reset

func (m *GreTunnelDetails) Reset()

func (*GreTunnelDetails) Size

func (m *GreTunnelDetails) Size() (size int)

func (*GreTunnelDetails) Unmarshal

func (m *GreTunnelDetails) Unmarshal(b []byte) error

type GreTunnelDump

type GreTunnelDump struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}

GreTunnelDump defines 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) Marshal

func (m *GreTunnelDump) Marshal(b []byte) ([]byte, error)

func (*GreTunnelDump) Reset

func (m *GreTunnelDump) Reset()

func (*GreTunnelDump) Size

func (m *GreTunnelDump) Size() (size int)

func (*GreTunnelDump) Unmarshal

func (m *GreTunnelDump) Unmarshal(b []byte) error

type GreTunnelType

type GreTunnelType uint8

GreTunnelType defines 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 RPCService

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

RPCService defines RPC service gre.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_GreTunnelDumpClient

type RPCService_GreTunnelDumpClient interface {
	Recv() (*GreTunnelDetails, error)
	api.Stream
}

Jump to

Keyboard shortcuts

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