1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
5 // source: /usr/share/vpp/api/core/sr.api.json
8 Package sr contains generated code for VPP API file sr.api (2.0.0).
27 api "git.fd.io/govpp.git/api"
28 codec "git.fd.io/govpp.git/codec"
29 struc "github.com/lunixbochs/struc"
31 interface_types "git.fd.io/govpp.git/examples/binapi/interface_types"
32 ip_types "git.fd.io/govpp.git/examples/binapi/ip_types"
35 // This is a compile-time assertion to ensure that this generated file
36 // is compatible with the GoVPP api package it is being compiled against.
37 // A compilation error at this line likely means your copy of the
38 // GoVPP api package needs to be updated.
39 const _ = api.GoVppAPIPackageIsVersion2 // please upgrade the GoVPP api package
42 // ModuleName is the name of this module.
44 // APIVersion is the API version of this module.
46 // VersionCrc is the CRC of this module.
47 VersionCrc = 0xd85c77ca
50 type AddressFamily = ip_types.AddressFamily
52 type IfStatusFlags = interface_types.IfStatusFlags
54 type IfType = interface_types.IfType
56 type IPDscp = ip_types.IPDscp
58 type IPEcn = ip_types.IPEcn
60 type IPProto = ip_types.IPProto
62 type LinkDuplex = interface_types.LinkDuplex
64 type MtuProto = interface_types.MtuProto
66 type RxMode = interface_types.RxMode
68 // SrBehavior represents VPP binary API enum 'sr_behavior'.
72 SR_BEHAVIOR_API_END SrBehavior = 1
73 SR_BEHAVIOR_API_X SrBehavior = 2
74 SR_BEHAVIOR_API_T SrBehavior = 3
75 SR_BEHAVIOR_API_D_FIRST SrBehavior = 4
76 SR_BEHAVIOR_API_DX2 SrBehavior = 5
77 SR_BEHAVIOR_API_DX6 SrBehavior = 6
78 SR_BEHAVIOR_API_DX4 SrBehavior = 7
79 SR_BEHAVIOR_API_DT6 SrBehavior = 8
80 SR_BEHAVIOR_API_DT4 SrBehavior = 9
81 SR_BEHAVIOR_API_LAST SrBehavior = 10
85 SrBehavior_name = map[uint8]string{
86 1: "SR_BEHAVIOR_API_END",
87 2: "SR_BEHAVIOR_API_X",
88 3: "SR_BEHAVIOR_API_T",
89 4: "SR_BEHAVIOR_API_D_FIRST",
90 5: "SR_BEHAVIOR_API_DX2",
91 6: "SR_BEHAVIOR_API_DX6",
92 7: "SR_BEHAVIOR_API_DX4",
93 8: "SR_BEHAVIOR_API_DT6",
94 9: "SR_BEHAVIOR_API_DT4",
95 10: "SR_BEHAVIOR_API_LAST",
97 SrBehavior_value = map[string]uint8{
98 "SR_BEHAVIOR_API_END": 1,
99 "SR_BEHAVIOR_API_X": 2,
100 "SR_BEHAVIOR_API_T": 3,
101 "SR_BEHAVIOR_API_D_FIRST": 4,
102 "SR_BEHAVIOR_API_DX2": 5,
103 "SR_BEHAVIOR_API_DX6": 6,
104 "SR_BEHAVIOR_API_DX4": 7,
105 "SR_BEHAVIOR_API_DT6": 8,
106 "SR_BEHAVIOR_API_DT4": 9,
107 "SR_BEHAVIOR_API_LAST": 10,
111 func (x SrBehavior) String() string {
112 s, ok := SrBehavior_name[uint8(x)]
116 return "SrBehavior(" + strconv.Itoa(int(x)) + ")"
119 // SrPolicyOp represents VPP binary API enum 'sr_policy_op'.
120 type SrPolicyOp uint8
123 SR_POLICY_OP_API_NONE SrPolicyOp = 0
124 SR_POLICY_OP_API_ADD SrPolicyOp = 1
125 SR_POLICY_OP_API_DEL SrPolicyOp = 2
126 SR_POLICY_OP_API_MOD SrPolicyOp = 3
130 SrPolicyOp_name = map[uint8]string{
131 0: "SR_POLICY_OP_API_NONE",
132 1: "SR_POLICY_OP_API_ADD",
133 2: "SR_POLICY_OP_API_DEL",
134 3: "SR_POLICY_OP_API_MOD",
136 SrPolicyOp_value = map[string]uint8{
137 "SR_POLICY_OP_API_NONE": 0,
138 "SR_POLICY_OP_API_ADD": 1,
139 "SR_POLICY_OP_API_DEL": 2,
140 "SR_POLICY_OP_API_MOD": 3,
144 func (x SrPolicyOp) String() string {
145 s, ok := SrPolicyOp_name[uint8(x)]
149 return "SrPolicyOp(" + strconv.Itoa(int(x)) + ")"
152 // SrSteer represents VPP binary API enum 'sr_steer'.
156 SR_STEER_API_L2 SrSteer = 2
157 SR_STEER_API_IPV4 SrSteer = 4
158 SR_STEER_API_IPV6 SrSteer = 6
162 SrSteer_name = map[uint8]string{
163 2: "SR_STEER_API_L2",
164 4: "SR_STEER_API_IPV4",
165 6: "SR_STEER_API_IPV6",
167 SrSteer_value = map[string]uint8{
168 "SR_STEER_API_L2": 2,
169 "SR_STEER_API_IPV4": 4,
170 "SR_STEER_API_IPV6": 6,
174 func (x SrSteer) String() string {
175 s, ok := SrSteer_name[uint8(x)]
179 return "SrSteer(" + strconv.Itoa(int(x)) + ")"
182 type SubIfFlags = interface_types.SubIfFlags
184 type AddressWithPrefix = ip_types.AddressWithPrefix
186 type InterfaceIndex = interface_types.InterfaceIndex
188 type IP4Address = ip_types.IP4Address
190 type IP4AddressWithPrefix = ip_types.IP4AddressWithPrefix
192 type IP6Address = ip_types.IP6Address
194 type IP6AddressWithPrefix = ip_types.IP6AddressWithPrefix
196 type Address = ip_types.Address
198 type IP4Prefix = ip_types.IP4Prefix
200 type IP6Prefix = ip_types.IP6Prefix
202 type Mprefix = ip_types.Mprefix
204 type Prefix = ip_types.Prefix
206 type PrefixMatcher = ip_types.PrefixMatcher
208 // Srv6SidList represents VPP binary API type 'srv6_sid_list'.
209 type Srv6SidList struct {
210 NumSids uint8 `binapi:"u8,name=num_sids" json:"num_sids,omitempty"`
211 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"`
212 Sids [16]IP6Address `binapi:"ip6_address[16],name=sids" json:"sids,omitempty" struc:"[16]IP6Address"`
215 func (*Srv6SidList) GetTypeName() string { return "srv6_sid_list" }
217 type AddressUnion = ip_types.AddressUnion
219 // SrLocalsidAddDel represents VPP binary API message 'sr_localsid_add_del'.
220 type SrLocalsidAddDel struct {
221 IsDel bool `binapi:"bool,name=is_del,default=false" json:"is_del,omitempty"`
222 Localsid IP6Address `binapi:"ip6_address,name=localsid" json:"localsid,omitempty"`
223 EndPsp bool `binapi:"bool,name=end_psp" json:"end_psp,omitempty"`
224 Behavior SrBehavior `binapi:"sr_behavior,name=behavior" json:"behavior,omitempty"`
225 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
226 VlanIndex uint32 `binapi:"u32,name=vlan_index" json:"vlan_index,omitempty"`
227 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
228 NhAddr Address `binapi:"address,name=nh_addr" json:"nh_addr,omitempty"`
231 func (m *SrLocalsidAddDel) Reset() { *m = SrLocalsidAddDel{} }
232 func (*SrLocalsidAddDel) GetMessageName() string { return "sr_localsid_add_del" }
233 func (*SrLocalsidAddDel) GetCrcString() string { return "26fa3309" }
234 func (*SrLocalsidAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
236 func (m *SrLocalsidAddDel) Size() int {
243 // field[1] m.Localsid
247 // field[1] m.Behavior
249 // field[1] m.SwIfIndex
251 // field[1] m.VlanIndex
253 // field[1] m.FibTable
256 // field[2] m.NhAddr.Af
258 // field[2] m.NhAddr.Un
262 func (m *SrLocalsidAddDel) Marshal(b []byte) ([]byte, error) {
263 o := binary.BigEndian
269 buf = make([]byte, m.Size())
278 // field[1] m.Localsid
279 for i := 0; i < 16; i++ {
281 if i < len(m.Localsid) {
282 x = uint8(m.Localsid[i])
292 // field[1] m.Behavior
293 buf[pos] = uint8(m.Behavior)
295 // field[1] m.SwIfIndex
296 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
298 // field[1] m.VlanIndex
299 o.PutUint32(buf[pos:pos+4], uint32(m.VlanIndex))
301 // field[1] m.FibTable
302 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
305 // field[2] m.NhAddr.Af
306 buf[pos] = uint8(m.NhAddr.Af)
308 // field[2] m.NhAddr.Un
309 copy(buf[pos:pos+16], m.NhAddr.Un.XXX_UnionData[:])
313 func (m *SrLocalsidAddDel) Unmarshal(tmp []byte) error {
314 o := binary.BigEndian
319 m.IsDel = tmp[pos] != 0
321 // field[1] m.Localsid
322 for i := 0; i < len(m.Localsid); i++ {
323 m.Localsid[i] = uint8(tmp[pos])
327 m.EndPsp = tmp[pos] != 0
329 // field[1] m.Behavior
330 m.Behavior = SrBehavior(tmp[pos])
332 // field[1] m.SwIfIndex
333 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
335 // field[1] m.VlanIndex
336 m.VlanIndex = uint32(o.Uint32(tmp[pos : pos+4]))
338 // field[1] m.FibTable
339 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
342 // field[2] m.NhAddr.Af
343 m.NhAddr.Af = AddressFamily(tmp[pos])
345 // field[2] m.NhAddr.Un
346 copy(m.NhAddr.Un.XXX_UnionData[:], tmp[pos:pos+16])
351 // SrLocalsidAddDelReply represents VPP binary API message 'sr_localsid_add_del_reply'.
352 type SrLocalsidAddDelReply struct {
353 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
356 func (m *SrLocalsidAddDelReply) Reset() { *m = SrLocalsidAddDelReply{} }
357 func (*SrLocalsidAddDelReply) GetMessageName() string { return "sr_localsid_add_del_reply" }
358 func (*SrLocalsidAddDelReply) GetCrcString() string { return "e8d4e804" }
359 func (*SrLocalsidAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
361 func (m *SrLocalsidAddDelReply) Size() int {
370 func (m *SrLocalsidAddDelReply) Marshal(b []byte) ([]byte, error) {
371 o := binary.BigEndian
377 buf = make([]byte, m.Size())
382 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
386 func (m *SrLocalsidAddDelReply) Unmarshal(tmp []byte) error {
387 o := binary.BigEndian
392 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
397 // SrLocalsidsDetails represents VPP binary API message 'sr_localsids_details'.
398 type SrLocalsidsDetails struct {
399 Addr IP6Address `binapi:"ip6_address,name=addr" json:"addr,omitempty"`
400 EndPsp bool `binapi:"bool,name=end_psp" json:"end_psp,omitempty"`
401 Behavior SrBehavior `binapi:"sr_behavior,name=behavior" json:"behavior,omitempty"`
402 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
403 VlanIndex uint32 `binapi:"u32,name=vlan_index" json:"vlan_index,omitempty"`
404 XconnectNhAddr Address `binapi:"address,name=xconnect_nh_addr" json:"xconnect_nh_addr,omitempty"`
405 XconnectIfaceOrVrfTable uint32 `binapi:"u32,name=xconnect_iface_or_vrf_table" json:"xconnect_iface_or_vrf_table,omitempty"`
408 func (m *SrLocalsidsDetails) Reset() { *m = SrLocalsidsDetails{} }
409 func (*SrLocalsidsDetails) GetMessageName() string { return "sr_localsids_details" }
410 func (*SrLocalsidsDetails) GetCrcString() string { return "6a6c0265" }
411 func (*SrLocalsidsDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
413 func (m *SrLocalsidsDetails) Size() int {
422 // field[1] m.Behavior
424 // field[1] m.FibTable
426 // field[1] m.VlanIndex
428 // field[1] m.XconnectNhAddr
429 // field[2] m.XconnectNhAddr.Af
431 // field[2] m.XconnectNhAddr.Un
433 // field[1] m.XconnectIfaceOrVrfTable
437 func (m *SrLocalsidsDetails) Marshal(b []byte) ([]byte, error) {
438 o := binary.BigEndian
444 buf = make([]byte, m.Size())
449 for i := 0; i < 16; i++ {
462 // field[1] m.Behavior
463 buf[pos] = uint8(m.Behavior)
465 // field[1] m.FibTable
466 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
468 // field[1] m.VlanIndex
469 o.PutUint32(buf[pos:pos+4], uint32(m.VlanIndex))
471 // field[1] m.XconnectNhAddr
472 // field[2] m.XconnectNhAddr.Af
473 buf[pos] = uint8(m.XconnectNhAddr.Af)
475 // field[2] m.XconnectNhAddr.Un
476 copy(buf[pos:pos+16], m.XconnectNhAddr.Un.XXX_UnionData[:])
478 // field[1] m.XconnectIfaceOrVrfTable
479 o.PutUint32(buf[pos:pos+4], uint32(m.XconnectIfaceOrVrfTable))
483 func (m *SrLocalsidsDetails) Unmarshal(tmp []byte) error {
484 o := binary.BigEndian
489 for i := 0; i < len(m.Addr); i++ {
490 m.Addr[i] = uint8(tmp[pos])
494 m.EndPsp = tmp[pos] != 0
496 // field[1] m.Behavior
497 m.Behavior = SrBehavior(tmp[pos])
499 // field[1] m.FibTable
500 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
502 // field[1] m.VlanIndex
503 m.VlanIndex = uint32(o.Uint32(tmp[pos : pos+4]))
505 // field[1] m.XconnectNhAddr
506 // field[2] m.XconnectNhAddr.Af
507 m.XconnectNhAddr.Af = AddressFamily(tmp[pos])
509 // field[2] m.XconnectNhAddr.Un
510 copy(m.XconnectNhAddr.Un.XXX_UnionData[:], tmp[pos:pos+16])
512 // field[1] m.XconnectIfaceOrVrfTable
513 m.XconnectIfaceOrVrfTable = uint32(o.Uint32(tmp[pos : pos+4]))
518 // SrLocalsidsDump represents VPP binary API message 'sr_localsids_dump'.
519 type SrLocalsidsDump struct{}
521 func (m *SrLocalsidsDump) Reset() { *m = SrLocalsidsDump{} }
522 func (*SrLocalsidsDump) GetMessageName() string { return "sr_localsids_dump" }
523 func (*SrLocalsidsDump) GetCrcString() string { return "51077d14" }
524 func (*SrLocalsidsDump) GetMessageType() api.MessageType { return api.RequestMessage }
526 func (m *SrLocalsidsDump) Size() int {
533 func (m *SrLocalsidsDump) Marshal(b []byte) ([]byte, error) {
534 o := binary.BigEndian
540 buf = make([]byte, m.Size())
546 func (m *SrLocalsidsDump) Unmarshal(tmp []byte) error {
547 o := binary.BigEndian
554 // SrPoliciesDetails represents VPP binary API message 'sr_policies_details'.
555 type SrPoliciesDetails struct {
556 Bsid IP6Address `binapi:"ip6_address,name=bsid" json:"bsid,omitempty"`
557 IsSpray bool `binapi:"bool,name=is_spray" json:"is_spray,omitempty"`
558 IsEncap bool `binapi:"bool,name=is_encap" json:"is_encap,omitempty"`
559 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
560 NumSidLists uint8 `binapi:"u8,name=num_sid_lists" json:"num_sid_lists,omitempty" struc:"sizeof=SidLists"`
561 SidLists []Srv6SidList `binapi:"srv6_sid_list[num_sid_lists],name=sid_lists" json:"sid_lists,omitempty"`
564 func (m *SrPoliciesDetails) Reset() { *m = SrPoliciesDetails{} }
565 func (*SrPoliciesDetails) GetMessageName() string { return "sr_policies_details" }
566 func (*SrPoliciesDetails) GetCrcString() string { return "07ec2d93" }
567 func (*SrPoliciesDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
569 func (m *SrPoliciesDetails) Size() int {
576 // field[1] m.IsSpray
578 // field[1] m.IsEncap
580 // field[1] m.FibTable
582 // field[1] m.NumSidLists
584 // field[1] m.SidLists
585 for j1 := 0; j1 < len(m.SidLists); j1++ {
588 if j1 < len(m.SidLists) {
591 // field[2] s1.NumSids
593 // field[2] s1.Weight
596 for j2 := 0; j2 < 16; j2++ {
599 if j2 < len(s1.Sids) {
607 func (m *SrPoliciesDetails) Marshal(b []byte) ([]byte, error) {
608 o := binary.BigEndian
614 buf = make([]byte, m.Size())
619 for i := 0; i < 16; i++ {
627 // field[1] m.IsSpray
632 // field[1] m.IsEncap
637 // field[1] m.FibTable
638 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
640 // field[1] m.NumSidLists
641 buf[pos] = uint8(len(m.SidLists))
643 // field[1] m.SidLists
644 for j1 := 0; j1 < len(m.SidLists); j1++ {
646 if j1 < len(m.SidLists) {
649 // field[2] v1.NumSids
650 buf[pos] = uint8(v1.NumSids)
652 // field[2] v1.Weight
653 o.PutUint32(buf[pos:pos+4], uint32(v1.Weight))
656 for j2 := 0; j2 < 16; j2++ {
658 if j2 < len(v1.Sids) {
661 for i := 0; i < 16; i++ {
673 func (m *SrPoliciesDetails) Unmarshal(tmp []byte) error {
674 o := binary.BigEndian
679 for i := 0; i < len(m.Bsid); i++ {
680 m.Bsid[i] = uint8(tmp[pos])
683 // field[1] m.IsSpray
684 m.IsSpray = tmp[pos] != 0
686 // field[1] m.IsEncap
687 m.IsEncap = tmp[pos] != 0
689 // field[1] m.FibTable
690 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
692 // field[1] m.NumSidLists
693 m.NumSidLists = uint8(tmp[pos])
695 // field[1] m.SidLists
696 m.SidLists = make([]Srv6SidList, int(m.NumSidLists))
697 for j1 := 0; j1 < int(m.NumSidLists); j1++ {
698 // field[2] m.SidLists[j1].NumSids
699 m.SidLists[j1].NumSids = uint8(tmp[pos])
701 // field[2] m.SidLists[j1].Weight
702 m.SidLists[j1].Weight = uint32(o.Uint32(tmp[pos : pos+4]))
704 // field[2] m.SidLists[j1].Sids
705 for j2 := 0; j2 < 16; j2++ {
706 for i := 0; i < len(m.SidLists[j1].Sids[j2]); i++ {
707 m.SidLists[j1].Sids[j2][i] = uint8(tmp[pos])
715 // SrPoliciesDump represents VPP binary API message 'sr_policies_dump'.
716 type SrPoliciesDump struct{}
718 func (m *SrPoliciesDump) Reset() { *m = SrPoliciesDump{} }
719 func (*SrPoliciesDump) GetMessageName() string { return "sr_policies_dump" }
720 func (*SrPoliciesDump) GetCrcString() string { return "51077d14" }
721 func (*SrPoliciesDump) GetMessageType() api.MessageType { return api.RequestMessage }
723 func (m *SrPoliciesDump) Size() int {
730 func (m *SrPoliciesDump) Marshal(b []byte) ([]byte, error) {
731 o := binary.BigEndian
737 buf = make([]byte, m.Size())
743 func (m *SrPoliciesDump) Unmarshal(tmp []byte) error {
744 o := binary.BigEndian
751 // SrPolicyAdd represents VPP binary API message 'sr_policy_add'.
752 type SrPolicyAdd struct {
753 BsidAddr IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"`
754 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"`
755 IsEncap bool `binapi:"bool,name=is_encap" json:"is_encap,omitempty"`
756 IsSpray bool `binapi:"bool,name=is_spray" json:"is_spray,omitempty"`
757 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
758 Sids Srv6SidList `binapi:"srv6_sid_list,name=sids" json:"sids,omitempty"`
761 func (m *SrPolicyAdd) Reset() { *m = SrPolicyAdd{} }
762 func (*SrPolicyAdd) GetMessageName() string { return "sr_policy_add" }
763 func (*SrPolicyAdd) GetCrcString() string { return "ec79ee6a" }
764 func (*SrPolicyAdd) GetMessageType() api.MessageType { return api.RequestMessage }
766 func (m *SrPolicyAdd) Size() int {
771 // field[1] m.BsidAddr
775 // field[1] m.IsEncap
777 // field[1] m.IsSpray
779 // field[1] m.FibTable
782 // field[2] m.Sids.NumSids
784 // field[2] m.Sids.Weight
786 // field[2] m.Sids.Sids
787 for j2 := 0; j2 < 16; j2++ {
790 if j2 < len(m.Sids.Sids) {
797 func (m *SrPolicyAdd) Marshal(b []byte) ([]byte, error) {
798 o := binary.BigEndian
804 buf = make([]byte, m.Size())
808 // field[1] m.BsidAddr
809 for i := 0; i < 16; i++ {
811 if i < len(m.BsidAddr) {
812 x = uint8(m.BsidAddr[i])
818 o.PutUint32(buf[pos:pos+4], uint32(m.Weight))
820 // field[1] m.IsEncap
825 // field[1] m.IsSpray
830 // field[1] m.FibTable
831 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
834 // field[2] m.Sids.NumSids
835 buf[pos] = uint8(m.Sids.NumSids)
837 // field[2] m.Sids.Weight
838 o.PutUint32(buf[pos:pos+4], uint32(m.Sids.Weight))
840 // field[2] m.Sids.Sids
841 for j2 := 0; j2 < 16; j2++ {
843 if j2 < len(m.Sids.Sids) {
846 for i := 0; i < 16; i++ {
857 func (m *SrPolicyAdd) Unmarshal(tmp []byte) error {
858 o := binary.BigEndian
862 // field[1] m.BsidAddr
863 for i := 0; i < len(m.BsidAddr); i++ {
864 m.BsidAddr[i] = uint8(tmp[pos])
868 m.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
870 // field[1] m.IsEncap
871 m.IsEncap = tmp[pos] != 0
873 // field[1] m.IsSpray
874 m.IsSpray = tmp[pos] != 0
876 // field[1] m.FibTable
877 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
880 // field[2] m.Sids.NumSids
881 m.Sids.NumSids = uint8(tmp[pos])
883 // field[2] m.Sids.Weight
884 m.Sids.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
886 // field[2] m.Sids.Sids
887 for j2 := 0; j2 < 16; j2++ {
888 for i := 0; i < len(m.Sids.Sids[j2]); i++ {
889 m.Sids.Sids[j2][i] = uint8(tmp[pos])
896 // SrPolicyAddReply represents VPP binary API message 'sr_policy_add_reply'.
897 type SrPolicyAddReply struct {
898 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
901 func (m *SrPolicyAddReply) Reset() { *m = SrPolicyAddReply{} }
902 func (*SrPolicyAddReply) GetMessageName() string { return "sr_policy_add_reply" }
903 func (*SrPolicyAddReply) GetCrcString() string { return "e8d4e804" }
904 func (*SrPolicyAddReply) GetMessageType() api.MessageType { return api.ReplyMessage }
906 func (m *SrPolicyAddReply) Size() int {
915 func (m *SrPolicyAddReply) Marshal(b []byte) ([]byte, error) {
916 o := binary.BigEndian
922 buf = make([]byte, m.Size())
927 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
931 func (m *SrPolicyAddReply) Unmarshal(tmp []byte) error {
932 o := binary.BigEndian
937 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
942 // SrPolicyDel represents VPP binary API message 'sr_policy_del'.
943 type SrPolicyDel struct {
944 BsidAddr IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"`
945 SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"`
948 func (m *SrPolicyDel) Reset() { *m = SrPolicyDel{} }
949 func (*SrPolicyDel) GetMessageName() string { return "sr_policy_del" }
950 func (*SrPolicyDel) GetCrcString() string { return "cb4d48d5" }
951 func (*SrPolicyDel) GetMessageType() api.MessageType { return api.RequestMessage }
953 func (m *SrPolicyDel) Size() int {
958 // field[1] m.BsidAddr
960 // field[1] m.SrPolicyIndex
964 func (m *SrPolicyDel) Marshal(b []byte) ([]byte, error) {
965 o := binary.BigEndian
971 buf = make([]byte, m.Size())
975 // field[1] m.BsidAddr
976 for i := 0; i < 16; i++ {
978 if i < len(m.BsidAddr) {
979 x = uint8(m.BsidAddr[i])
984 // field[1] m.SrPolicyIndex
985 o.PutUint32(buf[pos:pos+4], uint32(m.SrPolicyIndex))
989 func (m *SrPolicyDel) Unmarshal(tmp []byte) error {
990 o := binary.BigEndian
994 // field[1] m.BsidAddr
995 for i := 0; i < len(m.BsidAddr); i++ {
996 m.BsidAddr[i] = uint8(tmp[pos])
999 // field[1] m.SrPolicyIndex
1000 m.SrPolicyIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1005 // SrPolicyDelReply represents VPP binary API message 'sr_policy_del_reply'.
1006 type SrPolicyDelReply struct {
1007 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1010 func (m *SrPolicyDelReply) Reset() { *m = SrPolicyDelReply{} }
1011 func (*SrPolicyDelReply) GetMessageName() string { return "sr_policy_del_reply" }
1012 func (*SrPolicyDelReply) GetCrcString() string { return "e8d4e804" }
1013 func (*SrPolicyDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1015 func (m *SrPolicyDelReply) Size() int {
1020 // field[1] m.Retval
1024 func (m *SrPolicyDelReply) Marshal(b []byte) ([]byte, error) {
1025 o := binary.BigEndian
1031 buf = make([]byte, m.Size())
1035 // field[1] m.Retval
1036 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1040 func (m *SrPolicyDelReply) Unmarshal(tmp []byte) error {
1041 o := binary.BigEndian
1045 // field[1] m.Retval
1046 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1051 // SrPolicyMod represents VPP binary API message 'sr_policy_mod'.
1052 type SrPolicyMod struct {
1053 BsidAddr IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"`
1054 SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"`
1055 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
1056 Operation SrPolicyOp `binapi:"sr_policy_op,name=operation" json:"operation,omitempty"`
1057 SlIndex uint32 `binapi:"u32,name=sl_index" json:"sl_index,omitempty"`
1058 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"`
1059 Sids Srv6SidList `binapi:"srv6_sid_list,name=sids" json:"sids,omitempty"`
1062 func (m *SrPolicyMod) Reset() { *m = SrPolicyMod{} }
1063 func (*SrPolicyMod) GetMessageName() string { return "sr_policy_mod" }
1064 func (*SrPolicyMod) GetCrcString() string { return "e531a102" }
1065 func (*SrPolicyMod) GetMessageType() api.MessageType { return api.RequestMessage }
1067 func (m *SrPolicyMod) Size() int {
1072 // field[1] m.BsidAddr
1074 // field[1] m.SrPolicyIndex
1076 // field[1] m.FibTable
1078 // field[1] m.Operation
1080 // field[1] m.SlIndex
1082 // field[1] m.Weight
1085 // field[2] m.Sids.NumSids
1087 // field[2] m.Sids.Weight
1089 // field[2] m.Sids.Sids
1090 for j2 := 0; j2 < 16; j2++ {
1093 if j2 < len(m.Sids.Sids) {
1094 s2 = m.Sids.Sids[j2]
1100 func (m *SrPolicyMod) Marshal(b []byte) ([]byte, error) {
1101 o := binary.BigEndian
1107 buf = make([]byte, m.Size())
1111 // field[1] m.BsidAddr
1112 for i := 0; i < 16; i++ {
1114 if i < len(m.BsidAddr) {
1115 x = uint8(m.BsidAddr[i])
1120 // field[1] m.SrPolicyIndex
1121 o.PutUint32(buf[pos:pos+4], uint32(m.SrPolicyIndex))
1123 // field[1] m.FibTable
1124 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
1126 // field[1] m.Operation
1127 buf[pos] = uint8(m.Operation)
1129 // field[1] m.SlIndex
1130 o.PutUint32(buf[pos:pos+4], uint32(m.SlIndex))
1132 // field[1] m.Weight
1133 o.PutUint32(buf[pos:pos+4], uint32(m.Weight))
1136 // field[2] m.Sids.NumSids
1137 buf[pos] = uint8(m.Sids.NumSids)
1139 // field[2] m.Sids.Weight
1140 o.PutUint32(buf[pos:pos+4], uint32(m.Sids.Weight))
1142 // field[2] m.Sids.Sids
1143 for j2 := 0; j2 < 16; j2++ {
1145 if j2 < len(m.Sids.Sids) {
1146 v2 = m.Sids.Sids[j2]
1148 for i := 0; i < 16; i++ {
1159 func (m *SrPolicyMod) Unmarshal(tmp []byte) error {
1160 o := binary.BigEndian
1164 // field[1] m.BsidAddr
1165 for i := 0; i < len(m.BsidAddr); i++ {
1166 m.BsidAddr[i] = uint8(tmp[pos])
1169 // field[1] m.SrPolicyIndex
1170 m.SrPolicyIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1172 // field[1] m.FibTable
1173 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
1175 // field[1] m.Operation
1176 m.Operation = SrPolicyOp(tmp[pos])
1178 // field[1] m.SlIndex
1179 m.SlIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1181 // field[1] m.Weight
1182 m.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
1185 // field[2] m.Sids.NumSids
1186 m.Sids.NumSids = uint8(tmp[pos])
1188 // field[2] m.Sids.Weight
1189 m.Sids.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
1191 // field[2] m.Sids.Sids
1192 for j2 := 0; j2 < 16; j2++ {
1193 for i := 0; i < len(m.Sids.Sids[j2]); i++ {
1194 m.Sids.Sids[j2][i] = uint8(tmp[pos])
1201 // SrPolicyModReply represents VPP binary API message 'sr_policy_mod_reply'.
1202 type SrPolicyModReply struct {
1203 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1206 func (m *SrPolicyModReply) Reset() { *m = SrPolicyModReply{} }
1207 func (*SrPolicyModReply) GetMessageName() string { return "sr_policy_mod_reply" }
1208 func (*SrPolicyModReply) GetCrcString() string { return "e8d4e804" }
1209 func (*SrPolicyModReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1211 func (m *SrPolicyModReply) Size() int {
1216 // field[1] m.Retval
1220 func (m *SrPolicyModReply) Marshal(b []byte) ([]byte, error) {
1221 o := binary.BigEndian
1227 buf = make([]byte, m.Size())
1231 // field[1] m.Retval
1232 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1236 func (m *SrPolicyModReply) Unmarshal(tmp []byte) error {
1237 o := binary.BigEndian
1241 // field[1] m.Retval
1242 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1247 // SrSetEncapHopLimit represents VPP binary API message 'sr_set_encap_hop_limit'.
1248 type SrSetEncapHopLimit struct {
1249 HopLimit uint8 `binapi:"u8,name=hop_limit" json:"hop_limit,omitempty"`
1252 func (m *SrSetEncapHopLimit) Reset() { *m = SrSetEncapHopLimit{} }
1253 func (*SrSetEncapHopLimit) GetMessageName() string { return "sr_set_encap_hop_limit" }
1254 func (*SrSetEncapHopLimit) GetCrcString() string { return "aa75d7d0" }
1255 func (*SrSetEncapHopLimit) GetMessageType() api.MessageType { return api.RequestMessage }
1257 func (m *SrSetEncapHopLimit) Size() int {
1262 // field[1] m.HopLimit
1266 func (m *SrSetEncapHopLimit) Marshal(b []byte) ([]byte, error) {
1267 o := binary.BigEndian
1273 buf = make([]byte, m.Size())
1277 // field[1] m.HopLimit
1278 buf[pos] = uint8(m.HopLimit)
1282 func (m *SrSetEncapHopLimit) Unmarshal(tmp []byte) error {
1283 o := binary.BigEndian
1287 // field[1] m.HopLimit
1288 m.HopLimit = uint8(tmp[pos])
1293 // SrSetEncapHopLimitReply represents VPP binary API message 'sr_set_encap_hop_limit_reply'.
1294 type SrSetEncapHopLimitReply struct {
1295 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1298 func (m *SrSetEncapHopLimitReply) Reset() { *m = SrSetEncapHopLimitReply{} }
1299 func (*SrSetEncapHopLimitReply) GetMessageName() string { return "sr_set_encap_hop_limit_reply" }
1300 func (*SrSetEncapHopLimitReply) GetCrcString() string { return "e8d4e804" }
1301 func (*SrSetEncapHopLimitReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1303 func (m *SrSetEncapHopLimitReply) Size() int {
1308 // field[1] m.Retval
1312 func (m *SrSetEncapHopLimitReply) Marshal(b []byte) ([]byte, error) {
1313 o := binary.BigEndian
1319 buf = make([]byte, m.Size())
1323 // field[1] m.Retval
1324 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1328 func (m *SrSetEncapHopLimitReply) Unmarshal(tmp []byte) error {
1329 o := binary.BigEndian
1333 // field[1] m.Retval
1334 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1339 // SrSetEncapSource represents VPP binary API message 'sr_set_encap_source'.
1340 type SrSetEncapSource struct {
1341 EncapsSource IP6Address `binapi:"ip6_address,name=encaps_source" json:"encaps_source,omitempty"`
1344 func (m *SrSetEncapSource) Reset() { *m = SrSetEncapSource{} }
1345 func (*SrSetEncapSource) GetMessageName() string { return "sr_set_encap_source" }
1346 func (*SrSetEncapSource) GetCrcString() string { return "d3bad5e1" }
1347 func (*SrSetEncapSource) GetMessageType() api.MessageType { return api.RequestMessage }
1349 func (m *SrSetEncapSource) Size() int {
1354 // field[1] m.EncapsSource
1358 func (m *SrSetEncapSource) Marshal(b []byte) ([]byte, error) {
1359 o := binary.BigEndian
1365 buf = make([]byte, m.Size())
1369 // field[1] m.EncapsSource
1370 for i := 0; i < 16; i++ {
1372 if i < len(m.EncapsSource) {
1373 x = uint8(m.EncapsSource[i])
1380 func (m *SrSetEncapSource) Unmarshal(tmp []byte) error {
1381 o := binary.BigEndian
1385 // field[1] m.EncapsSource
1386 for i := 0; i < len(m.EncapsSource); i++ {
1387 m.EncapsSource[i] = uint8(tmp[pos])
1393 // SrSetEncapSourceReply represents VPP binary API message 'sr_set_encap_source_reply'.
1394 type SrSetEncapSourceReply struct {
1395 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1398 func (m *SrSetEncapSourceReply) Reset() { *m = SrSetEncapSourceReply{} }
1399 func (*SrSetEncapSourceReply) GetMessageName() string { return "sr_set_encap_source_reply" }
1400 func (*SrSetEncapSourceReply) GetCrcString() string { return "e8d4e804" }
1401 func (*SrSetEncapSourceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1403 func (m *SrSetEncapSourceReply) Size() int {
1408 // field[1] m.Retval
1412 func (m *SrSetEncapSourceReply) Marshal(b []byte) ([]byte, error) {
1413 o := binary.BigEndian
1419 buf = make([]byte, m.Size())
1423 // field[1] m.Retval
1424 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1428 func (m *SrSetEncapSourceReply) Unmarshal(tmp []byte) error {
1429 o := binary.BigEndian
1433 // field[1] m.Retval
1434 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1439 // SrSteeringAddDel represents VPP binary API message 'sr_steering_add_del'.
1440 type SrSteeringAddDel struct {
1441 IsDel bool `binapi:"bool,name=is_del,default=false" json:"is_del,omitempty"`
1442 BsidAddr IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"`
1443 SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"`
1444 TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
1445 Prefix Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"`
1446 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1447 TrafficType SrSteer `binapi:"sr_steer,name=traffic_type" json:"traffic_type,omitempty"`
1450 func (m *SrSteeringAddDel) Reset() { *m = SrSteeringAddDel{} }
1451 func (*SrSteeringAddDel) GetMessageName() string { return "sr_steering_add_del" }
1452 func (*SrSteeringAddDel) GetCrcString() string { return "3711dace" }
1453 func (*SrSteeringAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
1455 func (m *SrSteeringAddDel) Size() int {
1462 // field[1] m.BsidAddr
1464 // field[1] m.SrPolicyIndex
1466 // field[1] m.TableID
1468 // field[1] m.Prefix
1469 // field[2] m.Prefix.Address
1470 // field[3] m.Prefix.Address.Af
1472 // field[3] m.Prefix.Address.Un
1474 // field[2] m.Prefix.Len
1476 // field[1] m.SwIfIndex
1478 // field[1] m.TrafficType
1482 func (m *SrSteeringAddDel) Marshal(b []byte) ([]byte, error) {
1483 o := binary.BigEndian
1489 buf = make([]byte, m.Size())
1498 // field[1] m.BsidAddr
1499 for i := 0; i < 16; i++ {
1501 if i < len(m.BsidAddr) {
1502 x = uint8(m.BsidAddr[i])
1507 // field[1] m.SrPolicyIndex
1508 o.PutUint32(buf[pos:pos+4], uint32(m.SrPolicyIndex))
1510 // field[1] m.TableID
1511 o.PutUint32(buf[pos:pos+4], uint32(m.TableID))
1513 // field[1] m.Prefix
1514 // field[2] m.Prefix.Address
1515 // field[3] m.Prefix.Address.Af
1516 buf[pos] = uint8(m.Prefix.Address.Af)
1518 // field[3] m.Prefix.Address.Un
1519 copy(buf[pos:pos+16], m.Prefix.Address.Un.XXX_UnionData[:])
1521 // field[2] m.Prefix.Len
1522 buf[pos] = uint8(m.Prefix.Len)
1524 // field[1] m.SwIfIndex
1525 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1527 // field[1] m.TrafficType
1528 buf[pos] = uint8(m.TrafficType)
1532 func (m *SrSteeringAddDel) Unmarshal(tmp []byte) error {
1533 o := binary.BigEndian
1538 m.IsDel = tmp[pos] != 0
1540 // field[1] m.BsidAddr
1541 for i := 0; i < len(m.BsidAddr); i++ {
1542 m.BsidAddr[i] = uint8(tmp[pos])
1545 // field[1] m.SrPolicyIndex
1546 m.SrPolicyIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1548 // field[1] m.TableID
1549 m.TableID = uint32(o.Uint32(tmp[pos : pos+4]))
1551 // field[1] m.Prefix
1552 // field[2] m.Prefix.Address
1553 // field[3] m.Prefix.Address.Af
1554 m.Prefix.Address.Af = AddressFamily(tmp[pos])
1556 // field[3] m.Prefix.Address.Un
1557 copy(m.Prefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
1559 // field[2] m.Prefix.Len
1560 m.Prefix.Len = uint8(tmp[pos])
1562 // field[1] m.SwIfIndex
1563 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1565 // field[1] m.TrafficType
1566 m.TrafficType = SrSteer(tmp[pos])
1571 // SrSteeringAddDelReply represents VPP binary API message 'sr_steering_add_del_reply'.
1572 type SrSteeringAddDelReply struct {
1573 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1576 func (m *SrSteeringAddDelReply) Reset() { *m = SrSteeringAddDelReply{} }
1577 func (*SrSteeringAddDelReply) GetMessageName() string { return "sr_steering_add_del_reply" }
1578 func (*SrSteeringAddDelReply) GetCrcString() string { return "e8d4e804" }
1579 func (*SrSteeringAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1581 func (m *SrSteeringAddDelReply) Size() int {
1586 // field[1] m.Retval
1590 func (m *SrSteeringAddDelReply) Marshal(b []byte) ([]byte, error) {
1591 o := binary.BigEndian
1597 buf = make([]byte, m.Size())
1601 // field[1] m.Retval
1602 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1606 func (m *SrSteeringAddDelReply) Unmarshal(tmp []byte) error {
1607 o := binary.BigEndian
1611 // field[1] m.Retval
1612 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1617 // SrSteeringPolDetails represents VPP binary API message 'sr_steering_pol_details'.
1618 type SrSteeringPolDetails struct {
1619 TrafficType SrSteer `binapi:"sr_steer,name=traffic_type" json:"traffic_type,omitempty"`
1620 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
1621 Prefix Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"`
1622 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1623 Bsid IP6Address `binapi:"ip6_address,name=bsid" json:"bsid,omitempty"`
1626 func (m *SrSteeringPolDetails) Reset() { *m = SrSteeringPolDetails{} }
1627 func (*SrSteeringPolDetails) GetMessageName() string { return "sr_steering_pol_details" }
1628 func (*SrSteeringPolDetails) GetCrcString() string { return "1c1ee786" }
1629 func (*SrSteeringPolDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
1631 func (m *SrSteeringPolDetails) Size() int {
1636 // field[1] m.TrafficType
1638 // field[1] m.FibTable
1640 // field[1] m.Prefix
1641 // field[2] m.Prefix.Address
1642 // field[3] m.Prefix.Address.Af
1644 // field[3] m.Prefix.Address.Un
1646 // field[2] m.Prefix.Len
1648 // field[1] m.SwIfIndex
1654 func (m *SrSteeringPolDetails) Marshal(b []byte) ([]byte, error) {
1655 o := binary.BigEndian
1661 buf = make([]byte, m.Size())
1665 // field[1] m.TrafficType
1666 buf[pos] = uint8(m.TrafficType)
1668 // field[1] m.FibTable
1669 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
1671 // field[1] m.Prefix
1672 // field[2] m.Prefix.Address
1673 // field[3] m.Prefix.Address.Af
1674 buf[pos] = uint8(m.Prefix.Address.Af)
1676 // field[3] m.Prefix.Address.Un
1677 copy(buf[pos:pos+16], m.Prefix.Address.Un.XXX_UnionData[:])
1679 // field[2] m.Prefix.Len
1680 buf[pos] = uint8(m.Prefix.Len)
1682 // field[1] m.SwIfIndex
1683 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1686 for i := 0; i < 16; i++ {
1688 if i < len(m.Bsid) {
1689 x = uint8(m.Bsid[i])
1696 func (m *SrSteeringPolDetails) Unmarshal(tmp []byte) error {
1697 o := binary.BigEndian
1701 // field[1] m.TrafficType
1702 m.TrafficType = SrSteer(tmp[pos])
1704 // field[1] m.FibTable
1705 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
1707 // field[1] m.Prefix
1708 // field[2] m.Prefix.Address
1709 // field[3] m.Prefix.Address.Af
1710 m.Prefix.Address.Af = AddressFamily(tmp[pos])
1712 // field[3] m.Prefix.Address.Un
1713 copy(m.Prefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
1715 // field[2] m.Prefix.Len
1716 m.Prefix.Len = uint8(tmp[pos])
1718 // field[1] m.SwIfIndex
1719 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1722 for i := 0; i < len(m.Bsid); i++ {
1723 m.Bsid[i] = uint8(tmp[pos])
1729 // SrSteeringPolDump represents VPP binary API message 'sr_steering_pol_dump'.
1730 type SrSteeringPolDump struct{}
1732 func (m *SrSteeringPolDump) Reset() { *m = SrSteeringPolDump{} }
1733 func (*SrSteeringPolDump) GetMessageName() string { return "sr_steering_pol_dump" }
1734 func (*SrSteeringPolDump) GetCrcString() string { return "51077d14" }
1735 func (*SrSteeringPolDump) GetMessageType() api.MessageType { return api.RequestMessage }
1737 func (m *SrSteeringPolDump) Size() int {
1744 func (m *SrSteeringPolDump) Marshal(b []byte) ([]byte, error) {
1745 o := binary.BigEndian
1751 buf = make([]byte, m.Size())
1757 func (m *SrSteeringPolDump) Unmarshal(tmp []byte) error {
1758 o := binary.BigEndian
1765 func init() { file_sr_binapi_init() }
1766 func file_sr_binapi_init() {
1767 api.RegisterMessage((*SrLocalsidAddDel)(nil), "sr.SrLocalsidAddDel")
1768 api.RegisterMessage((*SrLocalsidAddDelReply)(nil), "sr.SrLocalsidAddDelReply")
1769 api.RegisterMessage((*SrLocalsidsDetails)(nil), "sr.SrLocalsidsDetails")
1770 api.RegisterMessage((*SrLocalsidsDump)(nil), "sr.SrLocalsidsDump")
1771 api.RegisterMessage((*SrPoliciesDetails)(nil), "sr.SrPoliciesDetails")
1772 api.RegisterMessage((*SrPoliciesDump)(nil), "sr.SrPoliciesDump")
1773 api.RegisterMessage((*SrPolicyAdd)(nil), "sr.SrPolicyAdd")
1774 api.RegisterMessage((*SrPolicyAddReply)(nil), "sr.SrPolicyAddReply")
1775 api.RegisterMessage((*SrPolicyDel)(nil), "sr.SrPolicyDel")
1776 api.RegisterMessage((*SrPolicyDelReply)(nil), "sr.SrPolicyDelReply")
1777 api.RegisterMessage((*SrPolicyMod)(nil), "sr.SrPolicyMod")
1778 api.RegisterMessage((*SrPolicyModReply)(nil), "sr.SrPolicyModReply")
1779 api.RegisterMessage((*SrSetEncapHopLimit)(nil), "sr.SrSetEncapHopLimit")
1780 api.RegisterMessage((*SrSetEncapHopLimitReply)(nil), "sr.SrSetEncapHopLimitReply")
1781 api.RegisterMessage((*SrSetEncapSource)(nil), "sr.SrSetEncapSource")
1782 api.RegisterMessage((*SrSetEncapSourceReply)(nil), "sr.SrSetEncapSourceReply")
1783 api.RegisterMessage((*SrSteeringAddDel)(nil), "sr.SrSteeringAddDel")
1784 api.RegisterMessage((*SrSteeringAddDelReply)(nil), "sr.SrSteeringAddDelReply")
1785 api.RegisterMessage((*SrSteeringPolDetails)(nil), "sr.SrSteeringPolDetails")
1786 api.RegisterMessage((*SrSteeringPolDump)(nil), "sr.SrSteeringPolDump")
1789 // Messages returns list of all messages in this module.
1790 func AllMessages() []api.Message {
1791 return []api.Message{
1792 (*SrLocalsidAddDel)(nil),
1793 (*SrLocalsidAddDelReply)(nil),
1794 (*SrLocalsidsDetails)(nil),
1795 (*SrLocalsidsDump)(nil),
1796 (*SrPoliciesDetails)(nil),
1797 (*SrPoliciesDump)(nil),
1798 (*SrPolicyAdd)(nil),
1799 (*SrPolicyAddReply)(nil),
1800 (*SrPolicyDel)(nil),
1801 (*SrPolicyDelReply)(nil),
1802 (*SrPolicyMod)(nil),
1803 (*SrPolicyModReply)(nil),
1804 (*SrSetEncapHopLimit)(nil),
1805 (*SrSetEncapHopLimitReply)(nil),
1806 (*SrSetEncapSource)(nil),
1807 (*SrSetEncapSourceReply)(nil),
1808 (*SrSteeringAddDel)(nil),
1809 (*SrSteeringAddDelReply)(nil),
1810 (*SrSteeringPolDetails)(nil),
1811 (*SrSteeringPolDump)(nil),
1815 // Reference imports to suppress errors if they are not otherwise used.
1816 var _ = api.RegisterMessage
1817 var _ = codec.DecodeString
1818 var _ = bytes.NewBuffer
1819 var _ = context.Background
1821 var _ = strconv.Itoa
1823 var _ = binary.BigEndian
1824 var _ = math.Float32bits