Documentation ¶
Overview ¶
Package sr is a generated VPP binary API for 'sr' module.
It consists of:
3 types 18 messages 9 services
Index ¶
- Constants
- func AllMessages() []api.Message
- type RPCService
- type RPCService_DumpSrLocalsidsClient
- type RPCService_DumpSrPoliciesClient
- type RPCService_DumpSrSteeringPolClient
- type SrIP6Address
- type SrLocalsidAddDel
- type SrLocalsidAddDelReply
- type SrLocalsidsDetails
- type SrLocalsidsDump
- type SrPoliciesDetails
- type SrPoliciesDump
- type SrPolicyAdd
- type SrPolicyAddReply
- type SrPolicyDel
- type SrPolicyDelReply
- type SrPolicyMod
- type SrPolicyModReply
- type SrSetEncapSource
- type SrSetEncapSourceReply
- type SrSteeringAddDel
- type SrSteeringAddDelReply
- type SrSteeringPolDetails
- type SrSteeringPolDump
- type Srv6Sid
- type Srv6SidList
Constants ¶
const ( // ModuleName is the name of this module. ModuleName = "sr" // APIVersion is the API version of this module. APIVersion = "1.2.0" // VersionCrc is the CRC of this module. VersionCrc = 0xaa3993c3 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RPCService ¶
type RPCService interface { DumpSrLocalsids(ctx context.Context, in *SrLocalsidsDump) (RPCService_DumpSrLocalsidsClient, error) DumpSrPolicies(ctx context.Context, in *SrPoliciesDump) (RPCService_DumpSrPoliciesClient, error) DumpSrSteeringPol(ctx context.Context, in *SrSteeringPolDump) (RPCService_DumpSrSteeringPolClient, error) SrLocalsidAddDel(ctx context.Context, in *SrLocalsidAddDel) (*SrLocalsidAddDelReply, error) SrPolicyAdd(ctx context.Context, in *SrPolicyAdd) (*SrPolicyAddReply, error) SrPolicyDel(ctx context.Context, in *SrPolicyDel) (*SrPolicyDelReply, error) SrPolicyMod(ctx context.Context, in *SrPolicyMod) (*SrPolicyModReply, error) SrSetEncapSource(ctx context.Context, in *SrSetEncapSource) (*SrSetEncapSourceReply, error) SrSteeringAddDel(ctx context.Context, in *SrSteeringAddDel) (*SrSteeringAddDelReply, error) }
RPCService represents RPC service API for sr module.
func NewServiceClient ¶
func NewServiceClient(ch api.Channel) RPCService
type RPCService_DumpSrLocalsidsClient ¶
type RPCService_DumpSrLocalsidsClient interface {
Recv() (*SrLocalsidsDetails, error)
}
type RPCService_DumpSrPoliciesClient ¶
type RPCService_DumpSrPoliciesClient interface {
Recv() (*SrPoliciesDetails, error)
}
type RPCService_DumpSrSteeringPolClient ¶
type RPCService_DumpSrSteeringPolClient interface {
Recv() (*SrSteeringPolDetails, error)
}
type SrIP6Address ¶
type SrIP6Address struct {
Data []byte `struc:"[16]byte"`
}
SrIP6Address represents VPP binary API type 'sr_ip6_address'.
func (*SrIP6Address) GetTypeName ¶
func (*SrIP6Address) GetTypeName() string
type SrLocalsidAddDel ¶
type SrLocalsidAddDel struct { IsDel uint8 Localsid Srv6Sid EndPsp uint8 Behavior uint8 SwIfIndex uint32 VlanIndex uint32 FibTable uint32 NhAddr6 []byte `struc:"[16]byte"` NhAddr4 []byte `struc:"[4]byte"` }
SrLocalsidAddDel represents VPP binary API message 'sr_localsid_add_del'.
func (*SrLocalsidAddDel) GetCrcString ¶
func (*SrLocalsidAddDel) GetCrcString() string
func (*SrLocalsidAddDel) GetMessageName ¶
func (*SrLocalsidAddDel) GetMessageName() string
func (*SrLocalsidAddDel) GetMessageType ¶
func (*SrLocalsidAddDel) GetMessageType() api.MessageType
func (*SrLocalsidAddDel) Reset ¶
func (m *SrLocalsidAddDel) Reset()
type SrLocalsidAddDelReply ¶
type SrLocalsidAddDelReply struct {
Retval int32
}
SrLocalsidAddDelReply represents VPP binary API message 'sr_localsid_add_del_reply'.
func (*SrLocalsidAddDelReply) GetCrcString ¶
func (*SrLocalsidAddDelReply) GetCrcString() string
func (*SrLocalsidAddDelReply) GetMessageName ¶
func (*SrLocalsidAddDelReply) GetMessageName() string
func (*SrLocalsidAddDelReply) GetMessageType ¶
func (*SrLocalsidAddDelReply) GetMessageType() api.MessageType
func (*SrLocalsidAddDelReply) Reset ¶
func (m *SrLocalsidAddDelReply) Reset()
type SrLocalsidsDetails ¶
type SrLocalsidsDetails struct { Addr Srv6Sid EndPsp uint8 Behavior uint16 FibTable uint32 VlanIndex uint32 XconnectNhAddr6 []byte `struc:"[16]byte"` XconnectNhAddr4 []byte `struc:"[4]byte"` XconnectIfaceOrVrfTable uint32 }
SrLocalsidsDetails represents VPP binary API message 'sr_localsids_details'.
func (*SrLocalsidsDetails) GetCrcString ¶
func (*SrLocalsidsDetails) GetCrcString() string
func (*SrLocalsidsDetails) GetMessageName ¶
func (*SrLocalsidsDetails) GetMessageName() string
func (*SrLocalsidsDetails) GetMessageType ¶
func (*SrLocalsidsDetails) GetMessageType() api.MessageType
func (*SrLocalsidsDetails) Reset ¶
func (m *SrLocalsidsDetails) Reset()
type SrLocalsidsDump ¶
type SrLocalsidsDump struct{}
SrLocalsidsDump represents VPP binary API message 'sr_localsids_dump'.
func (*SrLocalsidsDump) GetCrcString ¶
func (*SrLocalsidsDump) GetCrcString() string
func (*SrLocalsidsDump) GetMessageName ¶
func (*SrLocalsidsDump) GetMessageName() string
func (*SrLocalsidsDump) GetMessageType ¶
func (*SrLocalsidsDump) GetMessageType() api.MessageType
func (*SrLocalsidsDump) Reset ¶
func (m *SrLocalsidsDump) Reset()
type SrPoliciesDetails ¶
type SrPoliciesDetails struct { Bsid Srv6Sid Type uint8 IsEncap uint8 FibTable uint32 NumSidLists uint8 `struc:"sizeof=SidLists"` SidLists []Srv6SidList }
SrPoliciesDetails represents VPP binary API message 'sr_policies_details'.
func (*SrPoliciesDetails) GetCrcString ¶
func (*SrPoliciesDetails) GetCrcString() string
func (*SrPoliciesDetails) GetMessageName ¶
func (*SrPoliciesDetails) GetMessageName() string
func (*SrPoliciesDetails) GetMessageType ¶
func (*SrPoliciesDetails) GetMessageType() api.MessageType
func (*SrPoliciesDetails) Reset ¶
func (m *SrPoliciesDetails) Reset()
type SrPoliciesDump ¶
type SrPoliciesDump struct{}
SrPoliciesDump represents VPP binary API message 'sr_policies_dump'.
func (*SrPoliciesDump) GetCrcString ¶
func (*SrPoliciesDump) GetCrcString() string
func (*SrPoliciesDump) GetMessageName ¶
func (*SrPoliciesDump) GetMessageName() string
func (*SrPoliciesDump) GetMessageType ¶
func (*SrPoliciesDump) GetMessageType() api.MessageType
func (*SrPoliciesDump) Reset ¶
func (m *SrPoliciesDump) Reset()
type SrPolicyAdd ¶
type SrPolicyAdd struct { BsidAddr []byte `struc:"[16]byte"` Weight uint32 IsEncap uint8 Type uint8 FibTable uint32 Sids Srv6SidList }
SrPolicyAdd represents VPP binary API message 'sr_policy_add'.
func (*SrPolicyAdd) GetCrcString ¶
func (*SrPolicyAdd) GetCrcString() string
func (*SrPolicyAdd) GetMessageName ¶
func (*SrPolicyAdd) GetMessageName() string
func (*SrPolicyAdd) GetMessageType ¶
func (*SrPolicyAdd) GetMessageType() api.MessageType
func (*SrPolicyAdd) Reset ¶
func (m *SrPolicyAdd) Reset()
type SrPolicyAddReply ¶
type SrPolicyAddReply struct {
Retval int32
}
SrPolicyAddReply represents VPP binary API message 'sr_policy_add_reply'.
func (*SrPolicyAddReply) GetCrcString ¶
func (*SrPolicyAddReply) GetCrcString() string
func (*SrPolicyAddReply) GetMessageName ¶
func (*SrPolicyAddReply) GetMessageName() string
func (*SrPolicyAddReply) GetMessageType ¶
func (*SrPolicyAddReply) GetMessageType() api.MessageType
func (*SrPolicyAddReply) Reset ¶
func (m *SrPolicyAddReply) Reset()
type SrPolicyDel ¶
SrPolicyDel represents VPP binary API message 'sr_policy_del'.
func (*SrPolicyDel) GetCrcString ¶
func (*SrPolicyDel) GetCrcString() string
func (*SrPolicyDel) GetMessageName ¶
func (*SrPolicyDel) GetMessageName() string
func (*SrPolicyDel) GetMessageType ¶
func (*SrPolicyDel) GetMessageType() api.MessageType
func (*SrPolicyDel) Reset ¶
func (m *SrPolicyDel) Reset()
type SrPolicyDelReply ¶
type SrPolicyDelReply struct {
Retval int32
}
SrPolicyDelReply represents VPP binary API message 'sr_policy_del_reply'.
func (*SrPolicyDelReply) GetCrcString ¶
func (*SrPolicyDelReply) GetCrcString() string
func (*SrPolicyDelReply) GetMessageName ¶
func (*SrPolicyDelReply) GetMessageName() string
func (*SrPolicyDelReply) GetMessageType ¶
func (*SrPolicyDelReply) GetMessageType() api.MessageType
func (*SrPolicyDelReply) Reset ¶
func (m *SrPolicyDelReply) Reset()
type SrPolicyMod ¶
type SrPolicyMod struct { BsidAddr []byte `struc:"[16]byte"` SrPolicyIndex uint32 FibTable uint32 Operation uint8 SlIndex uint32 Weight uint32 Sids Srv6SidList }
SrPolicyMod represents VPP binary API message 'sr_policy_mod'.
func (*SrPolicyMod) GetCrcString ¶
func (*SrPolicyMod) GetCrcString() string
func (*SrPolicyMod) GetMessageName ¶
func (*SrPolicyMod) GetMessageName() string
func (*SrPolicyMod) GetMessageType ¶
func (*SrPolicyMod) GetMessageType() api.MessageType
func (*SrPolicyMod) Reset ¶
func (m *SrPolicyMod) Reset()
type SrPolicyModReply ¶
type SrPolicyModReply struct {
Retval int32
}
SrPolicyModReply represents VPP binary API message 'sr_policy_mod_reply'.
func (*SrPolicyModReply) GetCrcString ¶
func (*SrPolicyModReply) GetCrcString() string
func (*SrPolicyModReply) GetMessageName ¶
func (*SrPolicyModReply) GetMessageName() string
func (*SrPolicyModReply) GetMessageType ¶
func (*SrPolicyModReply) GetMessageType() api.MessageType
func (*SrPolicyModReply) Reset ¶
func (m *SrPolicyModReply) Reset()
type SrSetEncapSource ¶
type SrSetEncapSource struct {
EncapsSource []byte `struc:"[16]byte"`
}
SrSetEncapSource represents VPP binary API message 'sr_set_encap_source'.
func (*SrSetEncapSource) GetCrcString ¶
func (*SrSetEncapSource) GetCrcString() string
func (*SrSetEncapSource) GetMessageName ¶
func (*SrSetEncapSource) GetMessageName() string
func (*SrSetEncapSource) GetMessageType ¶
func (*SrSetEncapSource) GetMessageType() api.MessageType
func (*SrSetEncapSource) Reset ¶
func (m *SrSetEncapSource) Reset()
type SrSetEncapSourceReply ¶
type SrSetEncapSourceReply struct {
Retval int32
}
SrSetEncapSourceReply represents VPP binary API message 'sr_set_encap_source_reply'.
func (*SrSetEncapSourceReply) GetCrcString ¶
func (*SrSetEncapSourceReply) GetCrcString() string
func (*SrSetEncapSourceReply) GetMessageName ¶
func (*SrSetEncapSourceReply) GetMessageName() string
func (*SrSetEncapSourceReply) GetMessageType ¶
func (*SrSetEncapSourceReply) GetMessageType() api.MessageType
func (*SrSetEncapSourceReply) Reset ¶
func (m *SrSetEncapSourceReply) Reset()
type SrSteeringAddDel ¶
type SrSteeringAddDel struct { IsDel uint8 BsidAddr []byte `struc:"[16]byte"` SrPolicyIndex uint32 TableID uint32 PrefixAddr []byte `struc:"[16]byte"` MaskWidth uint32 SwIfIndex uint32 TrafficType uint8 }
SrSteeringAddDel represents VPP binary API message 'sr_steering_add_del'.
func (*SrSteeringAddDel) GetCrcString ¶
func (*SrSteeringAddDel) GetCrcString() string
func (*SrSteeringAddDel) GetMessageName ¶
func (*SrSteeringAddDel) GetMessageName() string
func (*SrSteeringAddDel) GetMessageType ¶
func (*SrSteeringAddDel) GetMessageType() api.MessageType
func (*SrSteeringAddDel) Reset ¶
func (m *SrSteeringAddDel) Reset()
type SrSteeringAddDelReply ¶
type SrSteeringAddDelReply struct {
Retval int32
}
SrSteeringAddDelReply represents VPP binary API message 'sr_steering_add_del_reply'.
func (*SrSteeringAddDelReply) GetCrcString ¶
func (*SrSteeringAddDelReply) GetCrcString() string
func (*SrSteeringAddDelReply) GetMessageName ¶
func (*SrSteeringAddDelReply) GetMessageName() string
func (*SrSteeringAddDelReply) GetMessageType ¶
func (*SrSteeringAddDelReply) GetMessageType() api.MessageType
func (*SrSteeringAddDelReply) Reset ¶
func (m *SrSteeringAddDelReply) Reset()
type SrSteeringPolDetails ¶
type SrSteeringPolDetails struct { TrafficType uint8 FibTable uint32 PrefixAddr []byte `struc:"[16]byte"` MaskWidth uint32 SwIfIndex uint32 Bsid Srv6Sid }
SrSteeringPolDetails represents VPP binary API message 'sr_steering_pol_details'.
func (*SrSteeringPolDetails) GetCrcString ¶
func (*SrSteeringPolDetails) GetCrcString() string
func (*SrSteeringPolDetails) GetMessageName ¶
func (*SrSteeringPolDetails) GetMessageName() string
func (*SrSteeringPolDetails) GetMessageType ¶
func (*SrSteeringPolDetails) GetMessageType() api.MessageType
func (*SrSteeringPolDetails) Reset ¶
func (m *SrSteeringPolDetails) Reset()
type SrSteeringPolDump ¶
type SrSteeringPolDump struct{}
SrSteeringPolDump represents VPP binary API message 'sr_steering_pol_dump'.
func (*SrSteeringPolDump) GetCrcString ¶
func (*SrSteeringPolDump) GetCrcString() string
func (*SrSteeringPolDump) GetMessageName ¶
func (*SrSteeringPolDump) GetMessageName() string
func (*SrSteeringPolDump) GetMessageType ¶
func (*SrSteeringPolDump) GetMessageType() api.MessageType
func (*SrSteeringPolDump) Reset ¶
func (m *SrSteeringPolDump) Reset()