mpls

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Contents:

 3 structs
16 messages

Index

Constants

View Source
const (
	APIFile    = "mpls"
	APIVersion = "1.1.1"
	VersionCrc = 0x46824f02
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type MplsIPBindUnbind

type MplsIPBindUnbind struct {
	MbMplsTableID uint32          `binapi:"u32,name=mb_mpls_table_id" json:"mb_mpls_table_id,omitempty"`
	MbLabel       uint32          `binapi:"u32,name=mb_label" json:"mb_label,omitempty"`
	MbIPTableID   uint32          `binapi:"u32,name=mb_ip_table_id" json:"mb_ip_table_id,omitempty"`
	MbIsBind      bool            `binapi:"bool,name=mb_is_bind" json:"mb_is_bind,omitempty"`
	MbPrefix      ip_types.Prefix `binapi:"prefix,name=mb_prefix" json:"mb_prefix,omitempty"`
}

MplsIPBindUnbind defines message 'mpls_ip_bind_unbind'.

func (*MplsIPBindUnbind) GetCrcString

func (*MplsIPBindUnbind) GetCrcString() string

func (*MplsIPBindUnbind) GetMessageName

func (*MplsIPBindUnbind) GetMessageName() string

func (*MplsIPBindUnbind) GetMessageType

func (*MplsIPBindUnbind) GetMessageType() api.MessageType

func (*MplsIPBindUnbind) Marshal

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

func (*MplsIPBindUnbind) Reset

func (m *MplsIPBindUnbind) Reset()

func (*MplsIPBindUnbind) Size

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

func (*MplsIPBindUnbind) Unmarshal

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

type MplsIPBindUnbindReply

type MplsIPBindUnbindReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

MplsIPBindUnbindReply defines message 'mpls_ip_bind_unbind_reply'.

func (*MplsIPBindUnbindReply) GetCrcString

func (*MplsIPBindUnbindReply) GetCrcString() string

func (*MplsIPBindUnbindReply) GetMessageName

func (*MplsIPBindUnbindReply) GetMessageName() string

func (*MplsIPBindUnbindReply) GetMessageType

func (*MplsIPBindUnbindReply) GetMessageType() api.MessageType

func (*MplsIPBindUnbindReply) Marshal

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

func (*MplsIPBindUnbindReply) Reset

func (m *MplsIPBindUnbindReply) Reset()

func (*MplsIPBindUnbindReply) Size

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

func (*MplsIPBindUnbindReply) Unmarshal

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

type MplsRoute

type MplsRoute struct {
	MrTableID     uint32              `binapi:"u32,name=mr_table_id" json:"mr_table_id,omitempty"`
	MrLabel       uint32              `binapi:"u32,name=mr_label" json:"mr_label,omitempty"`
	MrEos         uint8               `binapi:"u8,name=mr_eos" json:"mr_eos,omitempty"`
	MrEosProto    uint8               `binapi:"u8,name=mr_eos_proto" json:"mr_eos_proto,omitempty"`
	MrIsMulticast bool                `binapi:"bool,name=mr_is_multicast" json:"mr_is_multicast,omitempty"`
	MrNPaths      uint8               `binapi:"u8,name=mr_n_paths" json:"-"`
	MrPaths       []fib_types.FibPath `binapi:"fib_path[mr_n_paths],name=mr_paths" json:"mr_paths,omitempty"`
}

MplsRoute defines type 'mpls_route'.

type MplsRouteAddDel

type MplsRouteAddDel struct {
	MrIsAdd       bool      `binapi:"bool,name=mr_is_add" json:"mr_is_add,omitempty"`
	MrIsMultipath bool      `binapi:"bool,name=mr_is_multipath" json:"mr_is_multipath,omitempty"`
	MrRoute       MplsRoute `binapi:"mpls_route,name=mr_route" json:"mr_route,omitempty"`
}

MplsRouteAddDel defines message 'mpls_route_add_del'.

func (*MplsRouteAddDel) GetCrcString

func (*MplsRouteAddDel) GetCrcString() string

func (*MplsRouteAddDel) GetMessageName

func (*MplsRouteAddDel) GetMessageName() string

func (*MplsRouteAddDel) GetMessageType

func (*MplsRouteAddDel) GetMessageType() api.MessageType

func (*MplsRouteAddDel) Marshal

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

func (*MplsRouteAddDel) Reset

func (m *MplsRouteAddDel) Reset()

func (*MplsRouteAddDel) Size

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

func (*MplsRouteAddDel) Unmarshal

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

type MplsRouteAddDelReply

type MplsRouteAddDelReply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	StatsIndex uint32 `binapi:"u32,name=stats_index" json:"stats_index,omitempty"`
}

