Documentation ¶
Overview ¶
Package sr_mpls is a generated VPP binary API for 'sr_mpls' module.
It consists of:
10 messages 5 services
Index ¶
- Constants
- func AllMessages() []api.Message
- type RPCService
- type SrMplsPolicyAdd
- type SrMplsPolicyAddReply
- type SrMplsPolicyAssignEndpointColor
- type SrMplsPolicyAssignEndpointColorReply
- type SrMplsPolicyDel
- type SrMplsPolicyDelReply
- type SrMplsPolicyMod
- type SrMplsPolicyModReply
- type SrMplsSteeringAddDel
- type SrMplsSteeringAddDelReply
Constants ¶
const ( // ModuleName is the name of this module. ModuleName = "sr_mpls" // APIVersion is the API version of this module. APIVersion = "1.0.0" // VersionCrc is the CRC of this module. VersionCrc = 0xeee34faa )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface { SrMplsPolicyAdd(ctx context.Context, in *SrMplsPolicyAdd) (*SrMplsPolicyAddReply, error) SrMplsPolicyAssignEndpointColor(ctx context.Context, in *SrMplsPolicyAssignEndpointColor) (*SrMplsPolicyAssignEndpointColorReply, error) SrMplsPolicyDel(ctx context.Context, in *SrMplsPolicyDel) (*SrMplsPolicyDelReply, error) SrMplsPolicyMod(ctx context.Context, in *SrMplsPolicyMod) (*SrMplsPolicyModReply, error) SrMplsSteeringAddDel(ctx context.Context, in *SrMplsSteeringAddDel) (*SrMplsSteeringAddDelReply, error) }
RPCService represents RPC service API for sr_mpls module.
func NewServiceClient ¶
func NewServiceClient(ch api.Channel) RPCService
type SrMplsPolicyAdd ¶
type SrMplsPolicyAdd struct { Bsid uint32 Weight uint32 Type uint8 NSegments uint8 `struc:"sizeof=Segments"` Segments []uint32 }
SrMplsPolicyAdd represents VPP binary API message 'sr_mpls_policy_add'.
func (*SrMplsPolicyAdd) GetCrcString ¶
func (*SrMplsPolicyAdd) GetCrcString() string
func (*SrMplsPolicyAdd) GetMessageName ¶
func (*SrMplsPolicyAdd) GetMessageName() string
func (*SrMplsPolicyAdd) GetMessageType ¶
func (*SrMplsPolicyAdd) GetMessageType() api.MessageType
func (*SrMplsPolicyAdd) Reset ¶
func (m *SrMplsPolicyAdd) Reset()
type SrMplsPolicyAddReply ¶
type SrMplsPolicyAddReply struct {
Retval int32
}
SrMplsPolicyAddReply represents VPP binary API message 'sr_mpls_policy_add_reply'.
func (*SrMplsPolicyAddReply) GetCrcString ¶
func (*SrMplsPolicyAddReply) GetCrcString() string
func (*SrMplsPolicyAddReply) GetMessageName ¶
func (*SrMplsPolicyAddReply) GetMessageName() string
func (*SrMplsPolicyAddReply) GetMessageType ¶
func (*SrMplsPolicyAddReply) GetMessageType() api.MessageType
func (*SrMplsPolicyAddReply) Reset ¶
func (m *SrMplsPolicyAddReply) Reset()
type SrMplsPolicyAssignEndpointColor ¶
type SrMplsPolicyAssignEndpointColor struct { Bsid uint32 Endpoint []byte `struc:"[16]byte"` EndpointType uint8 Color uint32 }
SrMplsPolicyAssignEndpointColor represents VPP binary API message 'sr_mpls_policy_assign_endpoint_color'.
func (*SrMplsPolicyAssignEndpointColor) GetCrcString ¶
func (*SrMplsPolicyAssignEndpointColor) GetCrcString() string
func (*SrMplsPolicyAssignEndpointColor) GetMessageName ¶
func (*SrMplsPolicyAssignEndpointColor) GetMessageName() string
func (*SrMplsPolicyAssignEndpointColor) GetMessageType ¶
func (*SrMplsPolicyAssignEndpointColor) GetMessageType() api.MessageType
func (*SrMplsPolicyAssignEndpointColor) Reset ¶
func (m *SrMplsPolicyAssignEndpointColor) Reset()
type SrMplsPolicyAssignEndpointColorReply ¶
type SrMplsPolicyAssignEndpointColorReply struct {
Retval int32
}
SrMplsPolicyAssignEndpointColorReply represents VPP binary API message 'sr_mpls_policy_assign_endpoint_color_reply'.
func (*SrMplsPolicyAssignEndpointColorReply) GetCrcString ¶
func (*SrMplsPolicyAssignEndpointColorReply) GetCrcString() string
func (*SrMplsPolicyAssignEndpointColorReply) GetMessageName ¶
func (*SrMplsPolicyAssignEndpointColorReply) GetMessageName() string
func (*SrMplsPolicyAssignEndpointColorReply) GetMessageType ¶
func (*SrMplsPolicyAssignEndpointColorReply) GetMessageType() api.MessageType
func (*SrMplsPolicyAssignEndpointColorReply) Reset ¶
func (m *SrMplsPolicyAssignEndpointColorReply) Reset()
type SrMplsPolicyDel ¶
type SrMplsPolicyDel struct {
Bsid uint32
}
SrMplsPolicyDel represents VPP binary API message 'sr_mpls_policy_del'.
func (*SrMplsPolicyDel) GetCrcString ¶
func (*SrMplsPolicyDel) GetCrcString() string
func (*SrMplsPolicyDel) GetMessageName ¶
func (*SrMplsPolicyDel) GetMessageName() string
func (*SrMplsPolicyDel) GetMessageType ¶
func (*SrMplsPolicyDel) GetMessageType() api.MessageType
func (*SrMplsPolicyDel) Reset ¶
func (m *SrMplsPolicyDel) Reset()
type SrMplsPolicyDelReply ¶
type SrMplsPolicyDelReply struct {
Retval int32
}
SrMplsPolicyDelReply represents VPP binary API message 'sr_mpls_policy_del_reply'.
func (*SrMplsPolicyDelReply) GetCrcString ¶
func (*SrMplsPolicyDelReply) GetCrcString() string
func (*SrMplsPolicyDelReply) GetMessageName ¶
func (*SrMplsPolicyDelReply) GetMessageName() string
func (*SrMplsPolicyDelReply) GetMessageType ¶
func (*SrMplsPolicyDelReply) GetMessageType() api.MessageType
func (*SrMplsPolicyDelReply) Reset ¶
func (m *SrMplsPolicyDelReply) Reset()
type SrMplsPolicyMod ¶
type SrMplsPolicyMod struct { Bsid uint32 Operation uint8 SlIndex uint32 Weight uint32 NSegments uint8 `struc:"sizeof=Segments"` Segments []uint32 }
SrMplsPolicyMod represents VPP binary API message 'sr_mpls_policy_mod'.
func (*SrMplsPolicyMod) GetCrcString ¶
func (*SrMplsPolicyMod) GetCrcString() string
func (*SrMplsPolicyMod) GetMessageName ¶
func (*SrMplsPolicyMod) GetMessageName() string
func (*SrMplsPolicyMod) GetMessageType ¶
func (*SrMplsPolicyMod) GetMessageType() api.MessageType
func (*SrMplsPolicyMod) Reset ¶
func (m *SrMplsPolicyMod) Reset()
type SrMplsPolicyModReply ¶
type SrMplsPolicyModReply struct {
Retval int32
}
SrMplsPolicyModReply represents VPP binary API message 'sr_mpls_policy_mod_reply'.
func (*SrMplsPolicyModReply) GetCrcString ¶
func (*SrMplsPolicyModReply) GetCrcString() string
func (*SrMplsPolicyModReply) GetMessageName ¶
func (*SrMplsPolicyModReply) GetMessageName() string
func (*SrMplsPolicyModReply) GetMessageType ¶
func (*SrMplsPolicyModReply) GetMessageType() api.MessageType
func (*SrMplsPolicyModReply) Reset ¶
func (m *SrMplsPolicyModReply) Reset()
type SrMplsSteeringAddDel ¶
type SrMplsSteeringAddDel struct { IsDel uint8 Bsid uint32 TableID uint32 PrefixAddr []byte `struc:"[16]byte"` MaskWidth uint32 TrafficType uint8 NextHop []byte `struc:"[16]byte"` NhType uint8 Color uint32 CoBits uint8 VPNLabel uint32 }
SrMplsSteeringAddDel represents VPP binary API message 'sr_mpls_steering_add_del'.
func (*SrMplsSteeringAddDel) GetCrcString ¶
func (*SrMplsSteeringAddDel) GetCrcString() string
func (*SrMplsSteeringAddDel) GetMessageName ¶
func (*SrMplsSteeringAddDel) GetMessageName() string
func (*SrMplsSteeringAddDel) GetMessageType ¶
func (*SrMplsSteeringAddDel) GetMessageType() api.MessageType
func (*SrMplsSteeringAddDel) Reset ¶
func (m *SrMplsSteeringAddDel) Reset()
type SrMplsSteeringAddDelReply ¶
type SrMplsSteeringAddDelReply struct {
Retval int32
}
SrMplsSteeringAddDelReply represents VPP binary API message 'sr_mpls_steering_add_del_reply'.
func (*SrMplsSteeringAddDelReply) GetCrcString ¶
func (*SrMplsSteeringAddDelReply) GetCrcString() string
func (*SrMplsSteeringAddDelReply) GetMessageName ¶
func (*SrMplsSteeringAddDelReply) GetMessageName() string
func (*SrMplsSteeringAddDelReply) GetMessageType ¶
func (*SrMplsSteeringAddDelReply) GetMessageType() api.MessageType
func (*SrMplsSteeringAddDelReply) Reset ¶
func (m *SrMplsSteeringAddDelReply) Reset()