Documentation
¶
Overview ¶
Package sr_mobile contains generated bindings for API file sr_mobile.api.
Contents: - 4 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type RPCService
- type SrMobileLocalsidAddDel
- func (*SrMobileLocalsidAddDel) GetCrcString() string
- func (*SrMobileLocalsidAddDel) GetMessageName() string
- func (*SrMobileLocalsidAddDel) GetMessageType() api.MessageType
- func (m *SrMobileLocalsidAddDel) Marshal(b []byte) ([]byte, error)
- func (m *SrMobileLocalsidAddDel) Reset()
- func (m *SrMobileLocalsidAddDel) Size() (size int)
- func (m *SrMobileLocalsidAddDel) Unmarshal(b []byte) error
- type SrMobileLocalsidAddDelReply
- func (*SrMobileLocalsidAddDelReply) GetCrcString() string
- func (*SrMobileLocalsidAddDelReply) GetMessageName() string
- func (*SrMobileLocalsidAddDelReply) GetMessageType() api.MessageType
- func (m *SrMobileLocalsidAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *SrMobileLocalsidAddDelReply) Reset()
- func (m *SrMobileLocalsidAddDelReply) Size() (size int)
- func (m *SrMobileLocalsidAddDelReply) Unmarshal(b []byte) error
- type SrMobilePolicyAdd
- func (*SrMobilePolicyAdd) GetCrcString() string
- func (*SrMobilePolicyAdd) GetMessageName() string
- func (*SrMobilePolicyAdd) GetMessageType() api.MessageType
- func (m *SrMobilePolicyAdd) Marshal(b []byte) ([]byte, error)
- func (m *SrMobilePolicyAdd) Reset()
- func (m *SrMobilePolicyAdd) Size() (size int)
- func (m *SrMobilePolicyAdd) Unmarshal(b []byte) error
- type SrMobilePolicyAddReply
- func (*SrMobilePolicyAddReply) GetCrcString() string
- func (*SrMobilePolicyAddReply) GetMessageName() string
- func (*SrMobilePolicyAddReply) GetMessageType() api.MessageType
- func (m *SrMobilePolicyAddReply) Marshal(b []byte) ([]byte, error)
- func (m *SrMobilePolicyAddReply) Reset()
- func (m *SrMobilePolicyAddReply) Size() (size int)
- func (m *SrMobilePolicyAddReply) Unmarshal(b []byte) error
Constants ¶
View Source
const ( APIFile = "sr_mobile" APIVersion = "0.1.0" VersionCrc = 0x2a93fd77 )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface {
SrMobileLocalsidAddDel(ctx context.Context, in *SrMobileLocalsidAddDel) (*SrMobileLocalsidAddDelReply, error)
SrMobilePolicyAdd(ctx context.Context, in *SrMobilePolicyAdd) (*SrMobilePolicyAddReply, error)
}
RPCService defines RPC service sr_mobile.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type SrMobileLocalsidAddDel ¶
type SrMobileLocalsidAddDel struct {
IsDel bool `binapi:"bool,name=is_del,default=false" json:"is_del,omitempty"`
LocalsidPrefix ip_types.IP6Prefix `binapi:"ip6_prefix,name=localsid_prefix" json:"localsid_prefix,omitempty"`
Behavior string `binapi:"string[64],name=behavior" json:"behavior,omitempty"`
FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
LocalFibTable uint32 `binapi:"u32,name=local_fib_table" json:"local_fib_table,omitempty"`
DropIn bool `binapi:"bool,name=drop_in" json:"drop_in,omitempty"`
Nhtype sr_mobile_types.SrMobileNhtype `binapi:"sr_mobile_nhtype,name=nhtype" json:"nhtype,omitempty"`
SrPrefix ip_types.IP6Prefix `binapi:"ip6_prefix,name=sr_prefix" json:"sr_prefix,omitempty"`
V4srcAddr ip_types.IP4Address `binapi:"ip4_address,name=v4src_addr" json:"v4src_addr,omitempty"`
V4srcPosition uint32 `binapi:"u32,name=v4src_position" json:"v4src_position,omitempty"`
}
IPv6 SR for Mobile LocalSID add/del request
- is_del - Boolean of whether its a delete instruction
- localsid_prefix - IPv6 address of the localsid
- behavior - the behavior of the SR policy.
- fib_table - FIB table in which we should install the localsid entry
- local_fib_table - lookup and forward GTP-U packet based on outer IP destination address. optional
- drop_in - that reconverts to GTPv1 mode. optional
- nhtype - next-header type. optional.
- sr_prefix - v6 src ip encoding prefix.optional.
- v4src_position - bit position where IPv4 src address embedded. optional.
SrMobileLocalsidAddDel defines message 'sr_mobile_localsid_add_del'.
func (*SrMobileLocalsidAddDel) GetCrcString ¶
func (*SrMobileLocalsidAddDel) GetCrcString() string
func (*SrMobileLocalsidAddDel) GetMessageName ¶
func (*SrMobileLocalsidAddDel) GetMessageName() string
func (*SrMobileLocalsidAddDel) GetMessageType ¶
func (*SrMobileLocalsidAddDel) GetMessageType() api.MessageType
func (*SrMobileLocalsidAddDel) Marshal ¶
func (m *SrMobileLocalsidAddDel) Marshal(b []byte) ([]byte, error)
func (*SrMobileLocalsidAddDel) Reset ¶
func (m *SrMobileLocalsidAddDel) Reset()
func (*SrMobileLocalsidAddDel) Size ¶
func (m *SrMobileLocalsidAddDel) Size() (size int)
func (*SrMobileLocalsidAddDel) Unmarshal ¶
func (m *SrMobileLocalsidAddDel) Unmarshal(b []byte) error
type SrMobileLocalsidAddDelReply ¶
type SrMobileLocalsidAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrMobileLocalsidAddDelReply defines message 'sr_mobile_localsid_add_del_reply'.
func (*SrMobileLocalsidAddDelReply) GetCrcString ¶
func (*SrMobileLocalsidAddDelReply) GetCrcString() string
func (*SrMobileLocalsidAddDelReply) GetMessageName ¶
func (*SrMobileLocalsidAddDelReply) GetMessageName() string
func (*SrMobileLocalsidAddDelReply) GetMessageType ¶
func (*SrMobileLocalsidAddDelReply) GetMessageType() api.MessageType
func (*SrMobileLocalsidAddDelReply) Marshal ¶
func (m *SrMobileLocalsidAddDelReply) Marshal(b []byte) ([]byte, error)
func (*SrMobileLocalsidAddDelReply) Reset ¶
func (m *SrMobileLocalsidAddDelReply) Reset()
func (*SrMobileLocalsidAddDelReply) Size ¶
func (m *SrMobileLocalsidAddDelReply) Size() (size int)
func (*SrMobileLocalsidAddDelReply) Unmarshal ¶
func (m *SrMobileLocalsidAddDelReply) Unmarshal(b []byte) error
type SrMobilePolicyAdd ¶
type SrMobilePolicyAdd struct {
BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"`
SrPrefix ip_types.IP6Prefix `binapi:"ip6_prefix,name=sr_prefix" json:"sr_prefix,omitempty"`
V6srcPrefix ip_types.IP6Prefix `binapi:"ip6_prefix,name=v6src_prefix" json:"v6src_prefix,omitempty"`
Behavior string `binapi:"string[64],name=behavior" json:"behavior,omitempty"`
FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
LocalFibTable uint32 `binapi:"u32,name=local_fib_table" json:"local_fib_table,omitempty"`
EncapSrc ip_types.IP6Address `binapi:"ip6_address,name=encap_src" json:"encap_src,omitempty"`
DropIn bool `binapi:"bool,name=drop_in" json:"drop_in,omitempty"`
Nhtype sr_mobile_types.SrMobileNhtype `binapi:"sr_mobile_nhtype,name=nhtype" json:"nhtype,omitempty"`
}
IPv6 SR for Mobile policy add
- bsid - the bindingSID of the SR Policy
- sr_prefix - v6 dst ip encoding prefix. optional
- v6src_position - v6 src prefix. optional
- behavior - the behavior of the SR policy.
- fib_table - the VRF where to install the FIB entry for the BSID
- encap_src is a encaps IPv6 source addr. optional
- local_fib_table - lookup and forward GTP-U packet based on outer IP destination address. optional
- drop_in - that reconverts to GTPv1 mode. optional
- nhtype - next-header type.
SrMobilePolicyAdd defines message 'sr_mobile_policy_add'.
func (*SrMobilePolicyAdd) GetCrcString ¶
func (*SrMobilePolicyAdd) GetCrcString() string
func (*SrMobilePolicyAdd) GetMessageName ¶
func (*SrMobilePolicyAdd) GetMessageName() string
func (*SrMobilePolicyAdd) GetMessageType ¶
func (*SrMobilePolicyAdd) GetMessageType() api.MessageType
func (*SrMobilePolicyAdd) Reset ¶
func (m *SrMobilePolicyAdd) Reset()
func (*SrMobilePolicyAdd) Size ¶
func (m *SrMobilePolicyAdd) Size() (size int)
func (*SrMobilePolicyAdd) Unmarshal ¶
func (m *SrMobilePolicyAdd) Unmarshal(b []byte) error
type SrMobilePolicyAddReply ¶
type SrMobilePolicyAddReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrMobilePolicyAddReply defines message 'sr_mobile_policy_add_reply'.
func (*SrMobilePolicyAddReply) GetCrcString ¶
func (*SrMobilePolicyAddReply) GetCrcString() string
func (*SrMobilePolicyAddReply) GetMessageName ¶
func (*SrMobilePolicyAddReply) GetMessageName() string
func (*SrMobilePolicyAddReply) GetMessageType ¶
func (*SrMobilePolicyAddReply) GetMessageType() api.MessageType
func (*SrMobilePolicyAddReply) Marshal ¶
func (m *SrMobilePolicyAddReply) Marshal(b []byte) ([]byte, error)
func (*SrMobilePolicyAddReply) Reset ¶
func (m *SrMobilePolicyAddReply) Reset()
func (*SrMobilePolicyAddReply) Size ¶
func (m *SrMobilePolicyAddReply) Size() (size int)
func (*SrMobilePolicyAddReply) Unmarshal ¶
func (m *SrMobilePolicyAddReply) Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.