Documentation ¶
Overview ¶
Package mpls contains generated bindings for API file mpls.api.
Contents: - 3 structs - 18 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type MplsIPBindUnbind
- func (*MplsIPBindUnbind) GetCrcString() string
- func (*MplsIPBindUnbind) GetMessageName() string
- func (*MplsIPBindUnbind) GetMessageType() api.MessageType
- func (m *MplsIPBindUnbind) Marshal(b []byte) ([]byte, error)
- func (m *MplsIPBindUnbind) Reset()
- func (m *MplsIPBindUnbind) Size() (size int)
- func (m *MplsIPBindUnbind) Unmarshal(b []byte) error
- type MplsIPBindUnbindReply
- func (*MplsIPBindUnbindReply) GetCrcString() string
- func (*MplsIPBindUnbindReply) GetMessageName() string
- func (*MplsIPBindUnbindReply) GetMessageType() api.MessageType
- func (m *MplsIPBindUnbindReply) Marshal(b []byte) ([]byte, error)
- func (m *MplsIPBindUnbindReply) Reset()
- func (m *MplsIPBindUnbindReply) Size() (size int)
- func (m *MplsIPBindUnbindReply) Unmarshal(b []byte) error
- type MplsInterfaceDetails
- func (*MplsInterfaceDetails) GetCrcString() string
- func (*MplsInterfaceDetails) GetMessageName() string
- func (*MplsInterfaceDetails) GetMessageType() api.MessageType
- func (m *MplsInterfaceDetails) Marshal(b []byte) ([]byte, error)
- func (m *MplsInterfaceDetails) Reset()
- func (m *MplsInterfaceDetails) Size() (size int)
- func (m *MplsInterfaceDetails) Unmarshal(b []byte) error
- type MplsInterfaceDump
- func (*MplsInterfaceDump) GetCrcString() string
- func (*MplsInterfaceDump) GetMessageName() string
- func (*MplsInterfaceDump) GetMessageType() api.MessageType
- func (m *MplsInterfaceDump) Marshal(b []byte) ([]byte, error)
- func (m *MplsInterfaceDump) Reset()
- func (m *MplsInterfaceDump) Size() (size int)
- func (m *MplsInterfaceDump) Unmarshal(b []byte) error
- type MplsRoute
- type MplsRouteAddDel
- func (*MplsRouteAddDel) GetCrcString() string
- func (*MplsRouteAddDel) GetMessageName() string
- func (*MplsRouteAddDel) GetMessageType() api.MessageType
- func (m *MplsRouteAddDel) Marshal(b []byte) ([]byte, error)
- func (m *MplsRouteAddDel) Reset()
- func (m *MplsRouteAddDel) Size() (size int)
- func (m *MplsRouteAddDel) Unmarshal(b []byte) error
- type MplsRouteAddDelReply
- func (*MplsRouteAddDelReply) GetCrcString() string
- func (*MplsRouteAddDelReply) GetMessageName() string
- func (*MplsRouteAddDelReply) GetMessageType() api.MessageType
- func (m *MplsRouteAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *MplsRouteAddDelReply) Reset()
- func (m *MplsRouteAddDelReply) Size() (size int)
- func (m *MplsRouteAddDelReply) Unmarshal(b []byte) error
- type MplsRouteDetails
- func (*MplsRouteDetails) GetCrcString() string
- func (*MplsRouteDetails) GetMessageName() string
- func (*MplsRouteDetails) GetMessageType() api.MessageType
- func (m *MplsRouteDetails) Marshal(b []byte) ([]byte, error)
- func (m *MplsRouteDetails) Reset()
- func (m *MplsRouteDetails) Size() (size int)
- func (m *MplsRouteDetails) Unmarshal(b []byte) error
- type MplsRouteDump
- func (*MplsRouteDump) GetCrcString() string
- func (*MplsRouteDump) GetMessageName() string
- func (*MplsRouteDump) GetMessageType() api.MessageType
- func (m *MplsRouteDump) Marshal(b []byte) ([]byte, error)
- func (m *MplsRouteDump) Reset()
- func (m *MplsRouteDump) Size() (size int)
- func (m *MplsRouteDump) Unmarshal(b []byte) error
- type MplsTable
- type MplsTableAddDel
- func (*MplsTableAddDel) GetCrcString() string
- func (*MplsTableAddDel) GetMessageName() string
- func (*MplsTableAddDel) GetMessageType() api.MessageType
- func (m *MplsTableAddDel) Marshal(b []byte) ([]byte, error)
- func (m *MplsTableAddDel) Reset()
- func (m *MplsTableAddDel) Size() (size int)
- func (m *MplsTableAddDel) Unmarshal(b []byte) error
- type MplsTableAddDelReply
- func (*MplsTableAddDelReply) GetCrcString() string
- func (*MplsTableAddDelReply) GetMessageName() string
- func (*MplsTableAddDelReply) GetMessageType() api.MessageType
- func (m *MplsTableAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *MplsTableAddDelReply) Reset()
- func (m *MplsTableAddDelReply) Size() (size int)
- func (m *MplsTableAddDelReply) Unmarshal(b []byte) error
- type MplsTableDetails
- func (*MplsTableDetails) GetCrcString() string
- func (*MplsTableDetails) GetMessageName() string
- func (*MplsTableDetails) GetMessageType() api.MessageType
- func (m *MplsTableDetails) Marshal(b []byte) ([]byte, error)
- func (m *MplsTableDetails) Reset()
- func (m *MplsTableDetails) Size() (size int)
- func (m *MplsTableDetails) Unmarshal(b []byte) error
- type MplsTableDump
- func (*MplsTableDump) GetCrcString() string
- func (*MplsTableDump) GetMessageName() string
- func (*MplsTableDump) GetMessageType() api.MessageType
- func (m *MplsTableDump) Marshal(b []byte) ([]byte, error)
- func (m *MplsTableDump) Reset()
- func (m *MplsTableDump) Size() (size int)
- func (m *MplsTableDump) Unmarshal(b []byte) error
- type MplsTunnel
- type MplsTunnelAddDel
- func (*MplsTunnelAddDel) GetCrcString() string
- func (*MplsTunnelAddDel) GetMessageName() string
- func (*MplsTunnelAddDel) GetMessageType() api.MessageType
- func (m *MplsTunnelAddDel) Marshal(b []byte) ([]byte, error)
- func (m *MplsTunnelAddDel) Reset()
- func (m *MplsTunnelAddDel) Size() (size int)
- func (m *MplsTunnelAddDel) Unmarshal(b []byte) error
- type MplsTunnelAddDelReply
- func (*MplsTunnelAddDelReply) GetCrcString() string
- func (*MplsTunnelAddDelReply) GetMessageName() string
- func (*MplsTunnelAddDelReply) GetMessageType() api.MessageType
- func (m *MplsTunnelAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *MplsTunnelAddDelReply) Reset()
- func (m *MplsTunnelAddDelReply) Size() (size int)
- func (m *MplsTunnelAddDelReply) Unmarshal(b []byte) error
- type MplsTunnelDetails
- func (*MplsTunnelDetails) GetCrcString() string
- func (*MplsTunnelDetails) GetMessageName() string
- func (*MplsTunnelDetails) GetMessageType() api.MessageType
- func (m *MplsTunnelDetails) Marshal(b []byte) ([]byte, error)
- func (m *MplsTunnelDetails) Reset()
- func (m *MplsTunnelDetails) Size() (size int)
- func (m *MplsTunnelDetails) Unmarshal(b []byte) error
- type MplsTunnelDump
- func (*MplsTunnelDump) GetCrcString() string
- func (*MplsTunnelDump) GetMessageName() string
- func (*MplsTunnelDump) GetMessageType() api.MessageType
- func (m *MplsTunnelDump) Marshal(b []byte) ([]byte, error)
- func (m *MplsTunnelDump) Reset()
- func (m *MplsTunnelDump) Size() (size int)
- func (m *MplsTunnelDump) Unmarshal(b []byte) error
- type RPCService
- type RPCService_MplsInterfaceDumpClient
- type RPCService_MplsRouteDumpClient
- type RPCService_MplsTableDumpClient
- type RPCService_MplsTunnelDumpClient
- type SwInterfaceSetMplsEnable
- func (*SwInterfaceSetMplsEnable) GetCrcString() string
- func (*SwInterfaceSetMplsEnable) GetMessageName() string
- func (*SwInterfaceSetMplsEnable) GetMessageType() api.MessageType
- func (m *SwInterfaceSetMplsEnable) Marshal(b []byte) ([]byte, error)
- func (m *SwInterfaceSetMplsEnable) Reset()
- func (m *SwInterfaceSetMplsEnable) Size() (size int)
- func (m *SwInterfaceSetMplsEnable) Unmarshal(b []byte) error
- type SwInterfaceSetMplsEnableReply
- func (*SwInterfaceSetMplsEnableReply) GetCrcString() string
- func (*SwInterfaceSetMplsEnableReply) GetMessageName() string
- func (*SwInterfaceSetMplsEnableReply) GetMessageType() api.MessageType
- func (m *SwInterfaceSetMplsEnableReply) Marshal(b []byte) ([]byte, error)
- func (m *SwInterfaceSetMplsEnableReply) Reset()
- func (m *SwInterfaceSetMplsEnableReply) Size() (size int)
- func (m *SwInterfaceSetMplsEnableReply) Unmarshal(b []byte) error
Constants ¶
const ( APIFile = "mpls" APIVersion = "1.1.1" VersionCrc = 0xdf2aeee2 )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
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"` }
Bind/Unbind an MPLS local label to an IP prefix. i.e. create
a per-prefix label entry. - mb_mpls_table_id - The MPLS table-id the MPLS entry will be added in - mb_label - The MPLS label value to bind - mb_ip_table_id - The IP table-id of the IP prefix to bind to. - mb_is_bind - Bind or unbind - mb_is_ip4 - The prefix to bind to is IPv4 - mb_prefix - IP prefix
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) 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 MplsInterfaceDetails ¶
type MplsInterfaceDetails struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}
mpls enabled interface details MplsInterfaceDetails defines message 'mpls_interface_details'.
func (*MplsInterfaceDetails) GetCrcString ¶
func (*MplsInterfaceDetails) GetCrcString() string
func (*MplsInterfaceDetails) GetMessageName ¶
func (*MplsInterfaceDetails) GetMessageName() string
func (*MplsInterfaceDetails) GetMessageType ¶
func (*MplsInterfaceDetails) GetMessageType() api.MessageType
func (*MplsInterfaceDetails) Marshal ¶
func (m *MplsInterfaceDetails) Marshal(b []byte) ([]byte, error)
func (*MplsInterfaceDetails) Reset ¶
func (m *MplsInterfaceDetails) Reset()
func (*MplsInterfaceDetails) Size ¶
func (m *MplsInterfaceDetails) Size() (size int)
func (*MplsInterfaceDetails) Unmarshal ¶
func (m *MplsInterfaceDetails) Unmarshal(b []byte) error
type MplsInterfaceDump ¶
type MplsInterfaceDump struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
}
Dump mpls enabled interface(s)
- sw_if_index - sw_if_index of a specific interface, or -1 (default) to return all MPLS enabled interfaces
MplsInterfaceDump defines message 'mpls_interface_dump'.
func (*MplsInterfaceDump) GetCrcString ¶
func (*MplsInterfaceDump) GetCrcString() string
func (*MplsInterfaceDump) GetMessageName ¶
func (*MplsInterfaceDump) GetMessageName() string
func (*MplsInterfaceDump) GetMessageType ¶
func (*MplsInterfaceDump) GetMessageType() api.MessageType
func (*MplsInterfaceDump) Reset ¶
func (m *MplsInterfaceDump) Reset()
func (*MplsInterfaceDump) Size ¶
func (m *MplsInterfaceDump) Size() (size int)
func (*MplsInterfaceDump) Unmarshal ¶
func (m *MplsInterfaceDump) 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"` }
MPLS Route Add / del route
- mr_table_id - The MPLS table-id the route is added in
- mr_is_add - Is this a route add or delete
- mr_is_multipath - Is this route update a multipath - i.e. is this a path addition to an existing route
- mr_route - The Route
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) 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"`
}
mpls FIB table response
- table_id - MPLS fib table id
- s_bit - End-of-stack bit
- label - MPLS label value
- count - the number of fib_path in path
- path - array of of fib_path structures
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) 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"`
}
Dump MPLS fib table 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) 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"` }
MPLS Route Add / del route
- mt_table_id - The MPLS table-id the route is added in
- mt_is_add - Is this a route add or delete
- mt_name - A client provided name/tag for the table. If this is not set by the client, then VPP will generate something meaningful.
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) 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) 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{}
Dump MPLS fib table 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) 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) 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"` }
Reply for MPLS tunnel add / del request
- retval - return code
- sw_if_index - SW interface index of the tunnel created
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"`
}
mpls tunnel details 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) 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"`
}
Dump mpls eth tunnel table
- sw_if_index - sw_if_index of the MPLS tunnel (as returned from the create)
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) 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 ¶
type RPCService interface { MplsInterfaceDump(ctx context.Context, in *MplsInterfaceDump) (RPCService_MplsInterfaceDumpClient, error) MplsIPBindUnbind(ctx context.Context, in *MplsIPBindUnbind) (*MplsIPBindUnbindReply, error) MplsRouteAddDel(ctx context.Context, in *MplsRouteAddDel) (*MplsRouteAddDelReply, error) MplsRouteDump(ctx context.Context, in *MplsRouteDump) (RPCService_MplsRouteDumpClient, error) MplsTableAddDel(ctx context.Context, in *MplsTableAddDel) (*MplsTableAddDelReply, error) MplsTableDump(ctx context.Context, in *MplsTableDump) (RPCService_MplsTableDumpClient, error) MplsTunnelAddDel(ctx context.Context, in *MplsTunnelAddDel) (*MplsTunnelAddDelReply, error) MplsTunnelDump(ctx context.Context, in *MplsTunnelDump) (RPCService_MplsTunnelDumpClient, error) SwInterfaceSetMplsEnable(ctx context.Context, in *SwInterfaceSetMplsEnable) (*SwInterfaceSetMplsEnableReply, error) }
RPCService defines RPC service mpls.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_MplsInterfaceDumpClient ¶
type RPCService_MplsInterfaceDumpClient interface { Recv() (*MplsInterfaceDetails, error) api.Stream }
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"` }
Enable or Disable MPLS on and interface
- sw_if_index - index of the interface
- enable - if non-zero enable, else disable
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