MplsRouteAddDelReply defines message 'mpls_route_add_del_reply'.

func (*MplsRouteAddDelReply) GetCrcString

func (*MplsRouteAddDelReply) GetCrcString() string

func (*MplsRouteAddDelReply) GetMessageName

func (*MplsRouteAddDelReply) GetMessageName() string

func (*MplsRouteAddDelReply) GetMessageType

func (*MplsRouteAddDelReply) GetMessageType() api.MessageType

func (*MplsRouteAddDelReply) Marshal

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

func (*MplsRouteAddDelReply) Reset

func (m *MplsRouteAddDelReply) Reset()

func (*MplsRouteAddDelReply) Size

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

func (*MplsRouteAddDelReply) Unmarshal

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

type MplsRouteDetails

type MplsRouteDetails struct {
	MrRoute MplsRoute `binapi:"mpls_route,name=mr_route" json:"mr_route,omitempty"`
}

MplsRouteDetails defines message 'mpls_route_details'.

func (*MplsRouteDetails) GetCrcString

func (*MplsRouteDetails) GetCrcString() string

func (*MplsRouteDetails) GetMessageName

func (*MplsRouteDetails) GetMessageName() string

func (*MplsRouteDetails) GetMessageType

func (*MplsRouteDetails) GetMessageType() api.MessageType

func (*MplsRouteDetails) Marshal

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

func (*MplsRouteDetails) Reset

func (m *MplsRouteDetails) Reset()

func (*MplsRouteDetails) Size

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

func (*MplsRouteDetails) Unmarshal

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

type MplsRouteDump

type MplsRouteDump struct {
	Table MplsTable `binapi:"mpls_table,name=table" json:"table,omitempty"`
}

MplsRouteDump defines message 'mpls_route_dump'.

func (*MplsRouteDump) GetCrcString

func (*MplsRouteDump) GetCrcString() string

func (*MplsRouteDump) GetMessageName

func (*MplsRouteDump) GetMessageName() string

func (*MplsRouteDump) GetMessageType

func (*MplsRouteDump) GetMessageType() api.MessageType

func (*MplsRouteDump) Marshal

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

func (*MplsRouteDump) Reset

func (m *MplsRouteDump) Reset()

func (*MplsRouteDump) Size

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

func (*MplsRouteDump) Unmarshal

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

type MplsTable

type MplsTable struct {
	MtTableID uint32 `binapi:"u32,name=mt_table_id" json:"mt_table_id,omitempty"`
	MtName    string `binapi:"string[64],name=mt_name" json:"mt_name,omitempty"`
}

MplsTable defines type 'mpls_table'.

type MplsTableAddDel

type MplsTableAddDel struct {
	MtIsAdd bool      `binapi:"bool,name=mt_is_add,default=true" json:"mt_is_add,omitempty"`
	MtTable MplsTable `binapi:"mpls_table,name=mt_table" json:"mt_table,omitempty"`
}

MplsTableAddDel defines message 'mpls_table_add_del'.

func (*MplsTableAddDel) GetCrcString

func (*MplsTableAddDel) GetCrcString() string

func (*MplsTableAddDel) GetMessageName

func (*MplsTableAddDel) GetMessageName() string

func (*MplsTableAddDel) GetMessageType

func (*MplsTableAddDel) GetMessageType() api.MessageType

func (*MplsTableAddDel) Marshal

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

func (*MplsTableAddDel) Reset

func (m *MplsTableAddDel) Reset()

func (*MplsTableAddDel) Size

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

func (*MplsTableAddDel) Unmarshal

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

type MplsTableAddDelReply

type MplsTableAddDelReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

MplsTableAddDelReply defines message 'mpls_table_add_del_reply'.

func (*MplsTableAddDelReply) GetCrcString

func (*MplsTableAddDelReply) GetCrcString() string

func (*MplsTableAddDelReply) GetMessageName

func (*MplsTableAddDelReply) GetMessageName() string

func (*MplsTableAddDelReply) GetMessageType

func (*MplsTableAddDelReply) GetMessageType() api.MessageType

func (*MplsTableAddDelReply) Marshal

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

func (*MplsTableAddDelReply) Reset

