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).
30 api "git.fd.io/govpp.git/api"
31 codec "git.fd.io/govpp.git/codec"
32 struc "github.com/lunixbochs/struc"
34 interface_types "git.fd.io/govpp.git/examples/binapi/interface_types"
35 ip_types "git.fd.io/govpp.git/examples/binapi/ip_types"
38 // This is a compile-time assertion to ensure that this generated file
39 // is compatible with the GoVPP api package it is being compiled against.
40 // A compilation error at this line likely means your copy of the
41 // GoVPP api package needs to be updated.
42 const _ = api.GoVppAPIPackageIsVersion2 // please upgrade the GoVPP api package
45 // ModuleName is the name of this module.
47 // APIVersion is the API version of this module.
49 // VersionCrc is the CRC of this module.
50 VersionCrc = 0xd85c77ca
53 // SrBehavior represents VPP binary API enum 'sr_behavior'.
57 SR_BEHAVIOR_API_END SrBehavior = 1
58 SR_BEHAVIOR_API_X SrBehavior = 2
59 SR_BEHAVIOR_API_T SrBehavior = 3
60 SR_BEHAVIOR_API_D_FIRST SrBehavior = 4
61 SR_BEHAVIOR_API_DX2 SrBehavior = 5
62 SR_BEHAVIOR_API_DX6 SrBehavior = 6
63 SR_BEHAVIOR_API_DX4 SrBehavior = 7
64 SR_BEHAVIOR_API_DT6 SrBehavior = 8
65 SR_BEHAVIOR_API_DT4 SrBehavior = 9
66 SR_BEHAVIOR_API_LAST SrBehavior = 10
70 SrBehavior_name = map[uint8]string{
71 1: "SR_BEHAVIOR_API_END",
72 2: "SR_BEHAVIOR_API_X",
73 3: "SR_BEHAVIOR_API_T",
74 4: "SR_BEHAVIOR_API_D_FIRST",
75 5: "SR_BEHAVIOR_API_DX2",
76 6: "SR_BEHAVIOR_API_DX6",
77 7: "SR_BEHAVIOR_API_DX4",
78 8: "SR_BEHAVIOR_API_DT6",
79 9: "SR_BEHAVIOR_API_DT4",
80 10: "SR_BEHAVIOR_API_LAST",
82 SrBehavior_value = map[string]uint8{
83 "SR_BEHAVIOR_API_END": 1,
84 "SR_BEHAVIOR_API_X": 2,
85 "SR_BEHAVIOR_API_T": 3,
86 "SR_BEHAVIOR_API_D_FIRST": 4,
87 "SR_BEHAVIOR_API_DX2": 5,
88 "SR_BEHAVIOR_API_DX6": 6,
89 "SR_BEHAVIOR_API_DX4": 7,
90 "SR_BEHAVIOR_API_DT6": 8,
91 "SR_BEHAVIOR_API_DT4": 9,
92 "SR_BEHAVIOR_API_LAST": 10,
96 func (x SrBehavior) String() string {
97 s, ok := SrBehavior_name[uint8(x)]
101 return "SrBehavior(" + strconv.Itoa(int(x)) + ")"
104 // SrPolicyOp represents VPP binary API enum 'sr_policy_op'.
105 type SrPolicyOp uint8
108 SR_POLICY_OP_API_NONE SrPolicyOp = 0
109 SR_POLICY_OP_API_ADD SrPolicyOp = 1
110 SR_POLICY_OP_API_DEL SrPolicyOp = 2
111 SR_POLICY_OP_API_MOD SrPolicyOp = 3
115 SrPolicyOp_name = map[uint8]string{
116 0: "SR_POLICY_OP_API_NONE",
117 1: "SR_POLICY_OP_API_ADD",
118 2: "SR_POLICY_OP_API_DEL",
119 3: "SR_POLICY_OP_API_MOD",
121 SrPolicyOp_value = map[string]uint8{
122 "SR_POLICY_OP_API_NONE": 0,
123 "SR_POLICY_OP_API_ADD": 1,
124 "SR_POLICY_OP_API_DEL": 2,
125 "SR_POLICY_OP_API_MOD": 3,
129 func (x SrPolicyOp) String() string {
130 s, ok := SrPolicyOp_name[uint8(x)]
134 return "SrPolicyOp(" + strconv.Itoa(int(x)) + ")"
137 // SrSteer represents VPP binary API enum 'sr_steer'.
141 SR_STEER_API_L2 SrSteer = 2
142 SR_STEER_API_IPV4 SrSteer = 4
143 SR_STEER_API_IPV6 SrSteer = 6
147 SrSteer_name = map[uint8]string{
148 2: "SR_STEER_API_L2",
149 4: "SR_STEER_API_IPV4",
150 6: "SR_STEER_API_IPV6",
152 SrSteer_value = map[string]uint8{
153 "SR_STEER_API_L2": 2,
154 "SR_STEER_API_IPV4": 4,
155 "SR_STEER_API_IPV6": 6,
159 func (x SrSteer) String() string {
160 s, ok := SrSteer_name[uint8(x)]
164 return "SrSteer(" + strconv.Itoa(int(x)) + ")"
167 // Srv6SidList represents VPP binary API type 'srv6_sid_list'.
168 type Srv6SidList struct {
169 NumSids uint8 `binapi:"u8,name=num_sids" json:"num_sids,omitempty"`
170 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"`
171 Sids [16]ip_types.IP6Address `binapi:"ip6_address[16],name=sids" json:"sids,omitempty" struc:"[16]ip_types.IP6Address"`
174 func (*Srv6SidList) GetTypeName() string { return "srv6_sid_list" }
176 // SrLocalsidAddDel represents VPP binary API message 'sr_localsid_add_del'.
177 type SrLocalsidAddDel struct {
178 IsDel bool `binapi:"bool,name=is_del,default=false" json:"is_del,omitempty"`
179 Localsid ip_types.IP6Address `binapi:"ip6_address,name=localsid" json:"localsid,omitempty"`
180 EndPsp bool `binapi:"bool,name=end_psp" json:"end_psp,omitempty"`
181 Behavior SrBehavior `binapi:"sr_behavior,name=behavior" json:"behavior,omitempty"`
182 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4.294967295e+09" json:"sw_if_index,omitempty"`
183 VlanIndex uint32 `binapi:"u32,name=vlan_index" json:"vlan_index,omitempty"`
184 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
185 NhAddr ip_types.Address `binapi:"address,name=nh_addr" json:"nh_addr,omitempty"`
188 func (m *SrLocalsidAddDel) Reset() { *m = SrLocalsidAddDel{} }
189 func (*SrLocalsidAddDel) GetMessageName() string { return "sr_localsid_add_del" }
190 func (*SrLocalsidAddDel) GetCrcString() string { return "26fa3309" }
191 func (*SrLocalsidAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
193 func (m *SrLocalsidAddDel) Size() int {
200 // field[1] m.Localsid
204 // field[1] m.Behavior
206 // field[1] m.SwIfIndex
208 // field[1] m.VlanIndex
210 // field[1] m.FibTable
213 // field[2] m.NhAddr.Af
215 // field[2] m.NhAddr.Un
219 func (m *SrLocalsidAddDel) Marshal(b []byte) ([]byte, error) {
220 o := binary.BigEndian
226 buf = make([]byte, m.Size())
235 // field[1] m.Localsid
236 for i := 0; i < 16; i++ {
238 if i < len(m.Localsid) {
239 x = uint8(m.Localsid[i])
249 // field[1] m.Behavior
250 buf[pos] = uint8(m.Behavior)
252 // field[1] m.SwIfIndex
253 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
255 // field[1] m.VlanIndex
256 o.PutUint32(buf[pos:pos+4], uint32(m.VlanIndex))
258 // field[1] m.FibTable
259 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
262 // field[2] m.NhAddr.Af
263 buf[pos] = uint8(m.NhAddr.Af)
265 // field[2] m.NhAddr.Un
266 copy(buf[pos:pos+16], m.NhAddr.Un.XXX_UnionData[:])
270 func (m *SrLocalsidAddDel) Unmarshal(tmp []byte) error {
271 o := binary.BigEndian
276 m.IsDel = tmp[pos] != 0
278 // field[1] m.Localsid
279 for i := 0; i < len(m.Localsid); i++ {
280 m.Localsid[i] = uint8(tmp[pos])
284 m.EndPsp = tmp[pos] != 0
286 // field[1] m.Behavior
287 m.Behavior = SrBehavior(tmp[pos])
289 // field[1] m.SwIfIndex
290 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
292 // field[1] m.VlanIndex
293 m.VlanIndex = uint32(o.Uint32(tmp[pos : pos+4]))
295 // field[1] m.FibTable
296 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
299 // field[2] m.NhAddr.Af
300 m.NhAddr.Af = ip_types.AddressFamily(tmp[pos])
302 // field[2] m.NhAddr.Un
303 copy(m.NhAddr.Un.XXX_UnionData[:], tmp[pos:pos+16])
308 // SrLocalsidAddDelReply represents VPP binary API message 'sr_localsid_add_del_reply'.
309 type SrLocalsidAddDelReply struct {
310 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
313 func (m *SrLocalsidAddDelReply) Reset() { *m = SrLocalsidAddDelReply{} }
314 func (*SrLocalsidAddDelReply) GetMessageName() string { return "sr_localsid_add_del_reply" }
315 func (*SrLocalsidAddDelReply) GetCrcString() string { return "e8d4e804" }
316 func (*SrLocalsidAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
318 func (m *SrLocalsidAddDelReply) Size() int {
327 func (m *SrLocalsidAddDelReply) Marshal(b []byte) ([]byte, error) {
328 o := binary.BigEndian
334 buf = make([]byte, m.Size())
339 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
343 func (m *SrLocalsidAddDelReply) Unmarshal(tmp []byte) error {
344 o := binary.BigEndian
349 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
354 // SrLocalsidsDetails represents VPP binary API message 'sr_localsids_details'.
355 type SrLocalsidsDetails struct {
356 Addr ip_types.IP6Address `binapi:"ip6_address,name=addr" json:"addr,omitempty"`
357 EndPsp bool `binapi:"bool,name=end_psp" json:"end_psp,omitempty"`
358 Behavior SrBehavior `binapi:"sr_behavior,name=behavior" json:"behavior,omitempty"`
359 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
360 VlanIndex uint32 `binapi:"u32,name=vlan_index" json:"vlan_index,omitempty"`
361 XconnectNhAddr ip_types.Address `binapi:"address,name=xconnect_nh_addr" json:"xconnect_nh_addr,omitempty"`
362 XconnectIfaceOrVrfTable uint32 `binapi:"u32,name=xconnect_iface_or_vrf_table" json:"xconnect_iface_or_vrf_table,omitempty"`
365 func (m *SrLocalsidsDetails) Reset() { *m = SrLocalsidsDetails{} }
366 func (*SrLocalsidsDetails) GetMessageName() string { return "sr_localsids_details" }
367 func (*SrLocalsidsDetails) GetCrcString() string { return "6a6c0265" }
368 func (*SrLocalsidsDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
370 func (m *SrLocalsidsDetails) Size() int {
379 // field[1] m.Behavior
381 // field[1] m.FibTable
383 // field[1] m.VlanIndex
385 // field[1] m.XconnectNhAddr
386 // field[2] m.XconnectNhAddr.Af
388 // field[2] m.XconnectNhAddr.Un
390 // field[1] m.XconnectIfaceOrVrfTable
394 func (m *SrLocalsidsDetails) Marshal(b []byte) ([]byte, error) {
395 o := binary.BigEndian
401 buf = make([]byte, m.Size())
406 for i := 0; i < 16; i++ {
419 // field[1] m.Behavior
420 buf[pos] = uint8(m.Behavior)
422 // field[1] m.FibTable
423 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
425 // field[1] m.VlanIndex
426 o.PutUint32(buf[pos:pos+4], uint32(m.VlanIndex))
428 // field[1] m.XconnectNhAddr
429 // field[2] m.XconnectNhAddr.Af
430 buf[pos] = uint8(m.XconnectNhAddr.Af)
432 // field[2] m.XconnectNhAddr.Un
433 copy(buf[pos:pos+16], m.XconnectNhAddr.Un.XXX_UnionData[:])
435 // field[1] m.XconnectIfaceOrVrfTable
436 o.PutUint32(buf[pos:pos+4], uint32(m.XconnectIfaceOrVrfTable))
440 func (m *SrLocalsidsDetails) Unmarshal(tmp []byte) error {
441 o := binary.BigEndian
446 for i := 0; i < len(m.Addr); i++ {
447 m.Addr[i] = uint8(tmp[pos])
451 m.EndPsp = tmp[pos] != 0
453 // field[1] m.Behavior
454 m.Behavior = SrBehavior(tmp[pos])
456 // field[1] m.FibTable
457 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
459 // field[1] m.VlanIndex
460 m.VlanIndex = uint32(o.Uint32(tmp[pos : pos+4]))
462 // field[1] m.XconnectNhAddr
463 // field[2] m.XconnectNhAddr.Af
464 m.XconnectNhAddr.Af = ip_types.AddressFamily(tmp[pos])
466 // field[2] m.XconnectNhAddr.Un
467 copy(m.XconnectNhAddr.Un.XXX_UnionData[:], tmp[pos:pos+16])
469 // field[1] m.XconnectIfaceOrVrfTable
470 m.XconnectIfaceOrVrfTable = uint32(o.Uint32(tmp[pos : pos+4]))
475 // SrLocalsidsDump represents VPP binary API message 'sr_localsids_dump'.
476 type SrLocalsidsDump struct{}
478 func (m *SrLocalsidsDump) Reset() { *m = SrLocalsidsDump{} }
479 func (*SrLocalsidsDump) GetMessageName() string { return "sr_localsids_dump" }
480 func (*SrLocalsidsDump) GetCrcString() string { return "51077d14" }
481 func (*SrLocalsidsDump) GetMessageType() api.MessageType { return api.RequestMessage }
483 func (m *SrLocalsidsDump) Size() int {
490 func (m *SrLocalsidsDump) Marshal(b []byte) ([]byte, error) {
491 o := binary.BigEndian
497 buf = make([]byte, m.Size())
503 func (m *SrLocalsidsDump) Unmarshal(tmp []byte) error {
504 o := binary.BigEndian
511 // SrPoliciesDetails represents VPP binary API message 'sr_policies_details'.
512 type SrPoliciesDetails struct {
513 Bsid ip_types.IP6Address `binapi:"ip6_address,name=bsid" json:"bsid,omitempty"`
514 IsSpray bool `binapi:"bool,name=is_spray" json:"is_spray,omitempty"`
515 IsEncap bool `binapi:"bool,name=is_encap" json:"is_encap,omitempty"`
516 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
517 NumSidLists uint8 `binapi:"u8,name=num_sid_lists" json:"num_sid_lists,omitempty" struc:"sizeof=SidLists"`
518 SidLists []Srv6SidList `binapi:"srv6_sid_list[num_sid_lists],name=sid_lists" json:"sid_lists,omitempty"`
521 func (m *SrPoliciesDetails) Reset() { *m = SrPoliciesDetails{} }
522 func (*SrPoliciesDetails) GetMessageName() string { return "sr_policies_details" }
523 func (*SrPoliciesDetails) GetCrcString() string { return "07ec2d93" }
524 func (*SrPoliciesDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
526 func (m *SrPoliciesDetails) Size() int {
533 // field[1] m.IsSpray
535 // field[1] m.IsEncap
537 // field[1] m.FibTable
539 // field[1] m.NumSidLists
541 // field[1] m.SidLists
542 for j1 := 0; j1 < len(m.SidLists); j1++ {
545 if j1 < len(m.SidLists) {
548 // field[2] s1.NumSids
550 // field[2] s1.Weight
553 for j2 := 0; j2 < 16; j2++ {
554 var s2 ip_types.IP6Address
556 if j2 < len(s1.Sids) {
564 func (m *SrPoliciesDetails) Marshal(b []byte) ([]byte, error) {
565 o := binary.BigEndian
571 buf = make([]byte, m.Size())
576 for i := 0; i < 16; i++ {
584 // field[1] m.IsSpray
589 // field[1] m.IsEncap
594 // field[1] m.FibTable
595 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
597 // field[1] m.NumSidLists
598 buf[pos] = uint8(len(m.SidLists))
600 // field[1] m.SidLists
601 for j1 := 0; j1 < len(m.SidLists); j1++ {
603 if j1 < len(m.SidLists) {
606 // field[2] v1.NumSids
607 buf[pos] = uint8(v1.NumSids)
609 // field[2] v1.Weight
610 o.PutUint32(buf[pos:pos+4], uint32(v1.Weight))
613 for j2 := 0; j2 < 16; j2++ {
614 var v2 ip_types.IP6Address
615 if j2 < len(v1.Sids) {
618 for i := 0; i < 16; i++ {
630 func (m *SrPoliciesDetails) Unmarshal(tmp []byte) error {
631 o := binary.BigEndian
636 for i := 0; i < len(m.Bsid); i++ {
637 m.Bsid[i] = uint8(tmp[pos])
640 // field[1] m.IsSpray
641 m.IsSpray = tmp[pos] != 0
643 // field[1] m.IsEncap
644 m.IsEncap = tmp[pos] != 0
646 // field[1] m.FibTable
647 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
649 // field[1] m.NumSidLists
650 m.NumSidLists = uint8(tmp[pos])
652 // field[1] m.SidLists
653 m.SidLists = make([]Srv6SidList, int(m.NumSidLists))
654 for j1 := 0; j1 < int(m.NumSidLists); j1++ {
655 // field[2] m.SidLists[j1].NumSids
656 m.SidLists[j1].NumSids = uint8(tmp[pos])
658 // field[2] m.SidLists[j1].Weight
659 m.SidLists[j1].Weight = uint32(o.Uint32(tmp[pos : pos+4]))
661 // field[2] m.SidLists[j1].Sids
662 for j2 := 0; j2 < 16; j2++ {
663 for i := 0; i < len(m.SidLists[j1].Sids[j2]); i++ {
664 m.SidLists[j1].Sids[j2][i] = uint8(tmp[pos])
672 // SrPoliciesDump represents VPP binary API message 'sr_policies_dump'.
673 type SrPoliciesDump struct{}
675 func (m *SrPoliciesDump) Reset() { *m = SrPoliciesDump{} }
676 func (*SrPoliciesDump) GetMessageName() string { return "sr_policies_dump" }
677 func (*SrPoliciesDump) GetCrcString() string { return "51077d14" }
678 func (*SrPoliciesDump) GetMessageType() api.MessageType { return api.RequestMessage }
680 func (m *SrPoliciesDump) Size() int {
687 func (m *SrPoliciesDump) Marshal(b []byte) ([]byte, error) {
688 o := binary.BigEndian
694 buf = make([]byte, m.Size())
700 func (m *SrPoliciesDump) Unmarshal(tmp []byte) error {
701 o := binary.BigEndian
708 // SrPolicyAdd represents VPP binary API message 'sr_policy_add'.
709 type SrPolicyAdd struct {
710 BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"`
711 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"`
712 IsEncap bool `binapi:"bool,name=is_encap" json:"is_encap,omitempty"`
713 IsSpray bool `binapi:"bool,name=is_spray" json:"is_spray,omitempty"`
714 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
715 Sids Srv6SidList `binapi:"srv6_sid_list,name=sids" json:"sids,omitempty"`
718 func (m *SrPolicyAdd) Reset() { *m = SrPolicyAdd{} }
719 func (*SrPolicyAdd) GetMessageName() string { return "sr_policy_add" }
720 func (*SrPolicyAdd) GetCrcString() string { return "ec79ee6a" }
721 func (*SrPolicyAdd) GetMessageType() api.MessageType { return api.RequestMessage }
723 func (m *SrPolicyAdd) Size() int {
728 // field[1] m.BsidAddr
732 // field[1] m.IsEncap
734 // field[1] m.IsSpray
736 // field[1] m.FibTable
739 // field[2] m.Sids.NumSids
741 // field[2] m.Sids.Weight
743 // field[2] m.Sids.Sids
744 for j2 := 0; j2 < 16; j2++ {
745 var s2 ip_types.IP6Address
747 if j2 < len(m.Sids.Sids) {
754 func (m *SrPolicyAdd) Marshal(b []byte) ([]byte, error) {
755 o := binary.BigEndian
761 buf = make([]byte, m.Size())
765 // field[1] m.BsidAddr
766 for i := 0; i < 16; i++ {
768 if i < len(m.BsidAddr) {
769 x = uint8(m.BsidAddr[i])
775 o.PutUint32(buf[pos:pos+4], uint32(m.Weight))
777 // field[1] m.IsEncap
782 // field[1] m.IsSpray
787 // field[1] m.FibTable
788 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
791 // field[2] m.Sids.NumSids
792 buf[pos] = uint8(m.Sids.NumSids)
794 // field[2] m.Sids.Weight
795 o.PutUint32(buf[pos:pos+4], uint32(m.Sids.Weight))
797 // field[2] m.Sids.Sids
798 for j2 := 0; j2 < 16; j2++ {
799 var v2 ip_types.IP6Address
800 if j2 < len(m.Sids.Sids) {
803 for i := 0; i < 16; i++ {
814 func (m *SrPolicyAdd) Unmarshal(tmp []byte) error {
815 o := binary.BigEndian
819 // field[1] m.BsidAddr
820 for i := 0; i < len(m.BsidAddr); i++ {
821 m.BsidAddr[i] = uint8(tmp[pos])
825 m.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
827 // field[1] m.IsEncap
828 m.IsEncap = tmp[pos] != 0
830 // field[1] m.IsSpray
831 m.IsSpray = tmp[pos] != 0
833 // field[1] m.FibTable
834 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
837 // field[2] m.Sids.NumSids
838 m.Sids.NumSids = uint8(tmp[pos])
840 // field[2] m.Sids.Weight
841 m.Sids.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
843 // field[2] m.Sids.Sids
844 for j2 := 0; j2 < 16; j2++ {
845 for i := 0; i < len(m.Sids.Sids[j2]); i++ {
846 m.Sids.Sids[j2][i] = uint8(tmp[pos])
853 // SrPolicyAddReply represents VPP binary API message 'sr_policy_add_reply'.
854 type SrPolicyAddReply struct {
855 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
858 func (m *SrPolicyAddReply) Reset() { *m = SrPolicyAddReply{} }
859 func (*SrPolicyAddReply) GetMessageName() string { return "sr_policy_add_reply" }
860 func (*SrPolicyAddReply) GetCrcString() string { return "e8d4e804" }
861 func (*SrPolicyAddReply) GetMessageType() api.MessageType { return api.ReplyMessage }
863 func (m *SrPolicyAddReply) Size() int {
872 func (m *SrPolicyAddReply) Marshal(b []byte) ([]byte, error) {
873 o := binary.BigEndian
879 buf = make([]byte, m.Size())
884 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
888 func (m *SrPolicyAddReply) Unmarshal(tmp []byte) error {
889 o := binary.BigEndian
894 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
899 // SrPolicyDel represents VPP binary API message 'sr_policy_del'.
900 type SrPolicyDel struct {
901 BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"`
902 SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"`
905 func (m *SrPolicyDel) Reset() { *m = SrPolicyDel{} }
906 func (*SrPolicyDel) GetMessageName() string { return "sr_policy_del" }
907 func (*SrPolicyDel) GetCrcString() string { return "cb4d48d5" }
908 func (*SrPolicyDel) GetMessageType() api.MessageType { return api.RequestMessage }
910 func (m *SrPolicyDel) Size() int {
915 // field[1] m.BsidAddr
917 // field[1] m.SrPolicyIndex
921 func (m *SrPolicyDel) Marshal(b []byte) ([]byte, error) {
922 o := binary.BigEndian
928 buf = make([]byte, m.Size())
932 // field[1] m.BsidAddr
933 for i := 0; i < 16; i++ {
935 if i < len(m.BsidAddr) {
936 x = uint8(m.BsidAddr[i])
941 // field[1] m.SrPolicyIndex
942 o.PutUint32(buf[pos:pos+4], uint32(m.SrPolicyIndex))
946 func (m *SrPolicyDel) Unmarshal(tmp []byte) error {
947 o := binary.BigEndian
951 // field[1] m.BsidAddr
952 for i := 0; i < len(m.BsidAddr); i++ {
953 m.BsidAddr[i] = uint8(tmp[pos])
956 // field[1] m.SrPolicyIndex
957 m.SrPolicyIndex = uint32(o.Uint32(tmp[pos : pos+4]))
962 // SrPolicyDelReply represents VPP binary API message 'sr_policy_del_reply'.
963 type SrPolicyDelReply struct {
964 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
967 func (m *SrPolicyDelReply) Reset() { *m = SrPolicyDelReply{} }
968 func (*SrPolicyDelReply) GetMessageName() string { return "sr_policy_del_reply" }
969 func (*SrPolicyDelReply) GetCrcString() string { return "e8d4e804" }
970 func (*SrPolicyDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
972 func (m *SrPolicyDelReply) Size() int {
981 func (m *SrPolicyDelReply) Marshal(b []byte) ([]byte, error) {
982 o := binary.BigEndian
988 buf = make([]byte, m.Size())
993 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
997 func (m *SrPolicyDelReply) Unmarshal(tmp []byte) error {
998 o := binary.BigEndian
1002 // field[1] m.Retval
1003 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1008 // SrPolicyMod represents VPP binary API message 'sr_policy_mod'.
1009 type SrPolicyMod struct {
1010 BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"`
1011 SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"`
1012 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
1013 Operation SrPolicyOp `binapi:"sr_policy_op,name=operation" json:"operation,omitempty"`
1014 SlIndex uint32 `binapi:"u32,name=sl_index" json:"sl_index,omitempty"`
1015 Weight uint32 `binapi:"u32,name=weight" json:"weight,omitempty"`
1016 Sids Srv6SidList `binapi:"srv6_sid_list,name=sids" json:"sids,omitempty"`
1019 func (m *SrPolicyMod) Reset() { *m = SrPolicyMod{} }
1020 func (*SrPolicyMod) GetMessageName() string { return "sr_policy_mod" }
1021 func (*SrPolicyMod) GetCrcString() string { return "e531a102" }
1022 func (*SrPolicyMod) GetMessageType() api.MessageType { return api.RequestMessage }
1024 func (m *SrPolicyMod) Size() int {
1029 // field[1] m.BsidAddr
1031 // field[1] m.SrPolicyIndex
1033 // field[1] m.FibTable
1035 // field[1] m.Operation
1037 // field[1] m.SlIndex
1039 // field[1] m.Weight
1042 // field[2] m.Sids.NumSids
1044 // field[2] m.Sids.Weight
1046 // field[2] m.Sids.Sids
1047 for j2 := 0; j2 < 16; j2++ {
1048 var s2 ip_types.IP6Address
1050 if j2 < len(m.Sids.Sids) {
1051 s2 = m.Sids.Sids[j2]
1057 func (m *SrPolicyMod) Marshal(b []byte) ([]byte, error) {
1058 o := binary.BigEndian
1064 buf = make([]byte, m.Size())
1068 // field[1] m.BsidAddr
1069 for i := 0; i < 16; i++ {
1071 if i < len(m.BsidAddr) {
1072 x = uint8(m.BsidAddr[i])
1077 // field[1] m.SrPolicyIndex
1078 o.PutUint32(buf[pos:pos+4], uint32(m.SrPolicyIndex))
1080 // field[1] m.FibTable
1081 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
1083 // field[1] m.Operation
1084 buf[pos] = uint8(m.Operation)
1086 // field[1] m.SlIndex
1087 o.PutUint32(buf[pos:pos+4], uint32(m.SlIndex))
1089 // field[1] m.Weight
1090 o.PutUint32(buf[pos:pos+4], uint32(m.Weight))
1093 // field[2] m.Sids.NumSids
1094 buf[pos] = uint8(m.Sids.NumSids)
1096 // field[2] m.Sids.Weight
1097 o.PutUint32(buf[pos:pos+4], uint32(m.Sids.Weight))
1099 // field[2] m.Sids.Sids
1100 for j2 := 0; j2 < 16; j2++ {
1101 var v2 ip_types.IP6Address
1102 if j2 < len(m.Sids.Sids) {
1103 v2 = m.Sids.Sids[j2]
1105 for i := 0; i < 16; i++ {
1116 func (m *SrPolicyMod) Unmarshal(tmp []byte) error {
1117 o := binary.BigEndian
1121 // field[1] m.BsidAddr
1122 for i := 0; i < len(m.BsidAddr); i++ {
1123 m.BsidAddr[i] = uint8(tmp[pos])
1126 // field[1] m.SrPolicyIndex
1127 m.SrPolicyIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1129 // field[1] m.FibTable
1130 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
1132 // field[1] m.Operation
1133 m.Operation = SrPolicyOp(tmp[pos])
1135 // field[1] m.SlIndex
1136 m.SlIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1138 // field[1] m.Weight
1139 m.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
1142 // field[2] m.Sids.NumSids
1143 m.Sids.NumSids = uint8(tmp[pos])
1145 // field[2] m.Sids.Weight
1146 m.Sids.Weight = uint32(o.Uint32(tmp[pos : pos+4]))
1148 // field[2] m.Sids.Sids
1149 for j2 := 0; j2 < 16; j2++ {
1150 for i := 0; i < len(m.Sids.Sids[j2]); i++ {
1151 m.Sids.Sids[j2][i] = uint8(tmp[pos])
1158 // SrPolicyModReply represents VPP binary API message 'sr_policy_mod_reply'.
1159 type SrPolicyModReply struct {
1160 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1163 func (m *SrPolicyModReply) Reset() { *m = SrPolicyModReply{} }
1164 func (*SrPolicyModReply) GetMessageName() string { return "sr_policy_mod_reply" }
1165 func (*SrPolicyModReply) GetCrcString() string { return "e8d4e804" }
1166 func (*SrPolicyModReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1168 func (m *SrPolicyModReply) Size() int {
1173 // field[1] m.Retval
1177 func (m *SrPolicyModReply) Marshal(b []byte) ([]byte, error) {
1178 o := binary.BigEndian
1184 buf = make([]byte, m.Size())
1188 // field[1] m.Retval
1189 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1193 func (m *SrPolicyModReply) Unmarshal(tmp []byte) error {
1194 o := binary.BigEndian
1198 // field[1] m.Retval
1199 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1204 // SrSetEncapHopLimit represents VPP binary API message 'sr_set_encap_hop_limit'.
1205 type SrSetEncapHopLimit struct {
1206 HopLimit uint8 `binapi:"u8,name=hop_limit" json:"hop_limit,omitempty"`
1209 func (m *SrSetEncapHopLimit) Reset() { *m = SrSetEncapHopLimit{} }
1210 func (*SrSetEncapHopLimit) GetMessageName() string { return "sr_set_encap_hop_limit" }
1211 func (*SrSetEncapHopLimit) GetCrcString() string { return "aa75d7d0" }
1212 func (*SrSetEncapHopLimit) GetMessageType() api.MessageType { return api.RequestMessage }
1214 func (m *SrSetEncapHopLimit) Size() int {
1219 // field[1] m.HopLimit
1223 func (m *SrSetEncapHopLimit) Marshal(b []byte) ([]byte, error) {
1224 o := binary.BigEndian
1230 buf = make([]byte, m.Size())
1234 // field[1] m.HopLimit
1235 buf[pos] = uint8(m.HopLimit)
1239 func (m *SrSetEncapHopLimit) Unmarshal(tmp []byte) error {
1240 o := binary.BigEndian
1244 // field[1] m.HopLimit
1245 m.HopLimit = uint8(tmp[pos])
1250 // SrSetEncapHopLimitReply represents VPP binary API message 'sr_set_encap_hop_limit_reply'.
1251 type SrSetEncapHopLimitReply struct {
1252 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1255 func (m *SrSetEncapHopLimitReply) Reset() { *m = SrSetEncapHopLimitReply{} }
1256 func (*SrSetEncapHopLimitReply) GetMessageName() string { return "sr_set_encap_hop_limit_reply" }
1257 func (*SrSetEncapHopLimitReply) GetCrcString() string { return "e8d4e804" }
1258 func (*SrSetEncapHopLimitReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1260 func (m *SrSetEncapHopLimitReply) Size() int {
1265 // field[1] m.Retval
1269 func (m *SrSetEncapHopLimitReply) Marshal(b []byte) ([]byte, error) {
1270 o := binary.BigEndian
1276 buf = make([]byte, m.Size())
1280 // field[1] m.Retval
1281 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1285 func (m *SrSetEncapHopLimitReply) Unmarshal(tmp []byte) error {
1286 o := binary.BigEndian
1290 // field[1] m.Retval
1291 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1296 // SrSetEncapSource represents VPP binary API message 'sr_set_encap_source'.
1297 type SrSetEncapSource struct {
1298 EncapsSource ip_types.IP6Address `binapi:"ip6_address,name=encaps_source" json:"encaps_source,omitempty"`
1301 func (m *SrSetEncapSource) Reset() { *m = SrSetEncapSource{} }
1302 func (*SrSetEncapSource) GetMessageName() string { return "sr_set_encap_source" }
1303 func (*SrSetEncapSource) GetCrcString() string { return "d3bad5e1" }
1304 func (*SrSetEncapSource) GetMessageType() api.MessageType { return api.RequestMessage }
1306 func (m *SrSetEncapSource) Size() int {
1311 // field[1] m.EncapsSource
1315 func (m *SrSetEncapSource) Marshal(b []byte) ([]byte, error) {
1316 o := binary.BigEndian
1322 buf = make([]byte, m.Size())
1326 // field[1] m.EncapsSource
1327 for i := 0; i < 16; i++ {
1329 if i < len(m.EncapsSource) {
1330 x = uint8(m.EncapsSource[i])
1337 func (m *SrSetEncapSource) Unmarshal(tmp []byte) error {
1338 o := binary.BigEndian
1342 // field[1] m.EncapsSource
1343 for i := 0; i < len(m.EncapsSource); i++ {
1344 m.EncapsSource[i] = uint8(tmp[pos])
1350 // SrSetEncapSourceReply represents VPP binary API message 'sr_set_encap_source_reply'.
1351 type SrSetEncapSourceReply struct {
1352 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1355 func (m *SrSetEncapSourceReply) Reset() { *m = SrSetEncapSourceReply{} }
1356 func (*SrSetEncapSourceReply) GetMessageName() string { return "sr_set_encap_source_reply" }
1357 func (*SrSetEncapSourceReply) GetCrcString() string { return "e8d4e804" }
1358 func (*SrSetEncapSourceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1360 func (m *SrSetEncapSourceReply) Size() int {
1365 // field[1] m.Retval
1369 func (m *SrSetEncapSourceReply) Marshal(b []byte) ([]byte, error) {
1370 o := binary.BigEndian
1376 buf = make([]byte, m.Size())
1380 // field[1] m.Retval
1381 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1385 func (m *SrSetEncapSourceReply) Unmarshal(tmp []byte) error {
1386 o := binary.BigEndian
1390 // field[1] m.Retval
1391 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1396 // SrSteeringAddDel represents VPP binary API message 'sr_steering_add_del'.
1397 type SrSteeringAddDel struct {
1398 IsDel bool `binapi:"bool,name=is_del,default=false" json:"is_del,omitempty"`
1399 BsidAddr ip_types.IP6Address `binapi:"ip6_address,name=bsid_addr" json:"bsid_addr,omitempty"`
1400 SrPolicyIndex uint32 `binapi:"u32,name=sr_policy_index" json:"sr_policy_index,omitempty"`
1401 TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
1402 Prefix ip_types.Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"`
1403 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1404 TrafficType SrSteer `binapi:"sr_steer,name=traffic_type" json:"traffic_type,omitempty"`
1407 func (m *SrSteeringAddDel) Reset() { *m = SrSteeringAddDel{} }
1408 func (*SrSteeringAddDel) GetMessageName() string { return "sr_steering_add_del" }
1409 func (*SrSteeringAddDel) GetCrcString() string { return "3711dace" }
1410 func (*SrSteeringAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
1412 func (m *SrSteeringAddDel) Size() int {
1419 // field[1] m.BsidAddr
1421 // field[1] m.SrPolicyIndex
1423 // field[1] m.TableID
1425 // field[1] m.Prefix
1426 // field[2] m.Prefix.Address
1427 // field[3] m.Prefix.Address.Af
1429 // field[3] m.Prefix.Address.Un
1431 // field[2] m.Prefix.Len
1433 // field[1] m.SwIfIndex
1435 // field[1] m.TrafficType
1439 func (m *SrSteeringAddDel) Marshal(b []byte) ([]byte, error) {
1440 o := binary.BigEndian
1446 buf = make([]byte, m.Size())
1455 // field[1] m.BsidAddr
1456 for i := 0; i < 16; i++ {
1458 if i < len(m.BsidAddr) {
1459 x = uint8(m.BsidAddr[i])
1464 // field[1] m.SrPolicyIndex
1465 o.PutUint32(buf[pos:pos+4], uint32(m.SrPolicyIndex))
1467 // field[1] m.TableID
1468 o.PutUint32(buf[pos:pos+4], uint32(m.TableID))
1470 // field[1] m.Prefix
1471 // field[2] m.Prefix.Address
1472 // field[3] m.Prefix.Address.Af
1473 buf[pos] = uint8(m.Prefix.Address.Af)
1475 // field[3] m.Prefix.Address.Un
1476 copy(buf[pos:pos+16], m.Prefix.Address.Un.XXX_UnionData[:])
1478 // field[2] m.Prefix.Len
1479 buf[pos] = uint8(m.Prefix.Len)
1481 // field[1] m.SwIfIndex
1482 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1484 // field[1] m.TrafficType
1485 buf[pos] = uint8(m.TrafficType)
1489 func (m *SrSteeringAddDel) Unmarshal(tmp []byte) error {
1490 o := binary.BigEndian
1495 m.IsDel = tmp[pos] != 0
1497 // field[1] m.BsidAddr
1498 for i := 0; i < len(m.BsidAddr); i++ {
1499 m.BsidAddr[i] = uint8(tmp[pos])
1502 // field[1] m.SrPolicyIndex
1503 m.SrPolicyIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1505 // field[1] m.TableID
1506 m.TableID = uint32(o.Uint32(tmp[pos : pos+4]))
1508 // field[1] m.Prefix
1509 // field[2] m.Prefix.Address
1510 // field[3] m.Prefix.Address.Af
1511 m.Prefix.Address.Af = ip_types.AddressFamily(tmp[pos])
1513 // field[3] m.Prefix.Address.Un
1514 copy(m.Prefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
1516 // field[2] m.Prefix.Len
1517 m.Prefix.Len = uint8(tmp[pos])
1519 // field[1] m.SwIfIndex
1520 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1522 // field[1] m.TrafficType
1523 m.TrafficType = SrSteer(tmp[pos])
1528 // SrSteeringAddDelReply represents VPP binary API message 'sr_steering_add_del_reply'.
1529 type SrSteeringAddDelReply struct {
1530 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1533 func (m *SrSteeringAddDelReply) Reset() { *m = SrSteeringAddDelReply{} }
1534 func (*SrSteeringAddDelReply) GetMessageName() string { return "sr_steering_add_del_reply" }
1535 func (*SrSteeringAddDelReply) GetCrcString() string { return "e8d4e804" }
1536 func (*SrSteeringAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1538 func (m *SrSteeringAddDelReply) Size() int {
1543 // field[1] m.Retval
1547 func (m *SrSteeringAddDelReply) Marshal(b []byte) ([]byte, error) {
1548 o := binary.BigEndian
1554 buf = make([]byte, m.Size())
1558 // field[1] m.Retval
1559 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1563 func (m *SrSteeringAddDelReply) Unmarshal(tmp []byte) error {
1564 o := binary.BigEndian
1568 // field[1] m.Retval
1569 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1574 // SrSteeringPolDetails represents VPP binary API message 'sr_steering_pol_details'.
1575 type SrSteeringPolDetails struct {
1576 TrafficType SrSteer `binapi:"sr_steer,name=traffic_type" json:"traffic_type,omitempty"`
1577 FibTable uint32 `binapi:"u32,name=fib_table" json:"fib_table,omitempty"`
1578 Prefix ip_types.Prefix `binapi:"prefix,name=prefix" json:"prefix,omitempty"`
1579 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1580 Bsid ip_types.IP6Address `binapi:"ip6_address,name=bsid" json:"bsid,omitempty"`
1583 func (m *SrSteeringPolDetails) Reset() { *m = SrSteeringPolDetails{} }
1584 func (*SrSteeringPolDetails) GetMessageName() string { return "sr_steering_pol_details" }
1585 func (*SrSteeringPolDetails) GetCrcString() string { return "1c1ee786" }
1586 func (*SrSteeringPolDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
1588 func (m *SrSteeringPolDetails) Size() int {
1593 // field[1] m.TrafficType
1595 // field[1] m.FibTable
1597 // field[1] m.Prefix
1598 // field[2] m.Prefix.Address
1599 // field[3] m.Prefix.Address.Af
1601 // field[3] m.Prefix.Address.Un
1603 // field[2] m.Prefix.Len
1605 // field[1] m.SwIfIndex
1611 func (m *SrSteeringPolDetails) Marshal(b []byte) ([]byte, error) {
1612 o := binary.BigEndian
1618 buf = make([]byte, m.Size())
1622 // field[1] m.TrafficType
1623 buf[pos] = uint8(m.TrafficType)
1625 // field[1] m.FibTable
1626 o.PutUint32(buf[pos:pos+4], uint32(m.FibTable))
1628 // field[1] m.Prefix
1629 // field[2] m.Prefix.Address
1630 // field[3] m.Prefix.Address.Af
1631 buf[pos] = uint8(m.Prefix.Address.Af)
1633 // field[3] m.Prefix.Address.Un
1634 copy(buf[pos:pos+16], m.Prefix.Address.Un.XXX_UnionData[:])
1636 // field[2] m.Prefix.Len
1637 buf[pos] = uint8(m.Prefix.Len)
1639 // field[1] m.SwIfIndex
1640 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1643 for i := 0; i < 16; i++ {
1645 if i < len(m.Bsid) {
1646 x = uint8(m.Bsid[i])
1653 func (m *SrSteeringPolDetails) Unmarshal(tmp []byte) error {
1654 o := binary.BigEndian
1658 // field[1] m.TrafficType
1659 m.TrafficType = SrSteer(tmp[pos])
1661 // field[1] m.FibTable
1662 m.FibTable = uint32(o.Uint32(tmp[pos : pos+4]))
1664 // field[1] m.Prefix
1665 // field[2] m.Prefix.Address
1666 // field[3] m.Prefix.Address.Af
1667 m.Prefix.Address.Af = ip_types.AddressFamily(tmp[pos])
1669 // field[3] m.Prefix.Address.Un
1670 copy(m.Prefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
1672 // field[2] m.Prefix.Len
1673 m.Prefix.Len = uint8(tmp[pos])
1675 // field[1] m.SwIfIndex
1676 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1679 for i := 0; i < len(m.Bsid); i++ {
1680 m.Bsid[i] = uint8(tmp[pos])
1686 // SrSteeringPolDump represents VPP binary API message 'sr_steering_pol_dump'.
1687 type SrSteeringPolDump struct{}
1689 func (m *SrSteeringPolDump) Reset() { *m = SrSteeringPolDump{} }
1690 func (*SrSteeringPolDump) GetMessageName() string { return "sr_steering_pol_dump" }
1691 func (*SrSteeringPolDump) GetCrcString() string { return "51077d14" }
1692 func (*SrSteeringPolDump) GetMessageType() api.MessageType { return api.RequestMessage }
1694 func (m *SrSteeringPolDump) Size() int {
1701 func (m *SrSteeringPolDump) Marshal(b []byte) ([]byte, error) {
1702 o := binary.BigEndian
1708 buf = make([]byte, m.Size())
1714 func (m *SrSteeringPolDump) Unmarshal(tmp []byte) error {
1715 o := binary.BigEndian
1722 func init() { file_sr_binapi_init() }
1723 func file_sr_binapi_init() {
1724 api.RegisterMessage((*SrLocalsidAddDel)(nil), "sr.SrLocalsidAddDel")
1725 api.RegisterMessage((*SrLocalsidAddDelReply)(nil), "sr.SrLocalsidAddDelReply")
1726 api.RegisterMessage((*SrLocalsidsDetails)(nil), "sr.SrLocalsidsDetails")
1727 api.RegisterMessage((*SrLocalsidsDump)(nil), "sr.SrLocalsidsDump")
1728 api.RegisterMessage((*SrPoliciesDetails)(nil), "sr.SrPoliciesDetails")
1729 api.RegisterMessage((*SrPoliciesDump)(nil), "sr.SrPoliciesDump")
1730 api.RegisterMessage((*SrPolicyAdd)(nil), "sr.SrPolicyAdd")
1731 api.RegisterMessage((*SrPolicyAddReply)(nil), "sr.SrPolicyAddReply")
1732 api.RegisterMessage((*SrPolicyDel)(nil), "sr.SrPolicyDel")
1733 api.RegisterMessage((*SrPolicyDelReply)(nil), "sr.SrPolicyDelReply")
1734 api.RegisterMessage((*SrPolicyMod)(nil), "sr.SrPolicyMod")
1735 api.RegisterMessage((*SrPolicyModReply)(nil), "sr.SrPolicyModReply")
1736 api.RegisterMessage((*SrSetEncapHopLimit)(nil), "sr.SrSetEncapHopLimit")
1737 api.RegisterMessage((*SrSetEncapHopLimitReply)(nil), "sr.SrSetEncapHopLimitReply")
1738 api.RegisterMessage((*SrSetEncapSource)(nil), "sr.SrSetEncapSource")
1739 api.RegisterMessage((*SrSetEncapSourceReply)(nil), "sr.SrSetEncapSourceReply")
1740 api.RegisterMessage((*SrSteeringAddDel)(nil), "sr.SrSteeringAddDel")
1741 api.RegisterMessage((*SrSteeringAddDelReply)(nil), "sr.SrSteeringAddDelReply")
1742 api.RegisterMessage((*SrSteeringPolDetails)(nil), "sr.SrSteeringPolDetails")
1743 api.RegisterMessage((*SrSteeringPolDump)(nil), "sr.SrSteeringPolDump")
1746 // Messages returns list of all messages in this module.
1747 func AllMessages() []api.Message {
1748 return []api.Message{
1749 (*SrLocalsidAddDel)(nil),
1750 (*SrLocalsidAddDelReply)(nil),
1751 (*SrLocalsidsDetails)(nil),
1752 (*SrLocalsidsDump)(nil),
1753 (*SrPoliciesDetails)(nil),
1754 (*SrPoliciesDump)(nil),
1755 (*SrPolicyAdd)(nil),
1756 (*SrPolicyAddReply)(nil),
1757 (*SrPolicyDel)(nil),
1758 (*SrPolicyDelReply)(nil),
1759 (*SrPolicyMod)(nil),
1760 (*SrPolicyModReply)(nil),
1761 (*SrSetEncapHopLimit)(nil),
1762 (*SrSetEncapHopLimitReply)(nil),
1763 (*SrSetEncapSource)(nil),
1764 (*SrSetEncapSourceReply)(nil),
1765 (*SrSteeringAddDel)(nil),
1766 (*SrSteeringAddDelReply)(nil),
1767 (*SrSteeringPolDetails)(nil),
1768 (*SrSteeringPolDump)(nil),
1772 // Reference imports to suppress errors if they are not otherwise used.
1773 var _ = api.RegisterMessage
1774 var _ = codec.DecodeString
1775 var _ = bytes.NewBuffer
1776 var _ = context.Background
1778 var _ = strconv.Itoa
1779 var _ = strings.Contains
1781 var _ = binary.BigEndian
1782 var _ = math.Float32bits