Documentation ¶
Overview ¶
Package sr contains generated bindings for API file sr.api.
Contents: - 1 enum - 2 structs - 30 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type RPCService
- type RPCService_SrLocalsidsDumpClient
- type RPCService_SrLocalsidsWithPacketStatsDumpClient
- type RPCService_SrPoliciesDumpClient
- type RPCService_SrPoliciesV2DumpClient
- type RPCService_SrPoliciesWithSlIndexDumpClient
- type RPCService_SrSteeringPolDumpClient
- type SrLocalsidAddDel
- func (*SrLocalsidAddDel) GetCrcString() string
- func (*SrLocalsidAddDel) GetMessageName() string
- func (*SrLocalsidAddDel) GetMessageType() api.MessageType
- func (m *SrLocalsidAddDel) Marshal(b []byte) ([]byte, error)
- func (m *SrLocalsidAddDel) Reset()
- func (m *SrLocalsidAddDel) Size() (size int)
- func (m *SrLocalsidAddDel) Unmarshal(b []byte) error
- type SrLocalsidAddDelReply
- func (*SrLocalsidAddDelReply) GetCrcString() string
- func (*SrLocalsidAddDelReply) GetMessageName() string
- func (*SrLocalsidAddDelReply) GetMessageType() api.MessageType
- func (m *SrLocalsidAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *SrLocalsidAddDelReply) Reset()
- func (m *SrLocalsidAddDelReply) Size() (size int)
- func (m *SrLocalsidAddDelReply) Unmarshal(b []byte) error
- type SrLocalsidsDetails
- func (*SrLocalsidsDetails) GetCrcString() string
- func (*SrLocalsidsDetails) GetMessageName() string
- func (*SrLocalsidsDetails) GetMessageType() api.MessageType
- func (m *SrLocalsidsDetails) Marshal(b []byte) ([]byte, error)
- func (m *SrLocalsidsDetails) Reset()
- func (m *SrLocalsidsDetails) Size() (size int)
- func (m *SrLocalsidsDetails) Unmarshal(b []byte) error
- type SrLocalsidsDump
- func (*SrLocalsidsDump) GetCrcString() string
- func (*SrLocalsidsDump) GetMessageName() string
- func (*SrLocalsidsDump) GetMessageType() api.MessageType
- func (m *SrLocalsidsDump) Marshal(b []byte) ([]byte, error)
- func (m *SrLocalsidsDump) Reset()
- func (m *SrLocalsidsDump) Size() (size int)
- func (m *SrLocalsidsDump) Unmarshal(b []byte) error
- type SrLocalsidsWithPacketStatsDetails
- func (*SrLocalsidsWithPacketStatsDetails) GetCrcString() string
- func (*SrLocalsidsWithPacketStatsDetails) GetMessageName() string
- func (*SrLocalsidsWithPacketStatsDetails) GetMessageType() api.MessageType
- func (m *SrLocalsidsWithPacketStatsDetails) Marshal(b []byte) ([]byte, error)
- func (m *SrLocalsidsWithPacketStatsDetails) Reset()
- func (m *SrLocalsidsWithPacketStatsDetails) Size() (size int)
- func (m *SrLocalsidsWithPacketStatsDetails) Unmarshal(b []byte) error
- type SrLocalsidsWithPacketStatsDump
- func (*SrLocalsidsWithPacketStatsDump) GetCrcString() string
- func (*SrLocalsidsWithPacketStatsDump) GetMessageName() string
- func (*SrLocalsidsWithPacketStatsDump) GetMessageType() api.MessageType
- func (m *SrLocalsidsWithPacketStatsDump) Marshal(b []byte) ([]byte, error)
- func (m *SrLocalsidsWithPacketStatsDump) Reset()
- func (m *SrLocalsidsWithPacketStatsDump) Size() (size int)
- func (m *SrLocalsidsWithPacketStatsDump) Unmarshal(b []byte) error
- type SrPoliciesDetails
- func (*SrPoliciesDetails) GetCrcString() string
- func (*SrPoliciesDetails) GetMessageName() string
- func (*SrPoliciesDetails) GetMessageType() api.MessageType
- func (m *SrPoliciesDetails) Marshal(b []byte) ([]byte, error)
- func (m *SrPoliciesDetails) Reset()
- func (m *SrPoliciesDetails) Size() (size int)
- func (m *SrPoliciesDetails) Unmarshal(b []byte) error
- type SrPoliciesDump
- func (*SrPoliciesDump) GetCrcString() string
- func (*SrPoliciesDump) GetMessageName() string
- func (*SrPoliciesDump) GetMessageType() api.MessageType
- func (m *SrPoliciesDump) Marshal(b []byte) ([]byte, error)
- func (m *SrPoliciesDump) Reset()
- func (m *SrPoliciesDump) Size() (size int)
- func (m *SrPoliciesDump) Unmarshal(b []byte) error
- type SrPoliciesV2Details
- func (*SrPoliciesV2Details) GetCrcString() string
- func (*SrPoliciesV2Details) GetMessageName() string
- func (*SrPoliciesV2Details) GetMessageType() api.MessageType
- func (m *SrPoliciesV2Details) Marshal(b []byte) ([]byte, error)
- func (m *SrPoliciesV2Details) Reset()
- func (m *SrPoliciesV2Details) Size() (size int)
- func (m *SrPoliciesV2Details) Unmarshal(b []byte) error
- type SrPoliciesV2Dump
- func (*SrPoliciesV2Dump) GetCrcString() string
- func (*SrPoliciesV2Dump) GetMessageName() string
- func (*SrPoliciesV2Dump) GetMessageType() api.MessageType
- func (m *SrPoliciesV2Dump) Marshal(b []byte) ([]byte, error)
- func (m *SrPoliciesV2Dump) Reset()
- func (m *SrPoliciesV2Dump) Size() (size int)
- func (m *SrPoliciesV2Dump) Unmarshal(b []byte) error
- type SrPoliciesWithSlIndexDetails
- func (*SrPoliciesWithSlIndexDetails) GetCrcString() string
- func (*SrPoliciesWithSlIndexDetails) GetMessageName() string
- func (*SrPoliciesWithSlIndexDetails) GetMessageType() api.MessageType
- func (m *SrPoliciesWithSlIndexDetails) Marshal(b []byte) ([]byte, error)
- func (m *SrPoliciesWithSlIndexDetails) Reset()
- func (m *SrPoliciesWithSlIndexDetails) Size() (size int)
- func (m *SrPoliciesWithSlIndexDetails) Unmarshal(b []byte) error
- type SrPoliciesWithSlIndexDump
- func (*SrPoliciesWithSlIndexDump) GetCrcString() string
- func (*SrPoliciesWithSlIndexDump) GetMessageName() string
- func (*SrPoliciesWithSlIndexDump) GetMessageType() api.MessageType
- func (m *SrPoliciesWithSlIndexDump) Marshal(b []byte) ([]byte, error)
- func (m *SrPoliciesWithSlIndexDump) Reset()
- func (m *SrPoliciesWithSlIndexDump) Size() (size int)
- func (m *SrPoliciesWithSlIndexDump) Unmarshal(b []byte) error
- type SrPolicyAdd
- func (*SrPolicyAdd) GetCrcString() string
- func (*SrPolicyAdd) GetMessageName() string
- func (*SrPolicyAdd) GetMessageType() api.MessageType
- func (m *SrPolicyAdd) Marshal(b []byte) ([]byte, error)
- func (m *SrPolicyAdd) Reset()
- func (m *SrPolicyAdd) Size() (size int)
- func (m *SrPolicyAdd) Unmarshal(b []byte) error
- type SrPolicyAddReply
- func (*SrPolicyAddReply) GetCrcString() string
- func (*SrPolicyAddReply) GetMessageName() string
- func (*SrPolicyAddReply) GetMessageType() api.MessageType
- func (m *SrPolicyAddReply) Marshal(b []byte) ([]byte, error)
- func (m *SrPolicyAddReply) Reset()
- func (m *SrPolicyAddReply) Size() (size int)
- func (m *SrPolicyAddReply) Unmarshal(b []byte) error
- type SrPolicyAddV2
- func (*SrPolicyAddV2) GetCrcString() string
- func (*SrPolicyAddV2) GetMessageName() string
- func (*SrPolicyAddV2) GetMessageType() api.MessageType
- func (m *SrPolicyAddV2) Marshal(b []byte) ([]byte, error)
- func (m *SrPolicyAddV2) Reset()
- func (m *SrPolicyAddV2) Size() (size int)
- func (m *SrPolicyAddV2) Unmarshal(b []byte) error
- type SrPolicyAddV2Reply
- func (*SrPolicyAddV2Reply) GetCrcString() string
- func (*SrPolicyAddV2Reply) GetMessageName() string
- func (*SrPolicyAddV2Reply) GetMessageType() api.MessageType
- func (m *SrPolicyAddV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *SrPolicyAddV2Reply) Reset()
- func (m *SrPolicyAddV2Reply) Size() (size int)
- func (m *SrPolicyAddV2Reply) Unmarshal(b []byte) error
- type SrPolicyDel
- func (*SrPolicyDel) GetCrcString() string
- func (*SrPolicyDel) GetMessageName() string
- func (*SrPolicyDel) GetMessageType() api.MessageType
- func (m *SrPolicyDel) Marshal(b []byte) ([]byte, error)
- func (m *SrPolicyDel) Reset()
- func (m *SrPolicyDel) Size() (size int)
- func (m *SrPolicyDel) Unmarshal(b []byte) error
- type SrPolicyDelReply
- func (*SrPolicyDelReply) GetCrcString() string
- func (*SrPolicyDelReply) GetMessageName() string
- func (*SrPolicyDelReply) GetMessageType() api.MessageType
- func (m *SrPolicyDelReply) Marshal(b []byte) ([]byte, error)
- func (m *SrPolicyDelReply) Reset()
- func (m *SrPolicyDelReply) Size() (size int)
- func (m *SrPolicyDelReply) Unmarshal(b []byte) error
- type SrPolicyMod
- func (*SrPolicyMod) GetCrcString() string
- func (*SrPolicyMod) GetMessageName() string
- func (*SrPolicyMod) GetMessageType() api.MessageType
- func (m *SrPolicyMod) Marshal(b []byte) ([]byte, error)
- func (m *SrPolicyMod) Reset()
- func (m *SrPolicyMod) Size() (size int)
- func (m *SrPolicyMod) Unmarshal(b []byte) error
- type SrPolicyModReply
- func (*SrPolicyModReply) GetCrcString() string
- func (*SrPolicyModReply) GetMessageName() string
- func (*SrPolicyModReply) GetMessageType() api.MessageType
- func (m *SrPolicyModReply) Marshal(b []byte) ([]byte, error)
- func (m *SrPolicyModReply) Reset()
- func (m *SrPolicyModReply) Size() (size int)
- func (m *SrPolicyModReply) Unmarshal(b []byte) error
- type SrPolicyModV2
- func (*SrPolicyModV2) GetCrcString() string
- func (*SrPolicyModV2) GetMessageName() string
- func (*SrPolicyModV2) GetMessageType() api.MessageType
- func (m *SrPolicyModV2) Marshal(b []byte) ([]byte, error)
- func (m *SrPolicyModV2) Reset()
- func (m *SrPolicyModV2) Size() (size int)
- func (m *SrPolicyModV2) Unmarshal(b []byte) error
- type SrPolicyModV2Reply
- func (*SrPolicyModV2Reply) GetCrcString() string
- func (*SrPolicyModV2Reply) GetMessageName() string
- func (*SrPolicyModV2Reply) GetMessageType() api.MessageType
- func (m *SrPolicyModV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *SrPolicyModV2Reply) Reset()
- func (m *SrPolicyModV2Reply) Size() (size int)
- func (m *SrPolicyModV2Reply) Unmarshal(b []byte) error
- type SrPolicyType
- type SrSetEncapHopLimit
- func (*SrSetEncapHopLimit) GetCrcString() string
- func (*SrSetEncapHopLimit) GetMessageName() string
- func (*SrSetEncapHopLimit) GetMessageType() api.MessageType
- func (m *SrSetEncapHopLimit) Marshal(b []byte) ([]byte, error)
- func (m *SrSetEncapHopLimit) Reset()
- func (m *SrSetEncapHopLimit) Size() (size int)
- func (m *SrSetEncapHopLimit) Unmarshal(b []byte) error
- type SrSetEncapHopLimitReply
- func (*SrSetEncapHopLimitReply) GetCrcString() string
- func (*SrSetEncapHopLimitReply) GetMessageName() string
- func (*SrSetEncapHopLimitReply) GetMessageType() api.MessageType
- func (m *SrSetEncapHopLimitReply) Marshal(b []byte) ([]byte, error)
- func (m *SrSetEncapHopLimitReply) Reset()
- func (m *SrSetEncapHopLimitReply) Size() (size int)
- func (m *SrSetEncapHopLimitReply) Unmarshal(b []byte) error
- type SrSetEncapSource
- func (*SrSetEncapSource) GetCrcString() string
- func (*SrSetEncapSource) GetMessageName() string
- func (*SrSetEncapSource) GetMessageType() api.MessageType
- func (m *SrSetEncapSource) Marshal(b []byte) ([]byte, error)
- func (m *SrSetEncapSource) Reset()
- func (m *SrSetEncapSource) Size() (size int)
- func (m *SrSetEncapSource) Unmarshal(b []byte) error
- type SrSetEncapSourceReply
- func (*SrSetEncapSourceReply) GetCrcString() string
- func (*SrSetEncapSourceReply) GetMessageName() string
- func (*SrSetEncapSourceReply) GetMessageType() api.MessageType
- func (m *SrSetEncapSourceReply) Marshal(b []byte) ([]byte, error)
- func (m *SrSetEncapSourceReply) Reset()
- func (m *SrSetEncapSourceReply) Size() (size int)
- func (m *SrSetEncapSourceReply) Unmarshal(b []byte) error
- type SrSteeringAddDel
- func (*SrSteeringAddDel) GetCrcString() string
- func (*SrSteeringAddDel) GetMessageName() string
- func (*SrSteeringAddDel) GetMessageType() api.MessageType
- func (m *SrSteeringAddDel) Marshal(b []byte) ([]byte, error)
- func (m *SrSteeringAddDel) Reset()
- func (m *SrSteeringAddDel) Size() (size int)
- func (m *SrSteeringAddDel) Unmarshal(b []byte) error
- type SrSteeringAddDelReply
- func (*SrSteeringAddDelReply) GetCrcString() string
- func (*SrSteeringAddDelReply) GetMessageName() string
- func (*SrSteeringAddDelReply) GetMessageType() api.MessageType
- func (m *SrSteeringAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *SrSteeringAddDelReply) Reset()
- func (m *SrSteeringAddDelReply) Size() (size int)
- func (m *SrSteeringAddDelReply) Unmarshal(b []byte) error
- type SrSteeringPolDetails
- func (*SrSteeringPolDetails) GetCrcString() string
- func (*SrSteeringPolDetails) GetMessageName() string
- func (*SrSteeringPolDetails) GetMessageType() api.MessageType
- func (m *SrSteeringPolDetails) Marshal(b []byte) ([]byte, error)
- func (m *SrSteeringPolDetails) Reset()
- func (m *SrSteeringPolDetails) Size() (size int)
- func (m *SrSteeringPolDetails) Unmarshal(b []byte) error
- type SrSteeringPolDump
- func (*SrSteeringPolDump) GetCrcString() string
- func (*SrSteeringPolDump) GetMessageName() string
- func (*SrSteeringPolDump) GetMessageType() api.MessageType
- func (m *SrSteeringPolDump) Marshal(b []byte) ([]byte, error)
- func (m *SrSteeringPolDump) Reset()
- func (m *SrSteeringPolDump) Size() (size int)
- func (m *SrSteeringPolDump) Unmarshal(b []byte) error
- type Srv6SidList
- type Srv6SidListWithSlIndex
Constants ¶
const ( APIFile = "sr" APIVersion = "2.1.0" VersionCrc = 0x1fa846d0 )
Variables ¶
var ( SrPolicyType_name = map[uint8]string{ 0: "SR_API_POLICY_TYPE_DEFAULT", 1: "SR_API_POLICY_TYPE_SPRAY", 2: "SR_API_POLICY_TYPE_TEF", } SrPolicyType_value = map[string]uint8{ "SR_API_POLICY_TYPE_DEFAULT": 0, "SR_API_POLICY_TYPE_SPRAY": 1, "SR_API_POLICY_TYPE_TEF": 2, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface { SrLocalsidAddDel(ctx context.Context, in *SrLocalsidAddDel) (*SrLocalsidAddDelReply, error) SrLocalsidsDump(ctx context.Context, in *SrLocalsidsDump) (RPCService_SrLocalsidsDumpClient, error) SrLocalsidsWithPacketStatsDump(ctx context.Context, in *SrLocalsidsWithPacketStatsDump) (RPCService_SrLocalsidsWithPacketStatsDumpClient, error) SrPoliciesDump(ctx context.Context, in *SrPoliciesDump) (RPCService_SrPoliciesDumpClient, error) SrPoliciesV2Dump(ctx context.Context, in *SrPoliciesV2Dump) (RPCService_SrPoliciesV2DumpClient, error) SrPoliciesWithSlIndexDump(ctx context.Context, in *SrPoliciesWithSlIndexDump) (RPCService_SrPoliciesWithSlIndexDumpClient, error) SrPolicyAdd(ctx context.Context, in *SrPolicyAdd) (*SrPolicyAddReply, error) SrPolicyAddV2(ctx context.Context, in *SrPolicyAddV2) (*SrPolicyAddV2Reply, error) SrPolicyDel(ctx context.Context, in *SrPolicyDel) (*SrPolicyDelReply, error) SrPolicyMod(ctx context.Context, in *SrPolicyMod) (*SrPolicyModReply, error) SrPolicyModV2(ctx context.Context, in *SrPolicyModV2) (*SrPolicyModV2Reply, error) SrSetEncapHopLimit(ctx context.Context, in *SrSetEncapHopLimit) (*SrSetEncapHopLimitReply, error) SrSetEncapSource(ctx context.Context, in *SrSetEncapSource) (*SrSetEncapSourceReply, error) SrSteeringAddDel(ctx context.Context, in *SrSteeringAddDel) (*SrSteeringAddDelReply, error) SrSteeringPolDump(ctx context.Context, in *SrSteeringPolDump) (RPCService_SrSteeringPolDumpClient, error) }
RPCService defines RPC service sr.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_SrLocalsidsDumpClient ¶
type RPCService_SrLocalsidsDumpClient interface { Recv() (*SrLocalsidsDetails, error) api.Stream }
type RPCService_SrLocalsidsWithPacketStatsDumpClient ¶
type RPCService_SrLocalsidsWithPacketStatsDumpClient interface { Recv() (*SrLocalsidsWithPacketStatsDetails, error) api.Stream }
type RPCService_SrPoliciesDumpClient ¶
type RPCService_SrPoliciesDumpClient interface { Recv() (*SrPoliciesDetails, error) api.Stream }
type RPCService_SrPoliciesV2DumpClient ¶
type RPCService_SrPoliciesV2DumpClient interface { Recv() (*SrPoliciesV2Details, error) api.Stream }
type RPCService_SrPoliciesWithSlIndexDumpClient ¶
type RPCService_SrPoliciesWithSlIndexDumpClient interface { Recv() (*SrPoliciesWithSlIndexDetails, error) api.Stream }
type RPCService_SrSteeringPolDumpClient ¶
type RPCService_SrSteeringPolDumpClient interface { Recv() (*SrSteeringPolDetails, error) api.Stream }
type SrLocalsidAddDel ¶
type SrLocalsidAddDel struct { IsDel bool `binapi:"bool,name=is_del,default=false" json:"is_del,omitempty"` Localsid ip_types.IP6Address `binapi:"ip6_address,name=localsid" json:"localsid,omitempty"` EndPsp bool `binapi:"bool,name=end_psp" json:"end_psp,omitempty"` Behavior sr_types.SrBehavior `binapi:"sr_behavior,name=behavior" json:"behavior,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"` VlanIndex uint32 `binapi:"u32,name=vlan_index" json:"vlan_index,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"` NhAddr ip_types.Address `binapi:"address,name=nh_addr" json:"nh_addr,omitempty"` }
IPv6 SR LocalSID add/del request
- is_del Boolean of whether its a delete instruction
- localsid_addr IPv6 address of the localsid
- end_psp Boolean of whether decapsulation is allowed in this function
- behavior Type of behavior (function) for this localsid
- sw_if_index Only for L2/L3 xconnect. OIF. In VRF variant the fib_table. Default:0xffffffff
- vlan_index Only for L2 xconnect. Outgoing VLAN tag.
- fib_table FIB table in which we should install the localsid entry
- nh_addr Next Hop IPv46 address. Only for L2/L3 xconnect.
SrLocalsidAddDel defines 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()
func (*SrLocalsidAddDel) Size ¶
func (m *SrLocalsidAddDel) Size() (size int)
func (*SrLocalsidAddDel) Unmarshal ¶
func (m *SrLocalsidAddDel) Unmarshal(b []byte) error
type SrLocalsidAddDelReply ¶
type SrLocalsidAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrLocalsidAddDelReply defines 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) Marshal ¶
func (m *SrLocalsidAddDelReply) Marshal(b []byte) ([]byte, error)
func (*SrLocalsidAddDelReply) Reset ¶
func (m *SrLocalsidAddDelReply) Reset()
func (*SrLocalsidAddDelReply) Size ¶
func (m *SrLocalsidAddDelReply) Size() (size int)
func (*SrLocalsidAddDelReply) Unmarshal ¶
func (m *SrLocalsidAddDelReply) Unmarshal(b []byte) error
type SrLocalsidsDetails ¶
type SrLocalsidsDetails struct { Addr ip_types.IP6Address `binapi:"ip6_address,name=addr" json:"addr,omitempty"` EndPsp bool `binapi:"bool,name=end_psp" json:"end_psp,omitempty"` Behavior sr_types.SrBehavior `binapi:"sr_behavior,name=behavior" json:"behavior,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"` VlanIndex uint32 `binapi:"u32,name=vlan_index" json:"vlan_index,omitempty"` XconnectNhAddr ip_types.Address `binapi:"address,name=xconnect_nh_addr" json:"xconnect_nh_addr,omitempty"` XconnectIfaceOrVrfTable uint32 `binapi:"u32,name=xconnect_iface_or_vrf_table" json:"xconnect_iface_or_vrf_table,omitempty"` }
SrLocalsidsDetails defines 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()
func (*SrLocalsidsDetails) Size ¶
func (m *SrLocalsidsDetails) Size() (size int)
func (*SrLocalsidsDetails) Unmarshal ¶
func (m *SrLocalsidsDetails) Unmarshal(b []byte) error
type SrLocalsidsDump ¶
type SrLocalsidsDump struct{}
Dump the list of SR LocalSIDs SrLocalsidsDump defines 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()
func (*SrLocalsidsDump) Size ¶
func (m *SrLocalsidsDump) Size() (size int)
func (*SrLocalsidsDump) Unmarshal ¶
func (m *SrLocalsidsDump) Unmarshal(b []byte) error
type SrLocalsidsWithPacketStatsDetails ¶
type SrLocalsidsWithPacketStatsDetails struct { Addr ip_types.IP6Address `binapi:"ip6_address,name=addr" json:"addr,omitempty"` EndPsp bool `binapi:"bool,name=end_psp" json:"end_psp,omitempty"` Behavior sr_types.SrBehavior `binapi:"sr_behavior,name=behavior" json:"behavior,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"` VlanIndex uint32 `binapi:"u32,name=vlan_index" json:"vlan_index,omitempty"` XconnectNhAddr ip_types.Address `binapi:"address,name=xconnect_nh_addr" json:"xconnect_nh_addr,omitempty"` XconnectIfaceOrVrfTable uint32 `binapi:"u32,name=xconnect_iface_or_vrf_table" json:"xconnect_iface_or_vrf_table,omitempty"` GoodTrafficBytes uint64 `binapi:"u64,name=good_traffic_bytes" json:"good_traffic_bytes,omitempty"` GoodTrafficPktCount uint64 `binapi:"u64,name=good_traffic_pkt_count" json:"good_traffic_pkt_count,omitempty"` BadTrafficBytes uint64 `binapi:"u64,name=bad_traffic_bytes" json:"bad_traffic_bytes,omitempty"` BadTrafficPktCount uint64 `binapi:"u64,name=bad_traffic_pkt_count" json:"bad_traffic_pkt_count,omitempty"` }
SrLocalsidsWithPacketStatsDetails defines message 'sr_localsids_with_packet_stats_details'. InProgress: the message form may change in the future versions
func (*SrLocalsidsWithPacketStatsDetails) GetCrcString ¶
func (*SrLocalsidsWithPacketStatsDetails) GetCrcString() string
func (*SrLocalsidsWithPacketStatsDetails) GetMessageName ¶
func (*SrLocalsidsWithPacketStatsDetails) GetMessageName() string
func (*SrLocalsidsWithPacketStatsDetails) GetMessageType ¶
func (*SrLocalsidsWithPacketStatsDetails) GetMessageType() api.MessageType
func (*SrLocalsidsWithPacketStatsDetails) Marshal ¶
func (m *SrLocalsidsWithPacketStatsDetails) Marshal(b []byte) ([]byte, error)
func (*SrLocalsidsWithPacketStatsDetails) Reset ¶
func (m *SrLocalsidsWithPacketStatsDetails) Reset()
func (*SrLocalsidsWithPacketStatsDetails) Size ¶
func (m *SrLocalsidsWithPacketStatsDetails) Size() (size int)
func (*SrLocalsidsWithPacketStatsDetails) Unmarshal ¶
func (m *SrLocalsidsWithPacketStatsDetails) Unmarshal(b []byte) error
type SrLocalsidsWithPacketStatsDump ¶
type SrLocalsidsWithPacketStatsDump struct{}
Dump the list of SR LocalSIDs along with packet statistics SrLocalsidsWithPacketStatsDump defines message 'sr_localsids_with_packet_stats_dump'. InProgress: the message form may change in the future versions
func (*SrLocalsidsWithPacketStatsDump) GetCrcString ¶
func (*SrLocalsidsWithPacketStatsDump) GetCrcString() string
func (*SrLocalsidsWithPacketStatsDump) GetMessageName ¶
func (*SrLocalsidsWithPacketStatsDump) GetMessageName() string
func (*SrLocalsidsWithPacketStatsDump) GetMessageType ¶
func (*SrLocalsidsWithPacketStatsDump) GetMessageType() api.MessageType
func (*SrLocalsidsWithPacketStatsDump) Marshal ¶
func (m *SrLocalsidsWithPacketStatsDump) Marshal(b []byte) ([]byte, error)
func (*SrLocalsidsWithPacketStatsDump) Reset ¶
func (m *SrLocalsidsWithPacketStatsDump) Reset()
func (*SrLocalsidsWithPacketStatsDump) Size ¶
func (m *SrLocalsidsWithPacketStatsDump) Size() (size int)
func (*SrLocalsidsWithPacketStatsDump) Unmarshal ¶
func (m *SrLocalsidsWithPacketStatsDump) Unmarshal(b []byte) error
type SrPoliciesDetails ¶
type SrPoliciesDetails struct { Bsid ip_types.IP6Address `binapi:"ip6_address,name=bsid" json:"bsid,omitempty"` IsSpray bool `binapi:"bool,name=is_spray" json:"is_spray,omitempty"` IsEncap bool `binapi:"bool,name=is_encap" json:"is_encap,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"` NumSidLists uint8 `binapi:"u8,name=num_sid_lists" json:"-"` SidLists []Srv6SidList `binapi:"srv6_sid_list[num_sid_lists],name=sid_lists" json:"sid_lists,omitempty"` }
SrPoliciesDetails defines 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()
func (*SrPoliciesDetails) Size ¶
func (m *SrPoliciesDetails) Size() (size int)
func (*SrPoliciesDetails) Unmarshal ¶
func (m *SrPoliciesDetails) Unmarshal(b []byte) error
type SrPoliciesDump ¶
type SrPoliciesDump struct{}
Dump the list of SR policies SrPoliciesDump defines message 'sr_policies_dump'. Deprecated: the message will be removed in the future versions
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()
func (*SrPoliciesDump) Size ¶
func (m *SrPoliciesDump) Size() (size int)
func (*SrPoliciesDump) Unmarshal ¶
func (m *SrPoliciesDump) Unmarshal(b []byte) error
type SrPoliciesV2Details ¶
type SrPoliciesV2Details struct { Bsid ip_types.IP6Address `binapi:"ip6_address,name=bsid" json:"bsid,omitempty"` EncapSrc ip_types.IP6Address `binapi:"ip6_address,name=encap_src" json:"encap_src,omitempty"` Type SrPolicyType `binapi:"sr_policy_type,name=type" json:"type,omitempty"` IsEncap bool `binapi:"bool,name=is_encap" json:"is_encap,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"` NumSidLists uint8 `binapi:"u8,name=num_sid_lists" json:"-"` SidLists []Srv6SidList `binapi:"srv6_sid_list[num_sid_lists],name=sid_lists" json:"sid_lists,omitempty"` }
SrPoliciesV2Details defines message 'sr_policies_v2_details'.
func (*SrPoliciesV2Details) GetCrcString ¶
func (*SrPoliciesV2Details) GetCrcString() string
func (*SrPoliciesV2Details) GetMessageName ¶
func (*SrPoliciesV2Details) GetMessageName() string
func (*SrPoliciesV2Details) GetMessageType ¶
func (*SrPoliciesV2Details) GetMessageType() api.MessageType
func (*SrPoliciesV2Details) Marshal ¶
func (m *SrPoliciesV2Details) Marshal(b []byte) ([]byte, error)
func (*SrPoliciesV2Details) Reset ¶
func (m *SrPoliciesV2Details) Reset()
func (*SrPoliciesV2Details) Size ¶
func (m *SrPoliciesV2Details) Size() (size int)
func (*SrPoliciesV2Details) Unmarshal ¶
func (m *SrPoliciesV2Details) Unmarshal(b []byte) error
type SrPoliciesV2Dump ¶
type SrPoliciesV2Dump struct{}
Dump the list of SR policies v2 SrPoliciesV2Dump defines message 'sr_policies_v2_dump'.
func (*SrPoliciesV2Dump) GetCrcString ¶
func (*SrPoliciesV2Dump) GetCrcString() string
func (*SrPoliciesV2Dump) GetMessageName ¶
func (*SrPoliciesV2Dump) GetMessageName() string
func (*SrPoliciesV2Dump) GetMessageType ¶
func (*SrPoliciesV2Dump) GetMessageType() api.MessageType
func (*SrPoliciesV2Dump) Reset ¶
func (m *SrPoliciesV2Dump) Reset()
func (*SrPoliciesV2Dump) Size ¶
func (m *SrPoliciesV2Dump) Size() (size int)
func (*SrPoliciesV2Dump) Unmarshal ¶
func (m *SrPoliciesV2Dump) Unmarshal(b []byte) error
type SrPoliciesWithSlIndexDetails ¶
type SrPoliciesWithSlIndexDetails struct { Bsid ip_types.IP6Address `binapi:"ip6_address,name=bsid" json:"bsid,omitempty"` IsSpray bool `binapi:"bool,name=is_spray" json:"is_spray,omitempty"` IsEncap bool `binapi:"bool,name=is_encap" json:"is_encap,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"` NumSidLists uint8 `binapi:"u8,name=num_sid_lists" json:"-"` SidLists []Srv6SidListWithSlIndex `binapi:"srv6_sid_list_with_sl_index[num_sid_lists],name=sid_lists" json:"sid_lists,omitempty"` }
SrPoliciesWithSlIndexDetails defines message 'sr_policies_with_sl_index_details'. InProgress: the message form may change in the future versions
func (*SrPoliciesWithSlIndexDetails) GetCrcString ¶
func (*SrPoliciesWithSlIndexDetails) GetCrcString() string
func (*SrPoliciesWithSlIndexDetails) GetMessageName ¶
func (*SrPoliciesWithSlIndexDetails) GetMessageName() string
func (*SrPoliciesWithSlIndexDetails) GetMessageType ¶
func (*SrPoliciesWithSlIndexDetails) GetMessageType() api.MessageType
func (*SrPoliciesWithSlIndexDetails) Marshal ¶
func (m *SrPoliciesWithSlIndexDetails) Marshal(b []byte) ([]byte, error)
func (*SrPoliciesWithSlIndexDetails) Reset ¶
func (m *SrPoliciesWithSlIndexDetails) Reset()
func (*SrPoliciesWithSlIndexDetails) Size ¶
func (m *SrPoliciesWithSlIndexDetails) Size() (size int)
func (*SrPoliciesWithSlIndexDetails) Unmarshal ¶
func (m *SrPoliciesWithSlIndexDetails) Unmarshal(b []byte) error
type SrPoliciesWithSlIndexDump ¶
type SrPoliciesWithSlIndexDump struct{}
Dump the list of SR policies along with actual segment list index on VPP SrPoliciesWithSlIndexDump defines message 'sr_policies_with_sl_index_dump'. InProgress: the message form may change in the future versions
func (*SrPoliciesWithSlIndexDump) GetCrcString ¶
func (*SrPoliciesWithSlIndexDump) GetCrcString() string
func (*SrPoliciesWithSlIndexDump) GetMessageName ¶
func (*SrPoliciesWithSlIndexDump) GetMessageName() string
func (*SrPoliciesWithSlIndexDump) GetMessageType ¶
func (*SrPoliciesWithSlIndexDump) GetMessageType() api.MessageType
func (*SrPoliciesWithSlIndexDump) Marshal ¶
func (m *SrPoliciesWithSlIndexDump) Marshal(b []byte) ([]byte, error)
func (*SrPoliciesWithSlIndexDump) Reset ¶
func (m *SrPoliciesWithSlIndexDump) Reset()
func (*SrPoliciesWithSlIndexDump) Size ¶
func (m *SrPoliciesWithSlIndexDump) Size() (size int)
func (*SrPoliciesWithSlIndexDump) Unmarshal ¶
func (m *SrPoliciesWithSlIndexDump) Unmarshal(b []byte) error
type SrPolicyAdd ¶
type SrPolicyAdd struct { BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"` Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"` IsEncap bool `binapi:"bool,name=is_encap" json:"is_encap,omitempty"` IsSpray bool `binapi:"bool,name=is_spray" json:"is_spray,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"` Sids Srv6SidList `binapi:"srv6_sid_list,name=sids" json:"sids,omitempty"` }
IPv6 SR policy add
- bsid is the bindingSID of the SR Policy
- weight is the weight of the sid list. optional.
- is_encap is the behavior of the SR policy. (0.SRH insert // 1.Encapsulation)
- is_spray is the type of the SR policy. (0.Default // 1.Spray)
- fib_table is the VRF where to install the FIB entry for the BSID
- sids is a srv6_sid_list object
SrPolicyAdd defines 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()
func (*SrPolicyAdd) Size ¶
func (m *SrPolicyAdd) Size() (size int)
func (*SrPolicyAdd) Unmarshal ¶
func (m *SrPolicyAdd) Unmarshal(b []byte) error
type SrPolicyAddReply ¶
type SrPolicyAddReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrPolicyAddReply defines 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()
func (*SrPolicyAddReply) Size ¶
func (m *SrPolicyAddReply) Size() (size int)
func (*SrPolicyAddReply) Unmarshal ¶
func (m *SrPolicyAddReply) Unmarshal(b []byte) error
type SrPolicyAddV2 ¶
type SrPolicyAddV2 struct { BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"` Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"` IsEncap bool `binapi:"bool,name=is_encap" json:"is_encap,omitempty"` Type SrPolicyType `binapi:"sr_policy_type,name=type,default=0" json:"type,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"` Sids Srv6SidList `binapi:"srv6_sid_list,name=sids" json:"sids,omitempty"` EncapSrc ip_types.IP6Address `binapi:"ip6_address,name=encap_src" json:"encap_src,omitempty"` }
IPv6 SR policy add
- bsid is the bindingSID of the SR Policy
- weight is the weight of the sid list. optional.
- is_encap is the behavior of the SR policy. (0.SRH insert // 1.Encapsulation)
- type is the SR policy param. (0.Default // 1.Spray // 2.Tef)
- fib_table is the VRF where to install the FIB entry for the BSID
- sids is a srv6_sid_list object
- encap_src is a encaps IPv6 source addr. optional.
SrPolicyAddV2 defines message 'sr_policy_add_v2'. InProgress: the message form may change in the future versions
func (*SrPolicyAddV2) GetCrcString ¶
func (*SrPolicyAddV2) GetCrcString() string
func (*SrPolicyAddV2) GetMessageName ¶
func (*SrPolicyAddV2) GetMessageName() string
func (*SrPolicyAddV2) GetMessageType ¶
func (*SrPolicyAddV2) GetMessageType() api.MessageType
func (*SrPolicyAddV2) Reset ¶
func (m *SrPolicyAddV2) Reset()
func (*SrPolicyAddV2) Size ¶
func (m *SrPolicyAddV2) Size() (size int)
func (*SrPolicyAddV2) Unmarshal ¶
func (m *SrPolicyAddV2) Unmarshal(b []byte) error
type SrPolicyAddV2Reply ¶
type SrPolicyAddV2Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrPolicyAddV2Reply defines message 'sr_policy_add_v2_reply'. InProgress: the message form may change in the future versions
func (*SrPolicyAddV2Reply) GetCrcString ¶
func (*SrPolicyAddV2Reply) GetCrcString() string
func (*SrPolicyAddV2Reply) GetMessageName ¶
func (*SrPolicyAddV2Reply) GetMessageName() string
func (*SrPolicyAddV2Reply) GetMessageType ¶
func (*SrPolicyAddV2Reply) GetMessageType() api.MessageType
func (*SrPolicyAddV2Reply) Reset ¶
func (m *SrPolicyAddV2Reply) Reset()
func (*SrPolicyAddV2Reply) Size ¶
func (m *SrPolicyAddV2Reply) Size() (size int)
func (*SrPolicyAddV2Reply) Unmarshal ¶
func (m *SrPolicyAddV2Reply) Unmarshal(b []byte) error
type SrPolicyDel ¶
type SrPolicyDel struct { BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"` SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"` }
IPv6 SR policy deletion
- bsid is the bindingSID of the SR Policy
- index is the index of the SR policy
SrPolicyDel defines 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()
func (*SrPolicyDel) Size ¶
func (m *SrPolicyDel) Size() (size int)
func (*SrPolicyDel) Unmarshal ¶
func (m *SrPolicyDel) Unmarshal(b []byte) error
type SrPolicyDelReply ¶
type SrPolicyDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrPolicyDelReply defines 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()
func (*SrPolicyDelReply) Size ¶
func (m *SrPolicyDelReply) Size() (size int)
func (*SrPolicyDelReply) Unmarshal ¶
func (m *SrPolicyDelReply) Unmarshal(b []byte) error
type SrPolicyMod ¶
type SrPolicyMod struct { BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"` SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,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"` Sids Srv6SidList `binapi:"srv6_sid_list,name=sids" json:"sids,omitempty"` }
IPv6 SR policy modification
- bsid is the bindingSID of the SR Policy
- sr_policy_index is the index of the SR policy
- fib_table is the VRF where to install the FIB entry for the BSID
- operation is the operation to perform (among the top ones)
- sl_index is the index of the Segment List to modify/delete
- weight is the weight of the sid list. optional.
- sids is a srv6_sid_list object
SrPolicyMod defines 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()
func (*SrPolicyMod) Size ¶
func (m *SrPolicyMod) Size() (size int)
func (*SrPolicyMod) Unmarshal ¶
func (m *SrPolicyMod) Unmarshal(b []byte) error
type SrPolicyModReply ¶
type SrPolicyModReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrPolicyModReply defines 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()
func (*SrPolicyModReply) Size ¶
func (m *SrPolicyModReply) Size() (size int)
func (*SrPolicyModReply) Unmarshal ¶
func (m *SrPolicyModReply) Unmarshal(b []byte) error
type SrPolicyModV2 ¶
type SrPolicyModV2 struct { BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"` SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,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"` Sids Srv6SidList `binapi:"srv6_sid_list,name=sids" json:"sids,omitempty"` EncapSrc ip_types.IP6Address `binapi:"ip6_address,name=encap_src" json:"encap_src,omitempty"` }
IPv6 SR policy modification
- bsid is the bindingSID of the SR Policy
- sr_policy_index is the index of the SR policy
- fib_table is the VRF where to install the FIB entry for the BSID
- operation is the operation to perform (among the top ones)
- sl_index is the index of the Segment List to modify/delete
- weight is the weight of the sid list. optional.
- sids is a srv6_sid_list object
- encap_src is a encaps IPv6 source addr. optional.
SrPolicyModV2 defines message 'sr_policy_mod_v2'. InProgress: the message form may change in the future versions
func (*SrPolicyModV2) GetCrcString ¶
func (*SrPolicyModV2) GetCrcString() string
func (*SrPolicyModV2) GetMessageName ¶
func (*SrPolicyModV2) GetMessageName() string
func (*SrPolicyModV2) GetMessageType ¶
func (*SrPolicyModV2) GetMessageType() api.MessageType
func (*SrPolicyModV2) Reset ¶
func (m *SrPolicyModV2) Reset()
func (*SrPolicyModV2) Size ¶
func (m *SrPolicyModV2) Size() (size int)
func (*SrPolicyModV2) Unmarshal ¶
func (m *SrPolicyModV2) Unmarshal(b []byte) error
type SrPolicyModV2Reply ¶
type SrPolicyModV2Reply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrPolicyModV2Reply defines message 'sr_policy_mod_v2_reply'. InProgress: the message form may change in the future versions
func (*SrPolicyModV2Reply) GetCrcString ¶
func (*SrPolicyModV2Reply) GetCrcString() string
func (*SrPolicyModV2Reply) GetMessageName ¶
func (*SrPolicyModV2Reply) GetMessageName() string
func (*SrPolicyModV2Reply) GetMessageType ¶
func (*SrPolicyModV2Reply) GetMessageType() api.MessageType
func (*SrPolicyModV2Reply) Reset ¶
func (m *SrPolicyModV2Reply) Reset()
func (*SrPolicyModV2Reply) Size ¶
func (m *SrPolicyModV2Reply) Size() (size int)
func (*SrPolicyModV2Reply) Unmarshal ¶
func (m *SrPolicyModV2Reply) Unmarshal(b []byte) error
type SrPolicyType ¶
type SrPolicyType uint8
SrPolicyType defines enum 'sr_policy_type'.
const ( SR_API_POLICY_TYPE_DEFAULT SrPolicyType = 0 SR_API_POLICY_TYPE_SPRAY SrPolicyType = 1 SR_API_POLICY_TYPE_TEF SrPolicyType = 2 )
func (SrPolicyType) String ¶
func (x SrPolicyType) String() string
type SrSetEncapHopLimit ¶
type SrSetEncapHopLimit struct {
HopLimit uint8 `binapi:"u8,name=hop_limit" json:"hop_limit,omitempty"`
}
IPv6 SR Set SRv6 encapsulation hop-limit
- hop_limit is the hop-limit value to set
SrSetEncapHopLimit defines message 'sr_set_encap_hop_limit'.
func (*SrSetEncapHopLimit) GetCrcString ¶
func (*SrSetEncapHopLimit) GetCrcString() string
func (*SrSetEncapHopLimit) GetMessageName ¶
func (*SrSetEncapHopLimit) GetMessageName() string
func (*SrSetEncapHopLimit) GetMessageType ¶
func (*SrSetEncapHopLimit) GetMessageType() api.MessageType
func (*SrSetEncapHopLimit) Reset ¶
func (m *SrSetEncapHopLimit) Reset()
func (*SrSetEncapHopLimit) Size ¶
func (m *SrSetEncapHopLimit) Size() (size int)
func (*SrSetEncapHopLimit) Unmarshal ¶
func (m *SrSetEncapHopLimit) Unmarshal(b []byte) error
type SrSetEncapHopLimitReply ¶
type SrSetEncapHopLimitReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrSetEncapHopLimitReply defines message 'sr_set_encap_hop_limit_reply'.
func (*SrSetEncapHopLimitReply) GetCrcString ¶
func (*SrSetEncapHopLimitReply) GetCrcString() string
func (*SrSetEncapHopLimitReply) GetMessageName ¶
func (*SrSetEncapHopLimitReply) GetMessageName() string
func (*SrSetEncapHopLimitReply) GetMessageType ¶
func (*SrSetEncapHopLimitReply) GetMessageType() api.MessageType
func (*SrSetEncapHopLimitReply) Marshal ¶
func (m *SrSetEncapHopLimitReply) Marshal(b []byte) ([]byte, error)
func (*SrSetEncapHopLimitReply) Reset ¶
func (m *SrSetEncapHopLimitReply) Reset()
func (*SrSetEncapHopLimitReply) Size ¶
func (m *SrSetEncapHopLimitReply) Size() (size int)
func (*SrSetEncapHopLimitReply) Unmarshal ¶
func (m *SrSetEncapHopLimitReply) Unmarshal(b []byte) error
type SrSetEncapSource ¶
type SrSetEncapSource struct {
EncapsSource ip_types.IP6Address `binapi:"ip6_address,name=encaps_source" json:"encaps_source,omitempty"`
}
IPv6 SR Set SRv6 encapsulation source
- bsid is the bindingSID of the SR Policy
- index is the index of the SR policy
SrSetEncapSource defines 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()
func (*SrSetEncapSource) Size ¶
func (m *SrSetEncapSource) Size() (size int)
func (*SrSetEncapSource) Unmarshal ¶
func (m *SrSetEncapSource) Unmarshal(b []byte) error
type SrSetEncapSourceReply ¶
type SrSetEncapSourceReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrSetEncapSourceReply defines 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) Marshal ¶
func (m *SrSetEncapSourceReply) Marshal(b []byte) ([]byte, error)
func (*SrSetEncapSourceReply) Reset ¶
func (m *SrSetEncapSourceReply) Reset()
func (*SrSetEncapSourceReply) Size ¶
func (m *SrSetEncapSourceReply) Size() (size int)
func (*SrSetEncapSourceReply) Unmarshal ¶
func (m *SrSetEncapSourceReply) Unmarshal(b []byte) error
type SrSteeringAddDel ¶
type SrSteeringAddDel struct { IsDel bool `binapi:"bool,name=is_del,default=false" json:"is_del,omitempty"` BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"` SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"` TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` Prefix ip_types.Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` TrafficType sr_types.SrSteer `binapi:"sr_steer,name=traffic_type" json:"traffic_type,omitempty"` }
IPv6 SR steering add/del
- is_del
- bsid is the bindingSID of the SR Policy (alt to sr_policy_index)
- sr_policy is the index of the SR Policy (alt to bsid)
- table_id is the VRF where to install the FIB entry for the BSID
- prefix is the IPv4/v6 address for L3 traffic type
- mask_width is the mask for L3 traffic type
- sw_if_index is the incoming interface for L2 traffic
- traffic_type describes the type of traffic
SrSteeringAddDel defines 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()
func (*SrSteeringAddDel) Size ¶
func (m *SrSteeringAddDel) Size() (size int)
func (*SrSteeringAddDel) Unmarshal ¶
func (m *SrSteeringAddDel) Unmarshal(b []byte) error
type SrSteeringAddDelReply ¶
type SrSteeringAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
SrSteeringAddDelReply defines 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) Marshal ¶
func (m *SrSteeringAddDelReply) Marshal(b []byte) ([]byte, error)
func (*SrSteeringAddDelReply) Reset ¶
func (m *SrSteeringAddDelReply) Reset()
func (*SrSteeringAddDelReply) Size ¶
func (m *SrSteeringAddDelReply) Size() (size int)
func (*SrSteeringAddDelReply) Unmarshal ¶
func (m *SrSteeringAddDelReply) Unmarshal(b []byte) error
type SrSteeringPolDetails ¶
type SrSteeringPolDetails struct { TrafficType sr_types.SrSteer `binapi:"sr_steer,name=traffic_type" json:"traffic_type,omitempty"` FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"` Prefix ip_types.Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` Bsid ip_types.IP6Address `binapi:"ip6_address,name=bsid" json:"bsid,omitempty"` }
SrSteeringPolDetails defines 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) Marshal ¶
func (m *SrSteeringPolDetails) Marshal(b []byte) ([]byte, error)
func (*SrSteeringPolDetails) Reset ¶
func (m *SrSteeringPolDetails) Reset()
func (*SrSteeringPolDetails) Size ¶
func (m *SrSteeringPolDetails) Size() (size int)
func (*SrSteeringPolDetails) Unmarshal ¶
func (m *SrSteeringPolDetails) Unmarshal(b []byte) error
type SrSteeringPolDump ¶
type SrSteeringPolDump struct{}
Dump the steering policies SrSteeringPolDump defines 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()
func (*SrSteeringPolDump) Size ¶
func (m *SrSteeringPolDump) Size() (size int)
func (*SrSteeringPolDump) Unmarshal ¶
func (m *SrSteeringPolDump) Unmarshal(b []byte) error
type Srv6SidList ¶
type Srv6SidList struct { NumSids uint8 `binapi:"u8,name=num_sids" json:"num_sids,omitempty"` Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"` Sids [16]ip_types.IP6Address `binapi:"ip6_address[16],name=sids" json:"sids,omitempty"` }
Srv6SidList defines type 'srv6_sid_list'.
type Srv6SidListWithSlIndex ¶
type Srv6SidListWithSlIndex struct { NumSids uint8 `binapi:"u8,name=num_sids" json:"num_sids,omitempty"` Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"` SlIndex uint32 `binapi:"u32,name=sl_index" json:"sl_index,omitempty"` Sids [16]ip_types.IP6Address `binapi:"ip6_address[16],name=sids" json:"sids,omitempty"` }
Srv6SidListWithSlIndex defines type 'srv6_sid_list_with_sl_index'.