func (m *MplsTableAddDelReply) Reset()

func (*MplsTableAddDelReply) Size

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

func (*MplsTableAddDelReply) Unmarshal

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

type MplsTableDetails

type MplsTableDetails struct {
	MtTable MplsTable `binapi:"mpls_table,name=mt_table" json:"mt_table,omitempty"`
}

MplsTableDetails defines message 'mpls_table_details'.

func (*MplsTableDetails) GetCrcString

func (*MplsTableDetails) GetCrcString() string

func (*MplsTableDetails) GetMessageName

func (*MplsTableDetails) GetMessageName() string

func (*MplsTableDetails) GetMessageType

func (*MplsTableDetails) GetMessageType() api.MessageType

func (*MplsTableDetails) Marshal

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

func (*MplsTableDetails) Reset

func (m *MplsTableDetails) Reset()

func (*MplsTableDetails) Size

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

func (*MplsTableDetails) Unmarshal

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

type MplsTableDump

type MplsTableDump struct{}

MplsTableDump defines message 'mpls_table_dump'.

func (*MplsTableDump) GetCrcString

func (*MplsTableDump) GetCrcString() string

func (*MplsTableDump) GetMessageName

func (*MplsTableDump) GetMessageName() string

func (*MplsTableDump) GetMessageType

func (*MplsTableDump) GetMessageType() api.MessageType

func (*MplsTableDump) Marshal

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

func (*MplsTableDump) Reset

func (m *MplsTableDump) Reset()

func (*MplsTableDump) Size

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

func (*MplsTableDump) Unmarshal

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

type MplsTunnel

type MplsTunnel struct {
	MtSwIfIndex   interface_types.InterfaceIndex `binapi:"interface_index,name=mt_sw_if_index" json:"mt_sw_if_index,omitempty"`
	MtTunnelIndex uint32                         `binapi:"u32,name=mt_tunnel_index" json:"mt_tunnel_index,omitempty"`
	MtL2Only      bool                           `binapi:"bool,name=mt_l2_only" json:"mt_l2_only,omitempty"`
	MtIsMulticast bool                           `binapi:"bool,name=mt_is_multicast" json:"mt_is_multicast,omitempty"`
	MtTag         string                         `binapi:"string[64],name=mt_tag" json:"mt_tag,omitempty"`
	MtNPaths      uint8                          `binapi:"u8,name=mt_n_paths" json:"-"`
	MtPaths       []fib_types.FibPath            `binapi:"fib_path[mt_n_paths],name=mt_paths" json:"mt_paths,omitempty"`
}

MplsTunnel defines type 'mpls_tunnel'.

type MplsTunnelAddDel

type MplsTunnelAddDel struct {
	MtIsAdd  bool       `binapi:"bool,name=mt_is_add,default=true" json:"mt_is_add,omitempty"`
	MtTunnel MplsTunnel `binapi:"mpls_tunnel,name=mt_tunnel" json:"mt_tunnel,omitempty"`
}

MplsTunnelAddDel defines message 'mpls_tunnel_add_del'.

func (*MplsTunnelAddDel) GetCrcString

func (*MplsTunnelAddDel) GetCrcString() string

func (*MplsTunnelAddDel) GetMessageName

func (*MplsTunnelAddDel) GetMessageName() string

func (*MplsTunnelAddDel) GetMessageType

func (*MplsTunnelAddDel) GetMessageType() api.MessageType

func (*MplsTunnelAddDel) Marshal

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

func (*MplsTunnelAddDel) Reset

func (m *MplsTunnelAddDel) Reset()

func (*MplsTunnelAddDel) Size

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

func (*MplsTunnelAddDel) Unmarshal

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

type MplsTunnelAddDelReply

type MplsTunnelAddDelReply 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"`
	TunnelIndex uint32                         `binapi:"u32,name=tunnel_index" json:"tunnel_index,omitempty"`
}

MplsTunnelAddDelReply defines message 'mpls_tunnel_add_del_reply'.

func (*MplsTunnelAddDelReply) GetCrcString

func (*MplsTunnelAddDelReply) GetCrcString() string

func (*MplsTunnelAddDelReply) GetMessageName

func (*MplsTunnelAddDelReply) GetMessageName() string

func (*MplsTunnelAddDelReply) GetMessageType

func (*MplsTunnelAddDelReply) GetMessageType() api.MessageType

func (*MplsTunnelAddDelReply) Marshal

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

