Documentation ¶
Overview ¶
Package sr_mpls contains generated bindings for API file sr_mpls.api.
Contents:
10 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type RPCService
- type SrMplsPolicyAdd
- func (*SrMplsPolicyAdd) GetCrcString() string
- func (*SrMplsPolicyAdd) GetMessageName() string
- func (*SrMplsPolicyAdd) GetMessageType() api.MessageType
- func (m *SrMplsPolicyAdd) Marshal(b []byte) ([]byte, error)
- func (m *SrMplsPolicyAdd) Reset()
- func (m *SrMplsPolicyAdd) Size() (size int)
- func (m *SrMplsPolicyAdd) Unmarshal(b []byte) error
- type SrMplsPolicyAddReply
- func (*SrMplsPolicyAddReply) GetCrcString() string
- func (*SrMplsPolicyAddReply) GetMessageName() string
- func (*SrMplsPolicyAddReply) GetMessageType() api.MessageType
- func (m *SrMplsPolicyAddReply) Marshal(b []byte) ([]byte, error)
- func (m *SrMplsPolicyAddReply) Reset()
- func (m *SrMplsPolicyAddReply) Size() (size int)
- func (m *SrMplsPolicyAddReply) Unmarshal(b []byte) error
- type SrMplsPolicyAssignEndpointColor
- func (*SrMplsPolicyAssignEndpointColor) GetCrcString() string
- func (*SrMplsPolicyAssignEndpointColor) GetMessageName() string
- func (*SrMplsPolicyAssignEndpointColor) GetMessageType() api.MessageType
- func (m *SrMplsPolicyAssignEndpointColor) Marshal(b []byte) ([]byte, error)
- func (m *SrMplsPolicyAssignEndpointColor) Reset()
- func (m *SrMplsPolicyAssignEndpointColor) Size() (size int)
- func (m *SrMplsPolicyAssignEndpointColor) Unmarshal(b []byte) error
- type SrMplsPolicyAssignEndpointColorReply
- func (*SrMplsPolicyAssignEndpointColorReply) GetCrcString() string
- func (*SrMplsPolicyAssignEndpointColorReply) GetMessageName() string
- func (*SrMplsPolicyAssignEndpointColorReply) GetMessageType() api.MessageType
- func (m *SrMplsPolicyAssignEndpointColorReply) Marshal(b []byte) ([]byte, error)
- func (m *SrMplsPolicyAssignEndpointColorReply) Reset()
- func (m *SrMplsPolicyAssignEndpointColorReply) Size() (size int)
- func (m *SrMplsPolicyAssignEndpointColorReply) Unmarshal(b []byte) error
- type SrMplsPolicyDel
- func (*SrMplsPolicyDel) GetCrcString() string
- func (*SrMplsPolicyDel) GetMessageName() string
- func (*SrMplsPolicyDel) GetMessageType() api.MessageType
- func (m *SrMplsPolicyDel) Marshal(b []byte) ([]byte, error)
- func (m *SrMplsPolicyDel) Reset()
- func (m *SrMplsPolicyDel) Size() (size int)
- func (m *SrMplsPolicyDel) Unmarshal(b []byte) error
- type SrMplsPolicyDelReply
- func (*SrMplsPolicyDelReply) GetCrcString() string
- func (*SrMplsPolicyDelReply) GetMessageName() string
- func (*SrMplsPolicyDelReply) GetMessageType() api.MessageType
- func (m *SrMplsPolicyDelReply) Marshal(b []byte) ([]byte, error)
- func (m *SrMplsPolicyDelReply) Reset()
- func (m *SrMplsPolicyDelReply) Size() (size int)
- func (m *SrMplsPolicyDelReply) Unmarshal(b []byte) error
- type SrMplsPolicyMod
- func (*SrMplsPolicyMod) GetCrcString() string
- func (*SrMplsPolicyMod) GetMessageName() string
- func (*SrMplsPolicyMod) GetMessageType() api.MessageType
- func (m *SrMplsPolicyMod) Marshal(b []byte) ([]byte, error)
- func (m *SrMplsPolicyMod) Reset()
- func (m *SrMplsPolicyMod) Size() (size int)
- func (m *SrMplsPolicyMod) Unmarshal(b []byte) error
- type SrMplsPolicyModReply
- func (*SrMplsPolicyModReply) GetCrcString() string
- func (*SrMplsPolicyModReply) GetMessageName() string
- func (*SrMplsPolicyModReply) GetMessageType() api.MessageType
- func (m *SrMplsPolicyModReply) Marshal(b []byte) ([]byte, error)
- func (m *SrMplsPolicyModReply) Reset()
- func (m *SrMplsPolicyModReply) Size() (size int)
- func (m *SrMplsPolicyModReply) Unmarshal(b []byte) error
- type SrMplsSteeringAddDel
- func (*SrMplsSteeringAddDel) GetCrcString() string
- func (*SrMplsSteeringAddDel) GetMessageName() string
- func (*SrMplsSteeringAddDel) GetMessageType() api.MessageType
- func (m *SrMplsSteeringAddDel) Marshal(b []byte) ([]byte, error)
- func (m *SrMplsSteeringAddDel) Reset()
- func (m *SrMplsSteeringAddDel) Size() (size int)
- func (m *SrMplsSteeringAddDel) Unmarshal(b []byte) error
- type SrMplsSteeringAddDelReply
- func (*SrMplsSteeringAddDelReply) GetCrcString() string
- func (*SrMplsSteeringAddDelReply) GetMessageName() string
- func (*SrMplsSteeringAddDelReply) GetMessageType() api.MessageType
- func (m *SrMplsSteeringAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *SrMplsSteeringAddDelReply) Reset()
- func (m *SrMplsSteeringAddDelReply) Size() (size int)
- func (m *SrMplsSteeringAddDelReply) Unmarshal(b []byte) error
Constants ¶
const ( APIFile = "sr_mpls" APIVersion = "3.0.0" VersionCrc = 0x156edb17 )
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 defines RPC service sr_mpls.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type SrMplsPolicyAdd ¶
type SrMplsPolicyAdd struct { Bsid uint32 `binapi:"u32,name=bsid" json:"bsid,omitempty"` Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"` IsSpray bool `binapi:"bool,name=is_spray" json:"is_spray,omitempty"` NSegments uint8 `binapi:"u8,name=n_segments" json:"-"` Segments []uint32 `binapi:"u32[n_segments],name=segments" json:"segments,omitempty"` }
SrMplsPolicyAdd defines 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()
func (*SrMplsPolicyAdd) Size ¶
func (m *SrMplsPolicyAdd) Size() (size int)
func (*SrMplsPolicyAdd) Unmarshal ¶
func (m *SrMplsPolicyAdd) Unmarshal(b []byte) error
type SrMplsPolicyAddReply ¶
type SrMplsPolicyAddReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrMplsPolicyAddReply defines 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) Marshal ¶
func (m *SrMplsPolicyAddReply) Marshal(b []byte) ([]byte, error)
func (*SrMplsPolicyAddReply) Reset ¶
func (m *SrMplsPolicyAddReply) Reset()
func (*SrMplsPolicyAddReply) Size ¶
func (m *SrMplsPolicyAddReply) Size() (size int)
func (*SrMplsPolicyAddReply) Unmarshal ¶
func (m *SrMplsPolicyAddReply) Unmarshal(b []byte) error
type SrMplsPolicyAssignEndpointColor ¶
type SrMplsPolicyAssignEndpointColor struct { Bsid uint32 `binapi:"u32,name=bsid" json:"bsid,omitempty"` Endpoint ip_types.Address `binapi:"address,name=endpoint" json:"endpoint,omitempty"` Color uint32 `binapi:"u32,name=color" json:"color,omitempty"` }
SrMplsPolicyAssignEndpointColor defines 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) Marshal ¶
func (m *SrMplsPolicyAssignEndpointColor) Marshal(b []byte) ([]byte, error)
func (*SrMplsPolicyAssignEndpointColor) Reset ¶
func (m *SrMplsPolicyAssignEndpointColor) Reset()
func (*SrMplsPolicyAssignEndpointColor) Size ¶
func (m *SrMplsPolicyAssignEndpointColor) Size() (size int)
func (*SrMplsPolicyAssignEndpointColor) Unmarshal ¶
func (m *SrMplsPolicyAssignEndpointColor) Unmarshal(b []byte) error
type SrMplsPolicyAssignEndpointColorReply ¶
type SrMplsPolicyAssignEndpointColorReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrMplsPolicyAssignEndpointColorReply defines 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) Marshal ¶
func (m *SrMplsPolicyAssignEndpointColorReply) Marshal(b []byte) ([]byte, error)
func (*SrMplsPolicyAssignEndpointColorReply) Reset ¶
func (m *SrMplsPolicyAssignEndpointColorReply) Reset()
func (*SrMplsPolicyAssignEndpointColorReply) Size ¶
func (m *SrMplsPolicyAssignEndpointColorReply) Size() (size int)
func (*SrMplsPolicyAssignEndpointColorReply) Unmarshal ¶
func (m *SrMplsPolicyAssignEndpointColorReply) Unmarshal(b []byte) error
type SrMplsPolicyDel ¶
type SrMplsPolicyDel struct {
Bsid uint32 `binapi:"u32,name=bsid" json:"bsid,omitempty"`
}
SrMplsPolicyDel defines 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()
func (*SrMplsPolicyDel) Size ¶
func (m *SrMplsPolicyDel) Size() (size int)
func (*SrMplsPolicyDel) Unmarshal ¶
func (m *SrMplsPolicyDel) Unmarshal(b []byte) error
type SrMplsPolicyDelReply ¶
type SrMplsPolicyDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrMplsPolicyDelReply defines 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) Marshal ¶
func (m *SrMplsPolicyDelReply) Marshal(b []byte) ([]byte, error)
func (*SrMplsPolicyDelReply) Reset ¶
func (m *SrMplsPolicyDelReply) Reset()
func (*SrMplsPolicyDelReply) Size ¶
func (m *SrMplsPolicyDelReply) Size() (size int)
func (*SrMplsPolicyDelReply) Unmarshal ¶
func (m *SrMplsPolicyDelReply) Unmarshal(b []byte) error
type SrMplsPolicyMod ¶
type SrMplsPolicyMod struct { Bsid uint32 `binapi:"u32,name=bsid" json:"bsid,omitempty"` Operation sr_types.SrPolicyOp `binapi:"sr_policy_op,name=operation" json:"operation,omitempty"` SlIndex uint32 `binapi:"u32,name=sl_index" json:"sl_index,omitempty"` Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"` NSegments uint8 `binapi:"u8,name=n_segments" json:"-"` Segments []uint32 `binapi:"u32[n_segments],name=segments" json:"segments,omitempty"` }
SrMplsPolicyMod defines 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()
func (*SrMplsPolicyMod) Size ¶
func (m *SrMplsPolicyMod) Size() (size int)
func (*SrMplsPolicyMod) Unmarshal ¶
func (m *SrMplsPolicyMod) Unmarshal(b []byte) error
type SrMplsPolicyModReply ¶
type SrMplsPolicyModReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrMplsPolicyModReply defines 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) Marshal ¶
func (m *SrMplsPolicyModReply) Marshal(b []byte) ([]byte, error)
func (*SrMplsPolicyModReply) Reset ¶
func (m *SrMplsPolicyModReply) Reset()
func (*SrMplsPolicyModReply) Size ¶
func (m *SrMplsPolicyModReply) Size() (size int)
func (*SrMplsPolicyModReply) Unmarshal ¶
func (m *SrMplsPolicyModReply) Unmarshal(b []byte) error
type SrMplsSteeringAddDel ¶
type SrMplsSteeringAddDel struct { IsDel bool `binapi:"bool,name=is_del,default=false" json:"is_del,omitempty"` Bsid uint32 `binapi:"u32,name=bsid" json:"bsid,omitempty"` TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` Prefix ip_types.Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"` MaskWidth uint32 `binapi:"u32,name=mask_width" json:"mask_width,omitempty"` NextHop ip_types.Address `binapi:"address,name=next_hop" json:"next_hop,omitempty"` Color uint32 `binapi:"u32,name=color" json:"color,omitempty"` CoBits uint8 `binapi:"u8,name=co_bits" json:"co_bits,omitempty"` VPNLabel uint32 `binapi:"u32,name=vpn_label" json:"vpn_label,omitempty"` }
SrMplsSteeringAddDel defines 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) Marshal ¶
func (m *SrMplsSteeringAddDel) Marshal(b []byte) ([]byte, error)
func (*SrMplsSteeringAddDel) Reset ¶
func (m *SrMplsSteeringAddDel) Reset()
func (*SrMplsSteeringAddDel) Size ¶
func (m *SrMplsSteeringAddDel) Size() (size int)
func (*SrMplsSteeringAddDel) Unmarshal ¶
func (m *SrMplsSteeringAddDel) Unmarshal(b []byte) error
type SrMplsSteeringAddDelReply ¶
type SrMplsSteeringAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrMplsSteeringAddDelReply defines 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) Marshal ¶
func (m *SrMplsSteeringAddDelReply) Marshal(b []byte) ([]byte, error)
func (*SrMplsSteeringAddDelReply) Reset ¶
func (m *SrMplsSteeringAddDelReply) Reset()
func (*SrMplsSteeringAddDelReply) Size ¶
func (m *SrMplsSteeringAddDelReply) Size() (size int)
func (*SrMplsSteeringAddDelReply) Unmarshal ¶
func (m *SrMplsSteeringAddDelReply) Unmarshal(b []byte) error