1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-alpha-1-g435c3f4-dirty
4 // VPP: 20.01-45~g7a071e370~b63
5 // source: /usr/share/vpp/api/core/sr.api.json
8 Package sr contains generated code for VPP binary API defined by sr.api (version 1.2.0).
24 api "git.fd.io/govpp.git/api"
25 codec "git.fd.io/govpp.git/codec"
26 struc "github.com/lunixbochs/struc"
29 // This is a compile-time assertion to ensure that this generated file
30 // is compatible with the GoVPP api package it is being compiled against.
31 // A compilation error at this line likely means your copy of the
32 // GoVPP api package needs to be updated.
33 const _ = api.GoVppAPIPackageIsVersion2 // please upgrade the GoVPP api package
36 // ModuleName is the name of this module.
38 // APIVersion is the API version of this module.
40 // VersionCrc is the CRC of this module.
41 VersionCrc = 0xbf277f96
44 // SrIP6Address represents VPP binary API type 'sr_ip6_address'.
45 type SrIP6Address struct {
46 Data []byte `binapi:"u8[16],name=data" json:"data,omitempty" struc:"[16]byte"`
49 func (*SrIP6Address) GetTypeName() string { return "sr_ip6_address" }
51 // Srv6Sid represents VPP binary API type 'srv6_sid'.
53 Addr []byte `binapi:"u8[16],name=addr" json:"addr,omitempty" struc:"[16]byte"`
56 func (*Srv6Sid) GetTypeName() string { return "srv6_sid" }
58 // Srv6SidList represents VPP binary API type 'srv6_sid_list'.
59 type Srv6SidList struct {
60 NumSids uint8 `binapi:"u8,name=num_sids" json:"num_sids,omitempty"`
61 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"`
62 Sids [16]Srv6Sid `binapi:"srv6_sid[16],name=sids" json:"sids,omitempty" struc:"[16]Srv6Sid"`
65 func (*Srv6SidList) GetTypeName() string { return "srv6_sid_list" }
67 // SrLocalsidAddDel represents VPP binary API message 'sr_localsid_add_del'.
68 type SrLocalsidAddDel struct {
69 IsDel uint8 `binapi:"u8,name=is_del" json:"is_del,omitempty"`
70 Localsid Srv6Sid `binapi:"srv6_sid,name=localsid" json:"localsid,omitempty"`
71 EndPsp uint8 `binapi:"u8,name=end_psp" json:"end_psp,omitempty"`
72 Behavior uint8 `binapi:"u8,name=behavior" json:"behavior,omitempty"`
73 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
74 VlanIndex uint32 `binapi:"u32,name=vlan_index" json:"vlan_index,omitempty"`
75 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
76 NhAddr6 []byte `binapi:"u8[16],name=nh_addr6" json:"nh_addr6,omitempty" struc:"[16]byte"`
77 NhAddr4 []byte `binapi:"u8[4],name=nh_addr4" json:"nh_addr4,omitempty" struc:"[4]byte"`
80 func (m *SrLocalsidAddDel) Reset() { *m = SrLocalsidAddDel{} }
81 func (*SrLocalsidAddDel) GetMessageName() string { return "sr_localsid_add_del" }
82 func (*SrLocalsidAddDel) GetCrcString() string { return "b30489eb" }
83 func (*SrLocalsidAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
85 func (m *SrLocalsidAddDel) Size() int {
92 // field[1] m.Localsid
93 // field[2] m.Localsid.Addr
97 // field[1] m.Behavior
99 // field[1] m.SwIfIndex
101 // field[1] m.VlanIndex
103 // field[1] m.FibTable
105 // field[1] m.NhAddr6
107 // field[1] m.NhAddr4
111 func (m *SrLocalsidAddDel) Marshal(b []byte) ([]byte, error) {
112 o := binary.BigEndian
118 buf = make([]byte, m.Size())
123 buf[pos] = uint8(m.IsDel)
125 // field[1] m.Localsid
126 // field[2] m.Localsid.Addr
127 for i := 0; i < 16; i++ {
129 if i < len(m.Localsid.Addr) {
130 x = uint8(m.Localsid.Addr[i])
136 buf[pos] = uint8(m.EndPsp)
138 // field[1] m.Behavior
139 buf[pos] = uint8(m.Behavior)
141 // field[1] m.SwIfIndex
142 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
144 // field[1] m.VlanIndex
145 o.PutUint32(buf[pos:pos+4], uint32(m.VlanIndex))
147 // field[1] m.FibTable
148 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
150 // field[1] m.NhAddr6
151 for i := 0; i < 16; i++ {
153 if i < len(m.NhAddr6) {
154 x = uint8(m.NhAddr6[i])
159 // field[1] m.NhAddr4
160 for i := 0; i < 4; i++ {
162 if i < len(m.NhAddr4) {
163 x = uint8(m.NhAddr4[i])
170 func (m *SrLocalsidAddDel) Unmarshal(tmp []byte) error {
171 o := binary.BigEndian
176 m.IsDel = uint8(tmp[pos])
178 // field[1] m.Localsid
179 // field[2] m.Localsid.Addr
180 m.Localsid.Addr = make([]uint8, 16)
181 for i := 0; i < len(m.Localsid.Addr); i++ {
182 m.Localsid.Addr[i] = uint8(tmp[pos])
186 m.EndPsp = uint8(tmp[pos])
188 // field[1] m.Behavior
189 m.Behavior = uint8(tmp[pos])
191 // field[1] m.SwIfIndex
192 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
194 // field[1] m.VlanIndex
195 m.VlanIndex = uint32(o.Uint32(tmp[pos : pos+4]))
197 // field[1] m.FibTable
198 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
200 // field[1] m.NhAddr6
201 m.NhAddr6 = make([]uint8, 16)
202 for i := 0; i < len(m.NhAddr6); i++ {
203 m.NhAddr6[i] = uint8(tmp[pos])
206 // field[1] m.NhAddr4
207 m.NhAddr4 = make([]uint8, 4)
208 for i := 0; i < len(m.NhAddr4); i++ {
209 m.NhAddr4[i] = uint8(tmp[pos])
215 // SrLocalsidAddDelReply represents VPP binary API message 'sr_localsid_add_del_reply'.
216 type SrLocalsidAddDelReply struct {
217 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
220 func (m *SrLocalsidAddDelReply) Reset() { *m = SrLocalsidAddDelReply{} }
221 func (*SrLocalsidAddDelReply) GetMessageName() string { return "sr_localsid_add_del_reply" }
222 func (*SrLocalsidAddDelReply) GetCrcString() string { return "e8d4e804" }
223 func (*SrLocalsidAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
225 func (m *SrLocalsidAddDelReply) Size() int {
234 func (m *SrLocalsidAddDelReply) Marshal(b []byte) ([]byte, error) {
235 o := binary.BigEndian
241 buf = make([]byte, m.Size())
246 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
250 func (m *SrLocalsidAddDelReply) Unmarshal(tmp []byte) error {
251 o := binary.BigEndian
256 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
261 // SrLocalsidsDetails represents VPP binary API message 'sr_localsids_details'.
262 type SrLocalsidsDetails struct {
263 Addr Srv6Sid `binapi:"srv6_sid,name=addr" json:"addr,omitempty"`
264 EndPsp uint8 `binapi:"u8,name=end_psp" json:"end_psp,omitempty"`
265 Behavior uint16 `binapi:"u16,name=behavior" json:"behavior,omitempty"`
266 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
267 VlanIndex uint32 `binapi:"u32,name=vlan_index" json:"vlan_index,omitempty"`
268 XconnectNhAddr6 []byte `binapi:"u8[16],name=xconnect_nh_addr6" json:"xconnect_nh_addr6,omitempty" struc:"[16]byte"`
269 XconnectNhAddr4 []byte `binapi:"u8[4],name=xconnect_nh_addr4" json:"xconnect_nh_addr4,omitempty" struc:"[4]byte"`
270 XconnectIfaceOrVrfTable uint32 `binapi:"u32,name=xconnect_iface_or_vrf_table" json:"xconnect_iface_or_vrf_table,omitempty"`
273 func (m *SrLocalsidsDetails) Reset() { *m = SrLocalsidsDetails{} }
274 func (*SrLocalsidsDetails) GetMessageName() string { return "sr_localsids_details" }
275 func (*SrLocalsidsDetails) GetCrcString() string { return "0791babc" }
276 func (*SrLocalsidsDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
278 func (m *SrLocalsidsDetails) Size() int {
284 // field[2] m.Addr.Addr
288 // field[1] m.Behavior
290 // field[1] m.FibTable
292 // field[1] m.VlanIndex
294 // field[1] m.XconnectNhAddr6
296 // field[1] m.XconnectNhAddr4
298 // field[1] m.XconnectIfaceOrVrfTable
302 func (m *SrLocalsidsDetails) Marshal(b []byte) ([]byte, error) {
303 o := binary.BigEndian
309 buf = make([]byte, m.Size())
314 // field[2] m.Addr.Addr
315 for i := 0; i < 16; i++ {
317 if i < len(m.Addr.Addr) {
318 x = uint8(m.Addr.Addr[i])
324 buf[pos] = uint8(m.EndPsp)
326 // field[1] m.Behavior
327 o.PutUint16(buf[pos:pos+2], uint16(m.Behavior))
329 // field[1] m.FibTable
330 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
332 // field[1] m.VlanIndex
333 o.PutUint32(buf[pos:pos+4], uint32(m.VlanIndex))
335 // field[1] m.XconnectNhAddr6
336 for i := 0; i < 16; i++ {
338 if i < len(m.XconnectNhAddr6) {
339 x = uint8(m.XconnectNhAddr6[i])
344 // field[1] m.XconnectNhAddr4
345 for i := 0; i < 4; i++ {
347 if i < len(m.XconnectNhAddr4) {
348 x = uint8(m.XconnectNhAddr4[i])
353 // field[1] m.XconnectIfaceOrVrfTable
354 o.PutUint32(buf[pos:pos+4], uint32(m.XconnectIfaceOrVrfTable))
358 func (m *SrLocalsidsDetails) Unmarshal(tmp []byte) error {
359 o := binary.BigEndian
364 // field[2] m.Addr.Addr
365 m.Addr.Addr = make([]uint8, 16)
366 for i := 0; i < len(m.Addr.Addr); i++ {
367 m.Addr.Addr[i] = uint8(tmp[pos])
371 m.EndPsp = uint8(tmp[pos])
373 // field[1] m.Behavior
374 m.Behavior = uint16(o.Uint16(tmp[pos : pos+2]))
376 // field[1] m.FibTable
377 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
379 // field[1] m.VlanIndex
380 m.VlanIndex = uint32(o.Uint32(tmp[pos : pos+4]))
382 // field[1] m.XconnectNhAddr6
383 m.XconnectNhAddr6 = make([]uint8, 16)
384 for i := 0; i < len(m.XconnectNhAddr6); i++ {
385 m.XconnectNhAddr6[i] = uint8(tmp[pos])
388 // field[1] m.XconnectNhAddr4
389 m.XconnectNhAddr4 = make([]uint8, 4)
390 for i := 0; i < len(m.XconnectNhAddr4); i++ {
391 m.XconnectNhAddr4[i] = uint8(tmp[pos])
394 // field[1] m.XconnectIfaceOrVrfTable
395 m.XconnectIfaceOrVrfTable = uint32(o.Uint32(tmp[pos : pos+4]))
400 // SrLocalsidsDump represents VPP binary API message 'sr_localsids_dump'.
401 type SrLocalsidsDump struct{}
403 func (m *SrLocalsidsDump) Reset() { *m = SrLocalsidsDump{} }
404 func (*SrLocalsidsDump) GetMessageName() string { return "sr_localsids_dump" }
405 func (*SrLocalsidsDump) GetCrcString() string { return "51077d14" }
406 func (*SrLocalsidsDump) GetMessageType() api.MessageType { return api.RequestMessage }
408 func (m *SrLocalsidsDump) Size() int {
415 func (m *SrLocalsidsDump) Marshal(b []byte) ([]byte, error) {
416 o := binary.BigEndian
422 buf = make([]byte, m.Size())
428 func (m *SrLocalsidsDump) Unmarshal(tmp []byte) error {
429 o := binary.BigEndian
436 // SrPoliciesDetails represents VPP binary API message 'sr_policies_details'.
437 type SrPoliciesDetails struct {
438 Bsid Srv6Sid `binapi:"srv6_sid,name=bsid" json:"bsid,omitempty"`
439 Type uint8 `binapi:"u8,name=type" json:"type,omitempty"`
440 IsEncap uint8 `binapi:"u8,name=is_encap" json:"is_encap,omitempty"`
441 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
442 NumSidLists uint8 `binapi:"u8,name=num_sid_lists" json:"num_sid_lists,omitempty" struc:"sizeof=SidLists"`
443 SidLists []Srv6SidList `binapi:"srv6_sid_list[num_sid_lists],name=sid_lists" json:"sid_lists,omitempty"`
446 func (m *SrPoliciesDetails) Reset() { *m = SrPoliciesDetails{} }
447 func (*SrPoliciesDetails) GetMessageName() string { return "sr_policies_details" }
448 func (*SrPoliciesDetails) GetCrcString() string { return "5087f460" }
449 func (*SrPoliciesDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
451 func (m *SrPoliciesDetails) Size() int {
457 // field[2] m.Bsid.Addr
461 // field[1] m.IsEncap
463 // field[1] m.FibTable
465 // field[1] m.NumSidLists
467 // field[1] m.SidLists
468 for j1 := 0; j1 < len(m.SidLists); j1++ {
471 if j1 < len(m.SidLists) {
474 // field[2] s1.NumSids
476 // field[2] s1.Weight
479 for j2 := 0; j2 < 16; j2++ {
482 if j2 < len(s1.Sids) {
491 func (m *SrPoliciesDetails) Marshal(b []byte) ([]byte, error) {
492 o := binary.BigEndian
498 buf = make([]byte, m.Size())
503 // field[2] m.Bsid.Addr
504 for i := 0; i < 16; i++ {
506 if i < len(m.Bsid.Addr) {
507 x = uint8(m.Bsid.Addr[i])
513 buf[pos] = uint8(m.Type)
515 // field[1] m.IsEncap
516 buf[pos] = uint8(m.IsEncap)
518 // field[1] m.FibTable
519 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
521 // field[1] m.NumSidLists
522 buf[pos] = uint8(len(m.SidLists))
524 // field[1] m.SidLists
525 for j1 := 0; j1 < len(m.SidLists); j1++ {
527 if j1 < len(m.SidLists) {
530 // field[2] v1.NumSids
531 buf[pos] = uint8(v1.NumSids)
533 // field[2] v1.Weight
534 o.PutUint32(buf[pos:pos+4], uint32(v1.Weight))
537 for j2 := 0; j2 < 16; j2++ {
539 if j2 < len(v1.Sids) {
543 for i := 0; i < 16; i++ {
545 if i < len(v2.Addr) {
546 x = uint8(v2.Addr[i])
555 func (m *SrPoliciesDetails) Unmarshal(tmp []byte) error {
556 o := binary.BigEndian
561 // field[2] m.Bsid.Addr
562 m.Bsid.Addr = make([]uint8, 16)
563 for i := 0; i < len(m.Bsid.Addr); i++ {
564 m.Bsid.Addr[i] = uint8(tmp[pos])
568 m.Type = uint8(tmp[pos])
570 // field[1] m.IsEncap
571 m.IsEncap = uint8(tmp[pos])
573 // field[1] m.FibTable
574 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
576 // field[1] m.NumSidLists
577 m.NumSidLists = uint8(tmp[pos])
579 // field[1] m.SidLists
580 m.SidLists = make([]Srv6SidList, int(m.NumSidLists))
581 for j1 := 0; j1 < int(m.NumSidLists); j1++ {
582 // field[2] m.SidLists[j1].NumSids
583 m.SidLists[j1].NumSids = uint8(tmp[pos])
585 // field[2] m.SidLists[j1].Weight
586 m.SidLists[j1].Weight = uint32(o.Uint32(tmp[pos : pos+4]))
588 // field[2] m.SidLists[j1].Sids
589 for j2 := 0; j2 < 16; j2++ {
590 // field[3] m.SidLists[j1].Sids[j2].Addr
591 m.SidLists[j1].Sids[j2].Addr = make([]uint8, 16)
592 for i := 0; i < len(m.SidLists[j1].Sids[j2].Addr); i++ {
593 m.SidLists[j1].Sids[j2].Addr[i] = uint8(tmp[pos])
601 // SrPoliciesDump represents VPP binary API message 'sr_policies_dump'.
602 type SrPoliciesDump struct{}
604 func (m *SrPoliciesDump) Reset() { *m = SrPoliciesDump{} }
605 func (*SrPoliciesDump) GetMessageName() string { return "sr_policies_dump" }
606 func (*SrPoliciesDump) GetCrcString() string { return "51077d14" }
607 func (*SrPoliciesDump) GetMessageType() api.MessageType { return api.RequestMessage }
609 func (m *SrPoliciesDump) Size() int {
616 func (m *SrPoliciesDump) Marshal(b []byte) ([]byte, error) {
617 o := binary.BigEndian
623 buf = make([]byte, m.Size())
629 func (m *SrPoliciesDump) Unmarshal(tmp []byte) error {
630 o := binary.BigEndian
637 // SrPolicyAdd represents VPP binary API message 'sr_policy_add'.
638 type SrPolicyAdd struct {
639 BsidAddr []byte `binapi:"u8[16],name=bsid_addr" json:"bsid_addr,omitempty" struc:"[16]byte"`
640 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"`
641 IsEncap uint8 `binapi:"u8,name=is_encap" json:"is_encap,omitempty"`
642 Type uint8 `binapi:"u8,name=type" json:"type,omitempty"`
643 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
644 Sids Srv6SidList `binapi:"srv6_sid_list,name=sids" json:"sids,omitempty"`
647 func (m *SrPolicyAdd) Reset() { *m = SrPolicyAdd{} }
648 func (*SrPolicyAdd) GetMessageName() string { return "sr_policy_add" }
649 func (*SrPolicyAdd) GetCrcString() string { return "4b6e2484" }
650 func (*SrPolicyAdd) GetMessageType() api.MessageType { return api.RequestMessage }
652 func (m *SrPolicyAdd) Size() int {
657 // field[1] m.BsidAddr
661 // field[1] m.IsEncap
665 // field[1] m.FibTable
668 // field[2] m.Sids.NumSids
670 // field[2] m.Sids.Weight
672 // field[2] m.Sids.Sids
673 for j2 := 0; j2 < 16; j2++ {
676 if j2 < len(m.Sids.Sids) {
684 func (m *SrPolicyAdd) Marshal(b []byte) ([]byte, error) {
685 o := binary.BigEndian
691 buf = make([]byte, m.Size())
695 // field[1] m.BsidAddr
696 for i := 0; i < 16; i++ {
698 if i < len(m.BsidAddr) {
699 x = uint8(m.BsidAddr[i])
705 o.PutUint32(buf[pos:pos+4], uint32(m.Weight))
707 // field[1] m.IsEncap
708 buf[pos] = uint8(m.IsEncap)
711 buf[pos] = uint8(m.Type)
713 // field[1] m.FibTable
714 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
717 // field[2] m.Sids.NumSids
718 buf[pos] = uint8(m.Sids.NumSids)
720 // field[2] m.Sids.Weight
721 o.PutUint32(buf[pos:pos+4], uint32(m.Sids.Weight))
723 // field[2] m.Sids.Sids
724 for j2 := 0; j2 < 16; j2++ {
726 if j2 < len(m.Sids.Sids) {
730 for i := 0; i < 16; i++ {
732 if i < len(v2.Addr) {
733 x = uint8(v2.Addr[i])
741 func (m *SrPolicyAdd) Unmarshal(tmp []byte) error {
742 o := binary.BigEndian
746 // field[1] m.BsidAddr
747 m.BsidAddr = make([]uint8, 16)
748 for i := 0; i < len(m.BsidAddr); i++ {
749 m.BsidAddr[i] = uint8(tmp[pos])
753 m.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
755 // field[1] m.IsEncap
756 m.IsEncap = uint8(tmp[pos])
759 m.Type = uint8(tmp[pos])
761 // field[1] m.FibTable
762 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
765 // field[2] m.Sids.NumSids
766 m.Sids.NumSids = uint8(tmp[pos])
768 // field[2] m.Sids.Weight
769 m.Sids.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
771 // field[2] m.Sids.Sids
772 for j2 := 0; j2 < 16; j2++ {
773 // field[3] m.Sids.Sids[j2].Addr
774 m.Sids.Sids[j2].Addr = make([]uint8, 16)
775 for i := 0; i < len(m.Sids.Sids[j2].Addr); i++ {
776 m.Sids.Sids[j2].Addr[i] = uint8(tmp[pos])
783 // SrPolicyAddReply represents VPP binary API message 'sr_policy_add_reply'.
784 type SrPolicyAddReply struct {
785 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
788 func (m *SrPolicyAddReply) Reset() { *m = SrPolicyAddReply{} }
789 func (*SrPolicyAddReply) GetMessageName() string { return "sr_policy_add_reply" }
790 func (*SrPolicyAddReply) GetCrcString() string { return "e8d4e804" }
791 func (*SrPolicyAddReply) GetMessageType() api.MessageType { return api.ReplyMessage }
793 func (m *SrPolicyAddReply) Size() int {
802 func (m *SrPolicyAddReply) Marshal(b []byte) ([]byte, error) {
803 o := binary.BigEndian
809 buf = make([]byte, m.Size())
814 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
818 func (m *SrPolicyAddReply) Unmarshal(tmp []byte) error {
819 o := binary.BigEndian
824 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
829 // SrPolicyDel represents VPP binary API message 'sr_policy_del'.
830 type SrPolicyDel struct {
831 BsidAddr Srv6Sid `binapi:"srv6_sid,name=bsid_addr" json:"bsid_addr,omitempty"`
832 SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"`
835 func (m *SrPolicyDel) Reset() { *m = SrPolicyDel{} }
836 func (*SrPolicyDel) GetMessageName() string { return "sr_policy_del" }
837 func (*SrPolicyDel) GetCrcString() string { return "e4133171" }
838 func (*SrPolicyDel) GetMessageType() api.MessageType { return api.RequestMessage }
840 func (m *SrPolicyDel) Size() int {
845 // field[1] m.BsidAddr
846 // field[2] m.BsidAddr.Addr
848 // field[1] m.SrPolicyIndex
852 func (m *SrPolicyDel) Marshal(b []byte) ([]byte, error) {
853 o := binary.BigEndian
859 buf = make([]byte, m.Size())
863 // field[1] m.BsidAddr
864 // field[2] m.BsidAddr.Addr
865 for i := 0; i < 16; i++ {
867 if i < len(m.BsidAddr.Addr) {
868 x = uint8(m.BsidAddr.Addr[i])
873 // field[1] m.SrPolicyIndex
874 o.PutUint32(buf[pos:pos+4], uint32(m.SrPolicyIndex))
878 func (m *SrPolicyDel) Unmarshal(tmp []byte) error {
879 o := binary.BigEndian
883 // field[1] m.BsidAddr
884 // field[2] m.BsidAddr.Addr
885 m.BsidAddr.Addr = make([]uint8, 16)
886 for i := 0; i < len(m.BsidAddr.Addr); i++ {
887 m.BsidAddr.Addr[i] = uint8(tmp[pos])
890 // field[1] m.SrPolicyIndex
891 m.SrPolicyIndex = uint32(o.Uint32(tmp[pos : pos+4]))
896 // SrPolicyDelReply represents VPP binary API message 'sr_policy_del_reply'.
897 type SrPolicyDelReply struct {
898 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
901 func (m *SrPolicyDelReply) Reset() { *m = SrPolicyDelReply{} }
902 func (*SrPolicyDelReply) GetMessageName() string { return "sr_policy_del_reply" }
903 func (*SrPolicyDelReply) GetCrcString() string { return "e8d4e804" }
904 func (*SrPolicyDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
906 func (m *SrPolicyDelReply) Size() int {
915 func (m *SrPolicyDelReply) 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 *SrPolicyDelReply) Unmarshal(tmp []byte) error {
932 o := binary.BigEndian
937 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
942 // SrPolicyMod represents VPP binary API message 'sr_policy_mod'.
943 type SrPolicyMod struct {
944 BsidAddr []byte `binapi:"u8[16],name=bsid_addr" json:"bsid_addr,omitempty" struc:"[16]byte"`
945 SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"`
946 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
947 Operation uint8 `binapi:"u8,name=operation" json:"operation,omitempty"`
948 SlIndex uint32 `binapi:"u32,name=sl_index" json:"sl_index,omitempty"`
949 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"`
950 Sids Srv6SidList `binapi:"srv6_sid_list,name=sids" json:"sids,omitempty"`
953 func (m *SrPolicyMod) Reset() { *m = SrPolicyMod{} }
954 func (*SrPolicyMod) GetMessageName() string { return "sr_policy_mod" }
955 func (*SrPolicyMod) GetCrcString() string { return "c1dfaee0" }
956 func (*SrPolicyMod) GetMessageType() api.MessageType { return api.RequestMessage }
958 func (m *SrPolicyMod) Size() int {
963 // field[1] m.BsidAddr
965 // field[1] m.SrPolicyIndex
967 // field[1] m.FibTable
969 // field[1] m.Operation
971 // field[1] m.SlIndex
976 // field[2] m.Sids.NumSids
978 // field[2] m.Sids.Weight
980 // field[2] m.Sids.Sids
981 for j2 := 0; j2 < 16; j2++ {
984 if j2 < len(m.Sids.Sids) {
992 func (m *SrPolicyMod) Marshal(b []byte) ([]byte, error) {
993 o := binary.BigEndian
999 buf = make([]byte, m.Size())
1003 // field[1] m.BsidAddr
1004 for i := 0; i < 16; i++ {
1006 if i < len(m.BsidAddr) {
1007 x = uint8(m.BsidAddr[i])
1012 // field[1] m.SrPolicyIndex
1013 o.PutUint32(buf[pos:pos+4], uint32(m.SrPolicyIndex))
1015 // field[1] m.FibTable
1016 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
1018 // field[1] m.Operation
1019 buf[pos] = uint8(m.Operation)
1021 // field[1] m.SlIndex
1022 o.PutUint32(buf[pos:pos+4], uint32(m.SlIndex))
1024 // field[1] m.Weight
1025 o.PutUint32(buf[pos:pos+4], uint32(m.Weight))
1028 // field[2] m.Sids.NumSids
1029 buf[pos] = uint8(m.Sids.NumSids)
1031 // field[2] m.Sids.Weight
1032 o.PutUint32(buf[pos:pos+4], uint32(m.Sids.Weight))
1034 // field[2] m.Sids.Sids
1035 for j2 := 0; j2 < 16; j2++ {
1037 if j2 < len(m.Sids.Sids) {
1038 v2 = m.Sids.Sids[j2]
1041 for i := 0; i < 16; i++ {
1043 if i < len(v2.Addr) {
1044 x = uint8(v2.Addr[i])
1052 func (m *SrPolicyMod) Unmarshal(tmp []byte) error {
1053 o := binary.BigEndian
1057 // field[1] m.BsidAddr
1058 m.BsidAddr = make([]uint8, 16)
1059 for i := 0; i < len(m.BsidAddr); i++ {
1060 m.BsidAddr[i] = uint8(tmp[pos])
1063 // field[1] m.SrPolicyIndex
1064 m.SrPolicyIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1066 // field[1] m.FibTable
1067 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
1069 // field[1] m.Operation
1070 m.Operation = uint8(tmp[pos])
1072 // field[1] m.SlIndex
1073 m.SlIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1075 // field[1] m.Weight
1076 m.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
1079 // field[2] m.Sids.NumSids
1080 m.Sids.NumSids = uint8(tmp[pos])
1082 // field[2] m.Sids.Weight
1083 m.Sids.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
1085 // field[2] m.Sids.Sids
1086 for j2 := 0; j2 < 16; j2++ {
1087 // field[3] m.Sids.Sids[j2].Addr
1088 m.Sids.Sids[j2].Addr = make([]uint8, 16)
1089 for i := 0; i < len(m.Sids.Sids[j2].Addr); i++ {
1090 m.Sids.Sids[j2].Addr[i] = uint8(tmp[pos])
1097 // SrPolicyModReply represents VPP binary API message 'sr_policy_mod_reply'.
1098 type SrPolicyModReply struct {
1099 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1102 func (m *SrPolicyModReply) Reset() { *m = SrPolicyModReply{} }
1103 func (*SrPolicyModReply) GetMessageName() string { return "sr_policy_mod_reply" }
1104 func (*SrPolicyModReply) GetCrcString() string { return "e8d4e804" }
1105 func (*SrPolicyModReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1107 func (m *SrPolicyModReply) Size() int {
1112 // field[1] m.Retval
1116 func (m *SrPolicyModReply) Marshal(b []byte) ([]byte, error) {
1117 o := binary.BigEndian
1123 buf = make([]byte, m.Size())
1127 // field[1] m.Retval
1128 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1132 func (m *SrPolicyModReply) Unmarshal(tmp []byte) error {
1133 o := binary.BigEndian
1137 // field[1] m.Retval
1138 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1143 // SrSetEncapHopLimit represents VPP binary API message 'sr_set_encap_hop_limit'.
1144 type SrSetEncapHopLimit struct {
1145 HopLimit uint8 `binapi:"u8,name=hop_limit" json:"hop_limit,omitempty"`
1148 func (m *SrSetEncapHopLimit) Reset() { *m = SrSetEncapHopLimit{} }
1149 func (*SrSetEncapHopLimit) GetMessageName() string { return "sr_set_encap_hop_limit" }
1150 func (*SrSetEncapHopLimit) GetCrcString() string { return "aa75d7d0" }
1151 func (*SrSetEncapHopLimit) GetMessageType() api.MessageType { return api.RequestMessage }
1153 func (m *SrSetEncapHopLimit) Size() int {
1158 // field[1] m.HopLimit
1162 func (m *SrSetEncapHopLimit) Marshal(b []byte) ([]byte, error) {
1163 o := binary.BigEndian
1169 buf = make([]byte, m.Size())
1173 // field[1] m.HopLimit
1174 buf[pos] = uint8(m.HopLimit)
1178 func (m *SrSetEncapHopLimit) Unmarshal(tmp []byte) error {
1179 o := binary.BigEndian
1183 // field[1] m.HopLimit
1184 m.HopLimit = uint8(tmp[pos])
1189 // SrSetEncapHopLimitReply represents VPP binary API message 'sr_set_encap_hop_limit_reply'.
1190 type SrSetEncapHopLimitReply struct {
1191 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1194 func (m *SrSetEncapHopLimitReply) Reset() { *m = SrSetEncapHopLimitReply{} }
1195 func (*SrSetEncapHopLimitReply) GetMessageName() string { return "sr_set_encap_hop_limit_reply" }
1196 func (*SrSetEncapHopLimitReply) GetCrcString() string { return "e8d4e804" }
1197 func (*SrSetEncapHopLimitReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1199 func (m *SrSetEncapHopLimitReply) Size() int {
1204 // field[1] m.Retval
1208 func (m *SrSetEncapHopLimitReply) Marshal(b []byte) ([]byte, error) {
1209 o := binary.BigEndian
1215 buf = make([]byte, m.Size())
1219 // field[1] m.Retval
1220 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1224 func (m *SrSetEncapHopLimitReply) Unmarshal(tmp []byte) error {
1225 o := binary.BigEndian
1229 // field[1] m.Retval
1230 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1235 // SrSetEncapSource represents VPP binary API message 'sr_set_encap_source'.
1236 type SrSetEncapSource struct {
1237 EncapsSource []byte `binapi:"u8[16],name=encaps_source" json:"encaps_source,omitempty" struc:"[16]byte"`
1240 func (m *SrSetEncapSource) Reset() { *m = SrSetEncapSource{} }
1241 func (*SrSetEncapSource) GetMessageName() string { return "sr_set_encap_source" }
1242 func (*SrSetEncapSource) GetCrcString() string { return "d05bb4de" }
1243 func (*SrSetEncapSource) GetMessageType() api.MessageType { return api.RequestMessage }
1245 func (m *SrSetEncapSource) Size() int {
1250 // field[1] m.EncapsSource
1254 func (m *SrSetEncapSource) Marshal(b []byte) ([]byte, error) {
1255 o := binary.BigEndian
1261 buf = make([]byte, m.Size())
1265 // field[1] m.EncapsSource
1266 for i := 0; i < 16; i++ {
1268 if i < len(m.EncapsSource) {
1269 x = uint8(m.EncapsSource[i])
1276 func (m *SrSetEncapSource) Unmarshal(tmp []byte) error {
1277 o := binary.BigEndian
1281 // field[1] m.EncapsSource
1282 m.EncapsSource = make([]uint8, 16)
1283 for i := 0; i < len(m.EncapsSource); i++ {
1284 m.EncapsSource[i] = uint8(tmp[pos])
1290 // SrSetEncapSourceReply represents VPP binary API message 'sr_set_encap_source_reply'.
1291 type SrSetEncapSourceReply struct {
1292 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1295 func (m *SrSetEncapSourceReply) Reset() { *m = SrSetEncapSourceReply{} }
1296 func (*SrSetEncapSourceReply) GetMessageName() string { return "sr_set_encap_source_reply" }
1297 func (*SrSetEncapSourceReply) GetCrcString() string { return "e8d4e804" }
1298 func (*SrSetEncapSourceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1300 func (m *SrSetEncapSourceReply) Size() int {
1305 // field[1] m.Retval
1309 func (m *SrSetEncapSourceReply) Marshal(b []byte) ([]byte, error) {
1310 o := binary.BigEndian
1316 buf = make([]byte, m.Size())
1320 // field[1] m.Retval
1321 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1325 func (m *SrSetEncapSourceReply) Unmarshal(tmp []byte) error {
1326 o := binary.BigEndian
1330 // field[1] m.Retval
1331 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1336 // SrSteeringAddDel represents VPP binary API message 'sr_steering_add_del'.
1337 type SrSteeringAddDel struct {
1338 IsDel uint8 `binapi:"u8,name=is_del" json:"is_del,omitempty"`
1339 BsidAddr []byte `binapi:"u8[16],name=bsid_addr" json:"bsid_addr,omitempty" struc:"[16]byte"`
1340 SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"`
1341 TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
1342 PrefixAddr []byte `binapi:"u8[16],name=prefix_addr" json:"prefix_addr,omitempty" struc:"[16]byte"`
1343 MaskWidth uint32 `binapi:"u32,name=mask_width" json:"mask_width,omitempty"`
1344 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
1345 TrafficType uint8 `binapi:"u8,name=traffic_type" json:"traffic_type,omitempty"`
1348 func (m *SrSteeringAddDel) Reset() { *m = SrSteeringAddDel{} }
1349 func (*SrSteeringAddDel) GetMessageName() string { return "sr_steering_add_del" }
1350 func (*SrSteeringAddDel) GetCrcString() string { return "28b5dcab" }
1351 func (*SrSteeringAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
1353 func (m *SrSteeringAddDel) Size() int {
1360 // field[1] m.BsidAddr
1362 // field[1] m.SrPolicyIndex
1364 // field[1] m.TableID
1366 // field[1] m.PrefixAddr
1368 // field[1] m.MaskWidth
1370 // field[1] m.SwIfIndex
1372 // field[1] m.TrafficType
1376 func (m *SrSteeringAddDel) Marshal(b []byte) ([]byte, error) {
1377 o := binary.BigEndian
1383 buf = make([]byte, m.Size())
1388 buf[pos] = uint8(m.IsDel)
1390 // field[1] m.BsidAddr
1391 for i := 0; i < 16; i++ {
1393 if i < len(m.BsidAddr) {
1394 x = uint8(m.BsidAddr[i])
1399 // field[1] m.SrPolicyIndex
1400 o.PutUint32(buf[pos:pos+4], uint32(m.SrPolicyIndex))
1402 // field[1] m.TableID
1403 o.PutUint32(buf[pos:pos+4], uint32(m.TableID))
1405 // field[1] m.PrefixAddr
1406 for i := 0; i < 16; i++ {
1408 if i < len(m.PrefixAddr) {
1409 x = uint8(m.PrefixAddr[i])
1414 // field[1] m.MaskWidth
1415 o.PutUint32(buf[pos:pos+4], uint32(m.MaskWidth))
1417 // field[1] m.SwIfIndex
1418 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1420 // field[1] m.TrafficType
1421 buf[pos] = uint8(m.TrafficType)
1425 func (m *SrSteeringAddDel) Unmarshal(tmp []byte) error {
1426 o := binary.BigEndian
1431 m.IsDel = uint8(tmp[pos])
1433 // field[1] m.BsidAddr
1434 m.BsidAddr = make([]uint8, 16)
1435 for i := 0; i < len(m.BsidAddr); i++ {
1436 m.BsidAddr[i] = uint8(tmp[pos])
1439 // field[1] m.SrPolicyIndex
1440 m.SrPolicyIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1442 // field[1] m.TableID
1443 m.TableID = uint32(o.Uint32(tmp[pos : pos+4]))
1445 // field[1] m.PrefixAddr
1446 m.PrefixAddr = make([]uint8, 16)
1447 for i := 0; i < len(m.PrefixAddr); i++ {
1448 m.PrefixAddr[i] = uint8(tmp[pos])
1451 // field[1] m.MaskWidth
1452 m.MaskWidth = uint32(o.Uint32(tmp[pos : pos+4]))
1454 // field[1] m.SwIfIndex
1455 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1457 // field[1] m.TrafficType
1458 m.TrafficType = uint8(tmp[pos])
1463 // SrSteeringAddDelReply represents VPP binary API message 'sr_steering_add_del_reply'.
1464 type SrSteeringAddDelReply struct {
1465 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1468 func (m *SrSteeringAddDelReply) Reset() { *m = SrSteeringAddDelReply{} }
1469 func (*SrSteeringAddDelReply) GetMessageName() string { return "sr_steering_add_del_reply" }
1470 func (*SrSteeringAddDelReply) GetCrcString() string { return "e8d4e804" }
1471 func (*SrSteeringAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1473 func (m *SrSteeringAddDelReply) Size() int {
1478 // field[1] m.Retval
1482 func (m *SrSteeringAddDelReply) Marshal(b []byte) ([]byte, error) {
1483 o := binary.BigEndian
1489 buf = make([]byte, m.Size())
1493 // field[1] m.Retval
1494 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1498 func (m *SrSteeringAddDelReply) Unmarshal(tmp []byte) error {
1499 o := binary.BigEndian
1503 // field[1] m.Retval
1504 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1509 // SrSteeringPolDetails represents VPP binary API message 'sr_steering_pol_details'.
1510 type SrSteeringPolDetails struct {
1511 TrafficType uint8 `binapi:"u8,name=traffic_type" json:"traffic_type,omitempty"`
1512 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
1513 PrefixAddr []byte `binapi:"u8[16],name=prefix_addr" json:"prefix_addr,omitempty" struc:"[16]byte"`
1514 MaskWidth uint32 `binapi:"u32,name=mask_width" json:"mask_width,omitempty"`
1515 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
1516 Bsid Srv6Sid `binapi:"srv6_sid,name=bsid" json:"bsid,omitempty"`
1519 func (m *SrSteeringPolDetails) Reset() { *m = SrSteeringPolDetails{} }
1520 func (*SrSteeringPolDetails) GetMessageName() string { return "sr_steering_pol_details" }
1521 func (*SrSteeringPolDetails) GetCrcString() string { return "5627d483" }
1522 func (*SrSteeringPolDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
1524 func (m *SrSteeringPolDetails) Size() int {
1529 // field[1] m.TrafficType
1531 // field[1] m.FibTable
1533 // field[1] m.PrefixAddr
1535 // field[1] m.MaskWidth
1537 // field[1] m.SwIfIndex
1540 // field[2] m.Bsid.Addr
1544 func (m *SrSteeringPolDetails) Marshal(b []byte) ([]byte, error) {
1545 o := binary.BigEndian
1551 buf = make([]byte, m.Size())
1555 // field[1] m.TrafficType
1556 buf[pos] = uint8(m.TrafficType)
1558 // field[1] m.FibTable
1559 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
1561 // field[1] m.PrefixAddr
1562 for i := 0; i < 16; i++ {
1564 if i < len(m.PrefixAddr) {
1565 x = uint8(m.PrefixAddr[i])
1570 // field[1] m.MaskWidth
1571 o.PutUint32(buf[pos:pos+4], uint32(m.MaskWidth))
1573 // field[1] m.SwIfIndex
1574 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1577 // field[2] m.Bsid.Addr
1578 for i := 0; i < 16; i++ {
1580 if i < len(m.Bsid.Addr) {
1581 x = uint8(m.Bsid.Addr[i])
1588 func (m *SrSteeringPolDetails) Unmarshal(tmp []byte) error {
1589 o := binary.BigEndian
1593 // field[1] m.TrafficType
1594 m.TrafficType = uint8(tmp[pos])
1596 // field[1] m.FibTable
1597 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
1599 // field[1] m.PrefixAddr
1600 m.PrefixAddr = make([]uint8, 16)
1601 for i := 0; i < len(m.PrefixAddr); i++ {
1602 m.PrefixAddr[i] = uint8(tmp[pos])
1605 // field[1] m.MaskWidth
1606 m.MaskWidth = uint32(o.Uint32(tmp[pos : pos+4]))
1608 // field[1] m.SwIfIndex
1609 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1612 // field[2] m.Bsid.Addr
1613 m.Bsid.Addr = make([]uint8, 16)
1614 for i := 0; i < len(m.Bsid.Addr); i++ {
1615 m.Bsid.Addr[i] = uint8(tmp[pos])
1621 // SrSteeringPolDump represents VPP binary API message 'sr_steering_pol_dump'.
1622 type SrSteeringPolDump struct{}
1624 func (m *SrSteeringPolDump) Reset() { *m = SrSteeringPolDump{} }
1625 func (*SrSteeringPolDump) GetMessageName() string { return "sr_steering_pol_dump" }
1626 func (*SrSteeringPolDump) GetCrcString() string { return "51077d14" }
1627 func (*SrSteeringPolDump) GetMessageType() api.MessageType { return api.RequestMessage }
1629 func (m *SrSteeringPolDump) Size() int {
1636 func (m *SrSteeringPolDump) Marshal(b []byte) ([]byte, error) {
1637 o := binary.BigEndian
1643 buf = make([]byte, m.Size())
1649 func (m *SrSteeringPolDump) Unmarshal(tmp []byte) error {
1650 o := binary.BigEndian
1657 func init() { file_sr_binapi_init() }
1658 func file_sr_binapi_init() {
1659 api.RegisterMessage((*SrLocalsidAddDel)(nil), "sr.SrLocalsidAddDel")
1660 api.RegisterMessage((*SrLocalsidAddDelReply)(nil), "sr.SrLocalsidAddDelReply")
1661 api.RegisterMessage((*SrLocalsidsDetails)(nil), "sr.SrLocalsidsDetails")
1662 api.RegisterMessage((*SrLocalsidsDump)(nil), "sr.SrLocalsidsDump")
1663 api.RegisterMessage((*SrPoliciesDetails)(nil), "sr.SrPoliciesDetails")
1664 api.RegisterMessage((*SrPoliciesDump)(nil), "sr.SrPoliciesDump")
1665 api.RegisterMessage((*SrPolicyAdd)(nil), "sr.SrPolicyAdd")
1666 api.RegisterMessage((*SrPolicyAddReply)(nil), "sr.SrPolicyAddReply")
1667 api.RegisterMessage((*SrPolicyDel)(nil), "sr.SrPolicyDel")
1668 api.RegisterMessage((*SrPolicyDelReply)(nil), "sr.SrPolicyDelReply")
1669 api.RegisterMessage((*SrPolicyMod)(nil), "sr.SrPolicyMod")
1670 api.RegisterMessage((*SrPolicyModReply)(nil), "sr.SrPolicyModReply")
1671 api.RegisterMessage((*SrSetEncapHopLimit)(nil), "sr.SrSetEncapHopLimit")
1672 api.RegisterMessage((*SrSetEncapHopLimitReply)(nil), "sr.SrSetEncapHopLimitReply")
1673 api.RegisterMessage((*SrSetEncapSource)(nil), "sr.SrSetEncapSource")
1674 api.RegisterMessage((*SrSetEncapSourceReply)(nil), "sr.SrSetEncapSourceReply")
1675 api.RegisterMessage((*SrSteeringAddDel)(nil), "sr.SrSteeringAddDel")
1676 api.RegisterMessage((*SrSteeringAddDelReply)(nil), "sr.SrSteeringAddDelReply")
1677 api.RegisterMessage((*SrSteeringPolDetails)(nil), "sr.SrSteeringPolDetails")
1678 api.RegisterMessage((*SrSteeringPolDump)(nil), "sr.SrSteeringPolDump")
1681 // Messages returns list of all messages in this module.
1682 func AllMessages() []api.Message {
1683 return []api.Message{
1684 (*SrLocalsidAddDel)(nil),
1685 (*SrLocalsidAddDelReply)(nil),
1686 (*SrLocalsidsDetails)(nil),
1687 (*SrLocalsidsDump)(nil),
1688 (*SrPoliciesDetails)(nil),
1689 (*SrPoliciesDump)(nil),
1690 (*SrPolicyAdd)(nil),
1691 (*SrPolicyAddReply)(nil),
1692 (*SrPolicyDel)(nil),
1693 (*SrPolicyDelReply)(nil),
1694 (*SrPolicyMod)(nil),
1695 (*SrPolicyModReply)(nil),
1696 (*SrSetEncapHopLimit)(nil),
1697 (*SrSetEncapHopLimitReply)(nil),
1698 (*SrSetEncapSource)(nil),
1699 (*SrSetEncapSourceReply)(nil),
1700 (*SrSteeringAddDel)(nil),
1701 (*SrSteeringAddDelReply)(nil),
1702 (*SrSteeringPolDetails)(nil),
1703 (*SrSteeringPolDump)(nil),
1707 // Reference imports to suppress errors if they are not otherwise used.
1708 var _ = api.RegisterMessage
1709 var _ = codec.DecodeString
1710 var _ = bytes.NewBuffer
1711 var _ = context.Background
1713 var _ = strconv.Itoa
1715 var _ = binary.BigEndian
1716 var _ = math.Float32bits