func (*MplsTunnelAddDelReply) Reset

func (m *MplsTunnelAddDelReply) Reset()

func (*MplsTunnelAddDelReply) Size

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

func (*MplsTunnelAddDelReply) Unmarshal

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

type MplsTunnelDetails

type MplsTunnelDetails struct {
	MtTunnel MplsTunnel `binapi:"mpls_tunnel,name=mt_tunnel" json:"mt_tunnel,omitempty"`
}

MplsTunnelDetails defines message 'mpls_tunnel_details'.

func (*MplsTunnelDetails) GetCrcString

func (*MplsTunnelDetails) GetCrcString() string

func (*MplsTunnelDetails) GetMessageName

func (*MplsTunnelDetails) GetMessageName() string

func (*MplsTunnelDetails) GetMessageType

func (*MplsTunnelDetails) GetMessageType() api.MessageType

func (*MplsTunnelDetails) Marshal

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

func (*MplsTunnelDetails) Reset

func (m *MplsTunnelDetails) Reset()

func (*MplsTunnelDetails) Size

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

func (*MplsTunnelDetails) Unmarshal

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

type MplsTunnelDump

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

MplsTunnelDump defines message 'mpls_tunnel_dump'.

func (*MplsTunnelDump) GetCrcString

func (*MplsTunnelDump) GetCrcString() string

func (*MplsTunnelDump) GetMessageName

func (*MplsTunnelDump) GetMessageName() string

func (*MplsTunnelDump) GetMessageType

func (*MplsTunnelDump) GetMessageType() api.MessageType

func (*MplsTunnelDump) Marshal

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

func (*MplsTunnelDump) Reset

func (m *MplsTunnelDump) Reset()

func (*MplsTunnelDump) Size

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

func (*MplsTunnelDump) Unmarshal

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

type RPCService

RPCService defines RPC service mpls.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

type RPCService_MplsRouteDumpClient

type RPCService_MplsRouteDumpClient interface {
	Recv() (*MplsRouteDetails, error)
	api.Stream
}

type RPCService_MplsTableDumpClient

type RPCService_MplsTableDumpClient interface {
	Recv() (*MplsTableDetails, error)
	api.Stream
}

type RPCService_MplsTunnelDumpClient

type RPCService_MplsTunnelDumpClient interface {
	Recv() (*MplsTunnelDetails, error)
	api.Stream
}

type SwInterfaceSetMplsEnable

type SwInterfaceSetMplsEnable struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Enable    bool                           `binapi:"bool,name=enable,default=true" json:"enable,omitempty"`
}

SwInterfaceSetMplsEnable defines message 'sw_interface_set_mpls_enable'.

func (*SwInterfaceSetMplsEnable) GetCrcString

func (*SwInterfaceSetMplsEnable) GetCrcString() string

func (*SwInterfaceSetMplsEnable) GetMessageName

func (*SwInterfaceSetMplsEnable) GetMessageName() string

func (*SwInterfaceSetMplsEnable) GetMessageType

func (*SwInterfaceSetMplsEnable) GetMessageType() api.MessageType

func (*SwInterfaceSetMplsEnable) Marshal

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

func (*SwInterfaceSetMplsEnable) Reset

func (m *SwInterfaceSetMplsEnable) Reset()

func (*SwInterfaceSetMplsEnable) Size

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

func (*SwInterfaceSetMplsEnable) Unmarshal

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

type SwInterfaceSetMplsEnableReply

type SwInterfaceSetMplsEnableReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

SwInterfaceSetMplsEnableReply defines message 'sw_interface_set_mpls_enable_reply'.

func (*SwInterfaceSetMplsEnableReply) GetCrcString

func (*SwInterfaceSetMplsEnableReply) GetCrcString() string

func (*SwInterfaceSetMplsEnableReply) GetMessageName

func (*SwInterfaceSetMplsEnableReply) GetMessageName() string

func (*SwInterfaceSetMplsEnableReply) GetMessageType

func (*SwInterfaceSetMplsEnableReply) GetMessageType() api.MessageType

func (*SwInterfaceSetMplsEnableReply) Marshal

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

func (*SwInterfaceSetMplsEnableReply) Reset

func (m *SwInterfaceSetMplsEnableReply) Reset()

func (*SwInterfaceSetMplsEnableReply) Size

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

func (*SwInterfaceSetMplsEnableReply) Unmarshal

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

Jump to

Keyboard shortcuts

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