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/one.api.json
7 // Package one contains generated bindings for API file one.api.
17 api "git.fd.io/govpp.git/api"
18 ethernet_types "git.fd.io/govpp.git/binapi/ethernet_types"
19 interface_types "git.fd.io/govpp.git/binapi/interface_types"
20 ip_types "git.fd.io/govpp.git/binapi/ip_types"
21 lisp_types "git.fd.io/govpp.git/binapi/lisp_types"
22 codec "git.fd.io/govpp.git/codec"
26 // This is a compile-time assertion to ensure that this generated file
27 // is compatible with the GoVPP api package it is being compiled against.
28 // A compilation error at this line likely means your copy of the
29 // GoVPP api package needs to be updated.
30 const _ = api.GoVppAPIPackageIsVersion2
35 VersionCrc = 0x288aaf5d
38 // OneFilter defines enum 'one_filter'.
42 ONE_FILTER_API_ALL OneFilter = 0
43 ONE_FILTER_API_LOCAL OneFilter = 1
44 ONE_FILTER_API_REMOTE OneFilter = 2
48 OneFilter_name = map[uint32]string{
49 0: "ONE_FILTER_API_ALL",
50 1: "ONE_FILTER_API_LOCAL",
51 2: "ONE_FILTER_API_REMOTE",
53 OneFilter_value = map[string]uint32{
54 "ONE_FILTER_API_ALL": 0,
55 "ONE_FILTER_API_LOCAL": 1,
56 "ONE_FILTER_API_REMOTE": 2,
60 func (x OneFilter) String() string {
61 s, ok := OneFilter_name[uint32(x)]
65 return "OneFilter(" + strconv.Itoa(int(x)) + ")"
68 // OneMapMode defines enum 'one_map_mode'.
69 type OneMapMode uint32
72 ONE_MAP_MODE_API_DST_ONLY OneMapMode = 0
73 ONE_MAP_MODE_API_SRC_DST OneMapMode = 1
77 OneMapMode_name = map[uint32]string{
78 0: "ONE_MAP_MODE_API_DST_ONLY",
79 1: "ONE_MAP_MODE_API_SRC_DST",
81 OneMapMode_value = map[string]uint32{
82 "ONE_MAP_MODE_API_DST_ONLY": 0,
83 "ONE_MAP_MODE_API_SRC_DST": 1,
87 func (x OneMapMode) String() string {
88 s, ok := OneMapMode_name[uint32(x)]
92 return "OneMapMode(" + strconv.Itoa(int(x)) + ")"
95 // OneAdjacency defines type 'one_adjacency'.
96 type OneAdjacency struct {
97 Reid lisp_types.Eid `binapi:"eid,name=reid" json:"reid,omitempty"`
98 Leid lisp_types.Eid `binapi:"eid,name=leid" json:"leid,omitempty"`
101 // OneL2ArpEntry defines type 'one_l2_arp_entry'.
102 type OneL2ArpEntry struct {
103 Mac ethernet_types.MacAddress `binapi:"mac_address,name=mac" json:"mac,omitempty"`
104 IP4 ip_types.IP4Address `binapi:"ip4_address,name=ip4" json:"ip4,omitempty"`
107 // OneNdpEntry defines type 'one_ndp_entry'.
108 type OneNdpEntry struct {
109 Mac ethernet_types.MacAddress `binapi:"mac_address,name=mac" json:"mac,omitempty"`
110 IP6 ip_types.IP6Address `binapi:"ip6_address,name=ip6" json:"ip6,omitempty"`
113 // OneAddDelAdjacency defines message 'one_add_del_adjacency'.
114 type OneAddDelAdjacency struct {
115 IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"`
116 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
117 Reid lisp_types.Eid `binapi:"eid,name=reid" json:"reid,omitempty"`
118 Leid lisp_types.Eid `binapi:"eid,name=leid" json:"leid,omitempty"`
121 func (m *OneAddDelAdjacency) Reset() { *m = OneAddDelAdjacency{} }
122 func (*OneAddDelAdjacency) GetMessageName() string { return "one_add_del_adjacency" }
123 func (*OneAddDelAdjacency) GetCrcString() string { return "e48e7afe" }
124 func (*OneAddDelAdjacency) GetMessageType() api.MessageType {
125 return api.RequestMessage
128 func (m *OneAddDelAdjacency) Size() int {
135 size += 1 // m.Reid.Type
136 size += 1 * 6 // m.Reid.Address
137 size += 1 // m.Leid.Type
138 size += 1 * 6 // m.Leid.Address
141 func (m *OneAddDelAdjacency) Marshal(b []byte) ([]byte, error) {
142 var buf *codec.Buffer
144 buf = codec.NewBuffer(make([]byte, m.Size()))
146 buf = codec.NewBuffer(b)
148 buf.EncodeUint8(uint8(m.IsAdd))
149 buf.EncodeUint32(uint32(m.Vni))
150 buf.EncodeUint8(uint8(m.Reid.Type))
151 buf.EncodeBytes(m.Reid.Address.XXX_UnionData[:], 0)
152 buf.EncodeUint8(uint8(m.Leid.Type))
153 buf.EncodeBytes(m.Leid.Address.XXX_UnionData[:], 0)
154 return buf.Bytes(), nil
156 func (m *OneAddDelAdjacency) Unmarshal(b []byte) error {
157 buf := codec.NewBuffer(b)
158 m.IsAdd = buf.DecodeUint8()
159 m.Vni = buf.DecodeUint32()
160 m.Reid.Type = lisp_types.EidType(buf.DecodeUint8())
161 copy(m.Reid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
162 m.Leid.Type = lisp_types.EidType(buf.DecodeUint8())
163 copy(m.Leid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
167 // OneAddDelAdjacencyReply defines message 'one_add_del_adjacency_reply'.
168 type OneAddDelAdjacencyReply struct {
169 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
172 func (m *OneAddDelAdjacencyReply) Reset() { *m = OneAddDelAdjacencyReply{} }
173 func (*OneAddDelAdjacencyReply) GetMessageName() string { return "one_add_del_adjacency_reply" }
174 func (*OneAddDelAdjacencyReply) GetCrcString() string { return "e8d4e804" }
175 func (*OneAddDelAdjacencyReply) GetMessageType() api.MessageType {
176 return api.ReplyMessage
179 func (m *OneAddDelAdjacencyReply) Size() int {
184 size += 4 // m.Retval
187 func (m *OneAddDelAdjacencyReply) Marshal(b []byte) ([]byte, error) {
188 var buf *codec.Buffer
190 buf = codec.NewBuffer(make([]byte, m.Size()))
192 buf = codec.NewBuffer(b)
194 buf.EncodeUint32(uint32(m.Retval))
195 return buf.Bytes(), nil
197 func (m *OneAddDelAdjacencyReply) Unmarshal(b []byte) error {
198 buf := codec.NewBuffer(b)
199 m.Retval = int32(buf.DecodeUint32())
203 // OneAddDelL2ArpEntry defines message 'one_add_del_l2_arp_entry'.
204 type OneAddDelL2ArpEntry struct {
205 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
206 Bd uint32 `binapi:"u32,name=bd" json:"bd,omitempty"`
207 Entry OneL2ArpEntry `binapi:"one_l2_arp_entry,name=entry" json:"entry,omitempty"`
210 func (m *OneAddDelL2ArpEntry) Reset() { *m = OneAddDelL2ArpEntry{} }
211 func (*OneAddDelL2ArpEntry) GetMessageName() string { return "one_add_del_l2_arp_entry" }
212 func (*OneAddDelL2ArpEntry) GetCrcString() string { return "33209078" }
213 func (*OneAddDelL2ArpEntry) GetMessageType() api.MessageType {
214 return api.RequestMessage
217 func (m *OneAddDelL2ArpEntry) Size() int {
224 size += 1 * 6 // m.Entry.Mac
225 size += 1 * 4 // m.Entry.IP4
228 func (m *OneAddDelL2ArpEntry) Marshal(b []byte) ([]byte, error) {
229 var buf *codec.Buffer
231 buf = codec.NewBuffer(make([]byte, m.Size()))
233 buf = codec.NewBuffer(b)
235 buf.EncodeBool(m.IsAdd)
236 buf.EncodeUint32(uint32(m.Bd))
237 buf.EncodeBytes(m.Entry.Mac[:], 6)
238 buf.EncodeBytes(m.Entry.IP4[:], 4)
239 return buf.Bytes(), nil
241 func (m *OneAddDelL2ArpEntry) Unmarshal(b []byte) error {
242 buf := codec.NewBuffer(b)
243 m.IsAdd = buf.DecodeBool()
244 m.Bd = buf.DecodeUint32()
245 copy(m.Entry.Mac[:], buf.DecodeBytes(6))
246 copy(m.Entry.IP4[:], buf.DecodeBytes(4))
250 // OneAddDelL2ArpEntryReply defines message 'one_add_del_l2_arp_entry_reply'.
251 type OneAddDelL2ArpEntryReply struct {
252 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
255 func (m *OneAddDelL2ArpEntryReply) Reset() { *m = OneAddDelL2ArpEntryReply{} }
256 func (*OneAddDelL2ArpEntryReply) GetMessageName() string { return "one_add_del_l2_arp_entry_reply" }
257 func (*OneAddDelL2ArpEntryReply) GetCrcString() string { return "e8d4e804" }
258 func (*OneAddDelL2ArpEntryReply) GetMessageType() api.MessageType {
259 return api.ReplyMessage
262 func (m *OneAddDelL2ArpEntryReply) Size() int {
267 size += 4 // m.Retval
270 func (m *OneAddDelL2ArpEntryReply) Marshal(b []byte) ([]byte, error) {
271 var buf *codec.Buffer
273 buf = codec.NewBuffer(make([]byte, m.Size()))
275 buf = codec.NewBuffer(b)
277 buf.EncodeUint32(uint32(m.Retval))
278 return buf.Bytes(), nil
280 func (m *OneAddDelL2ArpEntryReply) Unmarshal(b []byte) error {
281 buf := codec.NewBuffer(b)
282 m.Retval = int32(buf.DecodeUint32())
286 // OneAddDelLocalEid defines message 'one_add_del_local_eid'.
287 type OneAddDelLocalEid struct {
288 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
289 Eid lisp_types.Eid `binapi:"eid,name=eid" json:"eid,omitempty"`
290 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
291 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
292 Key lisp_types.HmacKey `binapi:"hmac_key,name=key" json:"key,omitempty"`
295 func (m *OneAddDelLocalEid) Reset() { *m = OneAddDelLocalEid{} }
296 func (*OneAddDelLocalEid) GetMessageName() string { return "one_add_del_local_eid" }
297 func (*OneAddDelLocalEid) GetCrcString() string { return "21f573bd" }
298 func (*OneAddDelLocalEid) GetMessageType() api.MessageType {
299 return api.RequestMessage
302 func (m *OneAddDelLocalEid) Size() int {
308 size += 1 // m.Eid.Type
309 size += 1 * 6 // m.Eid.Address
310 size += 64 // m.LocatorSetName
312 size += 1 // m.Key.ID
313 size += 1 * 64 // m.Key.Key
316 func (m *OneAddDelLocalEid) Marshal(b []byte) ([]byte, error) {
317 var buf *codec.Buffer
319 buf = codec.NewBuffer(make([]byte, m.Size()))
321 buf = codec.NewBuffer(b)
323 buf.EncodeBool(m.IsAdd)
324 buf.EncodeUint8(uint8(m.Eid.Type))
325 buf.EncodeBytes(m.Eid.Address.XXX_UnionData[:], 0)
326 buf.EncodeString(m.LocatorSetName, 64)
327 buf.EncodeUint32(uint32(m.Vni))
328 buf.EncodeUint8(uint8(m.Key.ID))
329 buf.EncodeBytes(m.Key.Key[:], 64)
330 return buf.Bytes(), nil
332 func (m *OneAddDelLocalEid) Unmarshal(b []byte) error {
333 buf := codec.NewBuffer(b)
334 m.IsAdd = buf.DecodeBool()
335 m.Eid.Type = lisp_types.EidType(buf.DecodeUint8())
336 copy(m.Eid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
337 m.LocatorSetName = buf.DecodeString(64)
338 m.Vni = buf.DecodeUint32()
339 m.Key.ID = lisp_types.HmacKeyID(buf.DecodeUint8())
340 copy(m.Key.Key[:], buf.DecodeBytes(64))
344 // OneAddDelLocalEidReply defines message 'one_add_del_local_eid_reply'.
345 type OneAddDelLocalEidReply struct {
346 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
349 func (m *OneAddDelLocalEidReply) Reset() { *m = OneAddDelLocalEidReply{} }
350 func (*OneAddDelLocalEidReply) GetMessageName() string { return "one_add_del_local_eid_reply" }
351 func (*OneAddDelLocalEidReply) GetCrcString() string { return "e8d4e804" }
352 func (*OneAddDelLocalEidReply) GetMessageType() api.MessageType {
353 return api.ReplyMessage
356 func (m *OneAddDelLocalEidReply) Size() int {
361 size += 4 // m.Retval
364 func (m *OneAddDelLocalEidReply) Marshal(b []byte) ([]byte, error) {
365 var buf *codec.Buffer
367 buf = codec.NewBuffer(make([]byte, m.Size()))
369 buf = codec.NewBuffer(b)
371 buf.EncodeUint32(uint32(m.Retval))
372 return buf.Bytes(), nil
374 func (m *OneAddDelLocalEidReply) Unmarshal(b []byte) error {
375 buf := codec.NewBuffer(b)
376 m.Retval = int32(buf.DecodeUint32())
380 // OneAddDelLocator defines message 'one_add_del_locator'.
381 type OneAddDelLocator struct {
382 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
383 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
384 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
385 Priority uint8 `binapi:"u8,name=priority" json:"priority,omitempty"`
386 Weight uint8 `binapi:"u8,name=weight" json:"weight,omitempty"`
389 func (m *OneAddDelLocator) Reset() { *m = OneAddDelLocator{} }
390 func (*OneAddDelLocator) GetMessageName() string { return "one_add_del_locator" }
391 func (*OneAddDelLocator) GetCrcString() string { return "af4d8f13" }
392 func (*OneAddDelLocator) GetMessageType() api.MessageType {
393 return api.RequestMessage
396 func (m *OneAddDelLocator) Size() int {
402 size += 64 // m.LocatorSetName
403 size += 4 // m.SwIfIndex
404 size += 1 // m.Priority
405 size += 1 // m.Weight
408 func (m *OneAddDelLocator) Marshal(b []byte) ([]byte, error) {
409 var buf *codec.Buffer
411 buf = codec.NewBuffer(make([]byte, m.Size()))
413 buf = codec.NewBuffer(b)
415 buf.EncodeBool(m.IsAdd)
416 buf.EncodeString(m.LocatorSetName, 64)
417 buf.EncodeUint32(uint32(m.SwIfIndex))
418 buf.EncodeUint8(uint8(m.Priority))
419 buf.EncodeUint8(uint8(m.Weight))
420 return buf.Bytes(), nil
422 func (m *OneAddDelLocator) Unmarshal(b []byte) error {
423 buf := codec.NewBuffer(b)
424 m.IsAdd = buf.DecodeBool()
425 m.LocatorSetName = buf.DecodeString(64)
426 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
427 m.Priority = buf.DecodeUint8()
428 m.Weight = buf.DecodeUint8()
432 // OneAddDelLocatorReply defines message 'one_add_del_locator_reply'.
433 type OneAddDelLocatorReply struct {
434 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
437 func (m *OneAddDelLocatorReply) Reset() { *m = OneAddDelLocatorReply{} }
438 func (*OneAddDelLocatorReply) GetMessageName() string { return "one_add_del_locator_reply" }
439 func (*OneAddDelLocatorReply) GetCrcString() string { return "e8d4e804" }
440 func (*OneAddDelLocatorReply) GetMessageType() api.MessageType {
441 return api.ReplyMessage
444 func (m *OneAddDelLocatorReply) Size() int {
449 size += 4 // m.Retval
452 func (m *OneAddDelLocatorReply) Marshal(b []byte) ([]byte, error) {
453 var buf *codec.Buffer
455 buf = codec.NewBuffer(make([]byte, m.Size()))
457 buf = codec.NewBuffer(b)
459 buf.EncodeUint32(uint32(m.Retval))
460 return buf.Bytes(), nil
462 func (m *OneAddDelLocatorReply) Unmarshal(b []byte) error {
463 buf := codec.NewBuffer(b)
464 m.Retval = int32(buf.DecodeUint32())
468 // OneAddDelLocatorSet defines message 'one_add_del_locator_set'.
469 type OneAddDelLocatorSet struct {
470 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
471 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
472 LocatorNum uint32 `binapi:"u32,name=locator_num" json:"-"`
473 Locators []lisp_types.LocalLocator `binapi:"local_locator[locator_num],name=locators" json:"locators,omitempty"`
476 func (m *OneAddDelLocatorSet) Reset() { *m = OneAddDelLocatorSet{} }
477 func (*OneAddDelLocatorSet) GetMessageName() string { return "one_add_del_locator_set" }
478 func (*OneAddDelLocatorSet) GetCrcString() string { return "6fcd6471" }
479 func (*OneAddDelLocatorSet) GetMessageType() api.MessageType {
480 return api.RequestMessage
483 func (m *OneAddDelLocatorSet) Size() int {
489 size += 64 // m.LocatorSetName
490 size += 4 // m.LocatorNum
491 for j1 := 0; j1 < len(m.Locators); j1++ {
492 var s1 lisp_types.LocalLocator
494 if j1 < len(m.Locators) {
497 size += 4 // s1.SwIfIndex
498 size += 1 // s1.Priority
499 size += 1 // s1.Weight
503 func (m *OneAddDelLocatorSet) Marshal(b []byte) ([]byte, error) {
504 var buf *codec.Buffer
506 buf = codec.NewBuffer(make([]byte, m.Size()))
508 buf = codec.NewBuffer(b)
510 buf.EncodeBool(m.IsAdd)
511 buf.EncodeString(m.LocatorSetName, 64)
512 buf.EncodeUint32(uint32(len(m.Locators)))
513 for j0 := 0; j0 < len(m.Locators); j0++ {
514 var v0 lisp_types.LocalLocator
515 if j0 < len(m.Locators) {
518 buf.EncodeUint32(uint32(v0.SwIfIndex))
519 buf.EncodeUint8(uint8(v0.Priority))
520 buf.EncodeUint8(uint8(v0.Weight))
522 return buf.Bytes(), nil
524 func (m *OneAddDelLocatorSet) Unmarshal(b []byte) error {
525 buf := codec.NewBuffer(b)
526 m.IsAdd = buf.DecodeBool()
527 m.LocatorSetName = buf.DecodeString(64)
528 m.LocatorNum = buf.DecodeUint32()
529 m.Locators = make([]lisp_types.LocalLocator, int(m.LocatorNum))
530 for j0 := 0; j0 < len(m.Locators); j0++ {
531 m.Locators[j0].SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
532 m.Locators[j0].Priority = buf.DecodeUint8()
533 m.Locators[j0].Weight = buf.DecodeUint8()
538 // OneAddDelLocatorSetReply defines message 'one_add_del_locator_set_reply'.
539 type OneAddDelLocatorSetReply struct {
540 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
541 LsIndex uint32 `binapi:"u32,name=ls_index" json:"ls_index,omitempty"`
544 func (m *OneAddDelLocatorSetReply) Reset() { *m = OneAddDelLocatorSetReply{} }
545 func (*OneAddDelLocatorSetReply) GetMessageName() string { return "one_add_del_locator_set_reply" }
546 func (*OneAddDelLocatorSetReply) GetCrcString() string { return "b6666db4" }
547 func (*OneAddDelLocatorSetReply) GetMessageType() api.MessageType {
548 return api.ReplyMessage
551 func (m *OneAddDelLocatorSetReply) Size() int {
556 size += 4 // m.Retval
557 size += 4 // m.LsIndex
560 func (m *OneAddDelLocatorSetReply) Marshal(b []byte) ([]byte, error) {
561 var buf *codec.Buffer
563 buf = codec.NewBuffer(make([]byte, m.Size()))
565 buf = codec.NewBuffer(b)
567 buf.EncodeUint32(uint32(m.Retval))
568 buf.EncodeUint32(uint32(m.LsIndex))
569 return buf.Bytes(), nil
571 func (m *OneAddDelLocatorSetReply) Unmarshal(b []byte) error {
572 buf := codec.NewBuffer(b)
573 m.Retval = int32(buf.DecodeUint32())
574 m.LsIndex = buf.DecodeUint32()
578 // OneAddDelMapRequestItrRlocs defines message 'one_add_del_map_request_itr_rlocs'.
579 type OneAddDelMapRequestItrRlocs struct {
580 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
581 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
584 func (m *OneAddDelMapRequestItrRlocs) Reset() { *m = OneAddDelMapRequestItrRlocs{} }
585 func (*OneAddDelMapRequestItrRlocs) GetMessageName() string {
586 return "one_add_del_map_request_itr_rlocs"
588 func (*OneAddDelMapRequestItrRlocs) GetCrcString() string { return "6be88e45" }
589 func (*OneAddDelMapRequestItrRlocs) GetMessageType() api.MessageType {
590 return api.RequestMessage
593 func (m *OneAddDelMapRequestItrRlocs) Size() int {
599 size += 64 // m.LocatorSetName
602 func (m *OneAddDelMapRequestItrRlocs) Marshal(b []byte) ([]byte, error) {
603 var buf *codec.Buffer
605 buf = codec.NewBuffer(make([]byte, m.Size()))
607 buf = codec.NewBuffer(b)
609 buf.EncodeBool(m.IsAdd)
610 buf.EncodeString(m.LocatorSetName, 64)
611 return buf.Bytes(), nil
613 func (m *OneAddDelMapRequestItrRlocs) Unmarshal(b []byte) error {
614 buf := codec.NewBuffer(b)
615 m.IsAdd = buf.DecodeBool()
616 m.LocatorSetName = buf.DecodeString(64)
620 // OneAddDelMapRequestItrRlocsReply defines message 'one_add_del_map_request_itr_rlocs_reply'.
621 type OneAddDelMapRequestItrRlocsReply struct {
622 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
625 func (m *OneAddDelMapRequestItrRlocsReply) Reset() { *m = OneAddDelMapRequestItrRlocsReply{} }
626 func (*OneAddDelMapRequestItrRlocsReply) GetMessageName() string {
627 return "one_add_del_map_request_itr_rlocs_reply"
629 func (*OneAddDelMapRequestItrRlocsReply) GetCrcString() string { return "e8d4e804" }
630 func (*OneAddDelMapRequestItrRlocsReply) GetMessageType() api.MessageType {
631 return api.ReplyMessage
634 func (m *OneAddDelMapRequestItrRlocsReply) Size() int {
639 size += 4 // m.Retval
642 func (m *OneAddDelMapRequestItrRlocsReply) Marshal(b []byte) ([]byte, error) {
643 var buf *codec.Buffer
645 buf = codec.NewBuffer(make([]byte, m.Size()))
647 buf = codec.NewBuffer(b)
649 buf.EncodeUint32(uint32(m.Retval))
650 return buf.Bytes(), nil
652 func (m *OneAddDelMapRequestItrRlocsReply) Unmarshal(b []byte) error {
653 buf := codec.NewBuffer(b)
654 m.Retval = int32(buf.DecodeUint32())
658 // OneAddDelMapResolver defines message 'one_add_del_map_resolver'.
659 type OneAddDelMapResolver struct {
660 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
661 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
664 func (m *OneAddDelMapResolver) Reset() { *m = OneAddDelMapResolver{} }
665 func (*OneAddDelMapResolver) GetMessageName() string { return "one_add_del_map_resolver" }
666 func (*OneAddDelMapResolver) GetCrcString() string { return "6598ea7c" }
667 func (*OneAddDelMapResolver) GetMessageType() api.MessageType {
668 return api.RequestMessage
671 func (m *OneAddDelMapResolver) Size() int {
677 size += 1 // m.IPAddress.Af
678 size += 1 * 16 // m.IPAddress.Un
681 func (m *OneAddDelMapResolver) Marshal(b []byte) ([]byte, error) {
682 var buf *codec.Buffer
684 buf = codec.NewBuffer(make([]byte, m.Size()))
686 buf = codec.NewBuffer(b)
688 buf.EncodeBool(m.IsAdd)
689 buf.EncodeUint8(uint8(m.IPAddress.Af))
690 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
691 return buf.Bytes(), nil
693 func (m *OneAddDelMapResolver) Unmarshal(b []byte) error {
694 buf := codec.NewBuffer(b)
695 m.IsAdd = buf.DecodeBool()
696 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
697 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
701 // OneAddDelMapResolverReply defines message 'one_add_del_map_resolver_reply'.
702 type OneAddDelMapResolverReply struct {
703 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
706 func (m *OneAddDelMapResolverReply) Reset() { *m = OneAddDelMapResolverReply{} }
707 func (*OneAddDelMapResolverReply) GetMessageName() string { return "one_add_del_map_resolver_reply" }
708 func (*OneAddDelMapResolverReply) GetCrcString() string { return "e8d4e804" }
709 func (*OneAddDelMapResolverReply) GetMessageType() api.MessageType {
710 return api.ReplyMessage
713 func (m *OneAddDelMapResolverReply) Size() int {
718 size += 4 // m.Retval
721 func (m *OneAddDelMapResolverReply) Marshal(b []byte) ([]byte, error) {
722 var buf *codec.Buffer
724 buf = codec.NewBuffer(make([]byte, m.Size()))
726 buf = codec.NewBuffer(b)
728 buf.EncodeUint32(uint32(m.Retval))
729 return buf.Bytes(), nil
731 func (m *OneAddDelMapResolverReply) Unmarshal(b []byte) error {
732 buf := codec.NewBuffer(b)
733 m.Retval = int32(buf.DecodeUint32())
737 // OneAddDelMapServer defines message 'one_add_del_map_server'.
738 type OneAddDelMapServer struct {
739 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
740 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
743 func (m *OneAddDelMapServer) Reset() { *m = OneAddDelMapServer{} }
744 func (*OneAddDelMapServer) GetMessageName() string { return "one_add_del_map_server" }
745 func (*OneAddDelMapServer) GetCrcString() string { return "6598ea7c" }
746 func (*OneAddDelMapServer) GetMessageType() api.MessageType {
747 return api.RequestMessage
750 func (m *OneAddDelMapServer) Size() int {
756 size += 1 // m.IPAddress.Af
757 size += 1 * 16 // m.IPAddress.Un
760 func (m *OneAddDelMapServer) Marshal(b []byte) ([]byte, error) {
761 var buf *codec.Buffer
763 buf = codec.NewBuffer(make([]byte, m.Size()))
765 buf = codec.NewBuffer(b)
767 buf.EncodeBool(m.IsAdd)
768 buf.EncodeUint8(uint8(m.IPAddress.Af))
769 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
770 return buf.Bytes(), nil
772 func (m *OneAddDelMapServer) Unmarshal(b []byte) error {
773 buf := codec.NewBuffer(b)
774 m.IsAdd = buf.DecodeBool()
775 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
776 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
780 // OneAddDelMapServerReply defines message 'one_add_del_map_server_reply'.
781 type OneAddDelMapServerReply struct {
782 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
785 func (m *OneAddDelMapServerReply) Reset() { *m = OneAddDelMapServerReply{} }
786 func (*OneAddDelMapServerReply) GetMessageName() string { return "one_add_del_map_server_reply" }
787 func (*OneAddDelMapServerReply) GetCrcString() string { return "e8d4e804" }
788 func (*OneAddDelMapServerReply) GetMessageType() api.MessageType {
789 return api.ReplyMessage
792 func (m *OneAddDelMapServerReply) Size() int {
797 size += 4 // m.Retval
800 func (m *OneAddDelMapServerReply) Marshal(b []byte) ([]byte, error) {
801 var buf *codec.Buffer
803 buf = codec.NewBuffer(make([]byte, m.Size()))
805 buf = codec.NewBuffer(b)
807 buf.EncodeUint32(uint32(m.Retval))
808 return buf.Bytes(), nil
810 func (m *OneAddDelMapServerReply) Unmarshal(b []byte) error {
811 buf := codec.NewBuffer(b)
812 m.Retval = int32(buf.DecodeUint32())
816 // OneAddDelNdpEntry defines message 'one_add_del_ndp_entry'.
817 type OneAddDelNdpEntry struct {
818 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
819 Bd uint32 `binapi:"u32,name=bd" json:"bd,omitempty"`
820 Entry OneNdpEntry `binapi:"one_ndp_entry,name=entry" json:"entry,omitempty"`
823 func (m *OneAddDelNdpEntry) Reset() { *m = OneAddDelNdpEntry{} }
824 func (*OneAddDelNdpEntry) GetMessageName() string { return "one_add_del_ndp_entry" }
825 func (*OneAddDelNdpEntry) GetCrcString() string { return "d1629a2f" }
826 func (*OneAddDelNdpEntry) GetMessageType() api.MessageType {
827 return api.RequestMessage
830 func (m *OneAddDelNdpEntry) Size() int {
837 size += 1 * 6 // m.Entry.Mac
838 size += 1 * 16 // m.Entry.IP6
841 func (m *OneAddDelNdpEntry) Marshal(b []byte) ([]byte, error) {
842 var buf *codec.Buffer
844 buf = codec.NewBuffer(make([]byte, m.Size()))
846 buf = codec.NewBuffer(b)
848 buf.EncodeBool(m.IsAdd)
849 buf.EncodeUint32(uint32(m.Bd))
850 buf.EncodeBytes(m.Entry.Mac[:], 6)
851 buf.EncodeBytes(m.Entry.IP6[:], 16)
852 return buf.Bytes(), nil
854 func (m *OneAddDelNdpEntry) Unmarshal(b []byte) error {
855 buf := codec.NewBuffer(b)
856 m.IsAdd = buf.DecodeBool()
857 m.Bd = buf.DecodeUint32()
858 copy(m.Entry.Mac[:], buf.DecodeBytes(6))
859 copy(m.Entry.IP6[:], buf.DecodeBytes(16))
863 // OneAddDelNdpEntryReply defines message 'one_add_del_ndp_entry_reply'.
864 type OneAddDelNdpEntryReply struct {
865 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
868 func (m *OneAddDelNdpEntryReply) Reset() { *m = OneAddDelNdpEntryReply{} }
869 func (*OneAddDelNdpEntryReply) GetMessageName() string { return "one_add_del_ndp_entry_reply" }
870 func (*OneAddDelNdpEntryReply) GetCrcString() string { return "e8d4e804" }
871 func (*OneAddDelNdpEntryReply) GetMessageType() api.MessageType {
872 return api.ReplyMessage
875 func (m *OneAddDelNdpEntryReply) Size() int {
880 size += 4 // m.Retval
883 func (m *OneAddDelNdpEntryReply) Marshal(b []byte) ([]byte, error) {
884 var buf *codec.Buffer
886 buf = codec.NewBuffer(make([]byte, m.Size()))
888 buf = codec.NewBuffer(b)
890 buf.EncodeUint32(uint32(m.Retval))
891 return buf.Bytes(), nil
893 func (m *OneAddDelNdpEntryReply) Unmarshal(b []byte) error {
894 buf := codec.NewBuffer(b)
895 m.Retval = int32(buf.DecodeUint32())
899 // OneAddDelRemoteMapping defines message 'one_add_del_remote_mapping'.
900 type OneAddDelRemoteMapping struct {
901 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
902 IsSrcDst bool `binapi:"bool,name=is_src_dst" json:"is_src_dst,omitempty"`
903 DelAll bool `binapi:"bool,name=del_all" json:"del_all,omitempty"`
904 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
905 Action uint8 `binapi:"u8,name=action" json:"action,omitempty"`
906 Deid lisp_types.Eid `binapi:"eid,name=deid" json:"deid,omitempty"`
907 Seid lisp_types.Eid `binapi:"eid,name=seid" json:"seid,omitempty"`
908 RlocNum uint32 `binapi:"u32,name=rloc_num" json:"-"`
909 Rlocs []lisp_types.RemoteLocator `binapi:"remote_locator[rloc_num],name=rlocs" json:"rlocs,omitempty"`
912 func (m *OneAddDelRemoteMapping) Reset() { *m = OneAddDelRemoteMapping{} }
913 func (*OneAddDelRemoteMapping) GetMessageName() string { return "one_add_del_remote_mapping" }
914 func (*OneAddDelRemoteMapping) GetCrcString() string { return "fae8ed77" }
915 func (*OneAddDelRemoteMapping) GetMessageType() api.MessageType {
916 return api.RequestMessage
919 func (m *OneAddDelRemoteMapping) Size() int {
925 size += 1 // m.IsSrcDst
926 size += 1 // m.DelAll
928 size += 1 // m.Action
929 size += 1 // m.Deid.Type
930 size += 1 * 6 // m.Deid.Address
931 size += 1 // m.Seid.Type
932 size += 1 * 6 // m.Seid.Address
933 size += 4 // m.RlocNum
934 for j1 := 0; j1 < len(m.Rlocs); j1++ {
935 var s1 lisp_types.RemoteLocator
937 if j1 < len(m.Rlocs) {
940 size += 1 // s1.Priority
941 size += 1 // s1.Weight
942 size += 1 // s1.IPAddress.Af
943 size += 1 * 16 // s1.IPAddress.Un
947 func (m *OneAddDelRemoteMapping) Marshal(b []byte) ([]byte, error) {
948 var buf *codec.Buffer
950 buf = codec.NewBuffer(make([]byte, m.Size()))
952 buf = codec.NewBuffer(b)
954 buf.EncodeBool(m.IsAdd)
955 buf.EncodeBool(m.IsSrcDst)
956 buf.EncodeBool(m.DelAll)
957 buf.EncodeUint32(uint32(m.Vni))
958 buf.EncodeUint8(uint8(m.Action))
959 buf.EncodeUint8(uint8(m.Deid.Type))
960 buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 0)
961 buf.EncodeUint8(uint8(m.Seid.Type))
962 buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 0)
963 buf.EncodeUint32(uint32(len(m.Rlocs)))
964 for j0 := 0; j0 < len(m.Rlocs); j0++ {
965 var v0 lisp_types.RemoteLocator
966 if j0 < len(m.Rlocs) {
969 buf.EncodeUint8(uint8(v0.Priority))
970 buf.EncodeUint8(uint8(v0.Weight))
971 buf.EncodeUint8(uint8(v0.IPAddress.Af))
972 buf.EncodeBytes(v0.IPAddress.Un.XXX_UnionData[:], 0)
974 return buf.Bytes(), nil
976 func (m *OneAddDelRemoteMapping) Unmarshal(b []byte) error {
977 buf := codec.NewBuffer(b)
978 m.IsAdd = buf.DecodeBool()
979 m.IsSrcDst = buf.DecodeBool()
980 m.DelAll = buf.DecodeBool()
981 m.Vni = buf.DecodeUint32()
982 m.Action = buf.DecodeUint8()
983 m.Deid.Type = lisp_types.EidType(buf.DecodeUint8())
984 copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
985 m.Seid.Type = lisp_types.EidType(buf.DecodeUint8())
986 copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
987 m.RlocNum = buf.DecodeUint32()
988 m.Rlocs = make([]lisp_types.RemoteLocator, int(m.RlocNum))
989 for j0 := 0; j0 < len(m.Rlocs); j0++ {
990 m.Rlocs[j0].Priority = buf.DecodeUint8()
991 m.Rlocs[j0].Weight = buf.DecodeUint8()
992 m.Rlocs[j0].IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
993 copy(m.Rlocs[j0].IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
998 // OneAddDelRemoteMappingReply defines message 'one_add_del_remote_mapping_reply'.
999 type OneAddDelRemoteMappingReply struct {
1000 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1003 func (m *OneAddDelRemoteMappingReply) Reset() { *m = OneAddDelRemoteMappingReply{} }
1004 func (*OneAddDelRemoteMappingReply) GetMessageName() string {
1005 return "one_add_del_remote_mapping_reply"
1007 func (*OneAddDelRemoteMappingReply) GetCrcString() string { return "e8d4e804" }
1008 func (*OneAddDelRemoteMappingReply) GetMessageType() api.MessageType {
1009 return api.ReplyMessage
1012 func (m *OneAddDelRemoteMappingReply) Size() int {
1017 size += 4 // m.Retval
1020 func (m *OneAddDelRemoteMappingReply) Marshal(b []byte) ([]byte, error) {
1021 var buf *codec.Buffer
1023 buf = codec.NewBuffer(make([]byte, m.Size()))
1025 buf = codec.NewBuffer(b)
1027 buf.EncodeUint32(uint32(m.Retval))
1028 return buf.Bytes(), nil
1030 func (m *OneAddDelRemoteMappingReply) Unmarshal(b []byte) error {
1031 buf := codec.NewBuffer(b)
1032 m.Retval = int32(buf.DecodeUint32())
1036 // OneAdjacenciesGet defines message 'one_adjacencies_get'.
1037 type OneAdjacenciesGet struct {
1038 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1041 func (m *OneAdjacenciesGet) Reset() { *m = OneAdjacenciesGet{} }
1042 func (*OneAdjacenciesGet) GetMessageName() string { return "one_adjacencies_get" }
1043 func (*OneAdjacenciesGet) GetCrcString() string { return "8d1f2fe9" }
1044 func (*OneAdjacenciesGet) GetMessageType() api.MessageType {
1045 return api.RequestMessage
1048 func (m *OneAdjacenciesGet) Size() int {
1056 func (m *OneAdjacenciesGet) Marshal(b []byte) ([]byte, error) {
1057 var buf *codec.Buffer
1059 buf = codec.NewBuffer(make([]byte, m.Size()))
1061 buf = codec.NewBuffer(b)
1063 buf.EncodeUint32(uint32(m.Vni))
1064 return buf.Bytes(), nil
1066 func (m *OneAdjacenciesGet) Unmarshal(b []byte) error {
1067 buf := codec.NewBuffer(b)
1068 m.Vni = buf.DecodeUint32()
1072 // OneAdjacenciesGetReply defines message 'one_adjacencies_get_reply'.
1073 type OneAdjacenciesGetReply struct {
1074 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1075 Count uint32 `binapi:"u32,name=count" json:"-"`
1076 Adjacencies []OneAdjacency `binapi:"one_adjacency[count],name=adjacencies" json:"adjacencies,omitempty"`
1079 func (m *OneAdjacenciesGetReply) Reset() { *m = OneAdjacenciesGetReply{} }
1080 func (*OneAdjacenciesGetReply) GetMessageName() string { return "one_adjacencies_get_reply" }
1081 func (*OneAdjacenciesGetReply) GetCrcString() string { return "a8ed89a5" }
1082 func (*OneAdjacenciesGetReply) GetMessageType() api.MessageType {
1083 return api.ReplyMessage
1086 func (m *OneAdjacenciesGetReply) Size() int {
1091 size += 4 // m.Retval
1092 size += 4 // m.Count
1093 for j1 := 0; j1 < len(m.Adjacencies); j1++ {
1096 if j1 < len(m.Adjacencies) {
1097 s1 = m.Adjacencies[j1]
1099 size += 1 // s1.Reid.Type
1100 size += 1 * 6 // s1.Reid.Address
1101 size += 1 // s1.Leid.Type
1102 size += 1 * 6 // s1.Leid.Address
1106 func (m *OneAdjacenciesGetReply) Marshal(b []byte) ([]byte, error) {
1107 var buf *codec.Buffer
1109 buf = codec.NewBuffer(make([]byte, m.Size()))
1111 buf = codec.NewBuffer(b)
1113 buf.EncodeUint32(uint32(m.Retval))
1114 buf.EncodeUint32(uint32(len(m.Adjacencies)))
1115 for j0 := 0; j0 < len(m.Adjacencies); j0++ {
1117 if j0 < len(m.Adjacencies) {
1118 v0 = m.Adjacencies[j0]
1120 buf.EncodeUint8(uint8(v0.Reid.Type))
1121 buf.EncodeBytes(v0.Reid.Address.XXX_UnionData[:], 0)
1122 buf.EncodeUint8(uint8(v0.Leid.Type))
1123 buf.EncodeBytes(v0.Leid.Address.XXX_UnionData[:], 0)
1125 return buf.Bytes(), nil
1127 func (m *OneAdjacenciesGetReply) Unmarshal(b []byte) error {
1128 buf := codec.NewBuffer(b)
1129 m.Retval = int32(buf.DecodeUint32())
1130 m.Count = buf.DecodeUint32()
1131 m.Adjacencies = make([]OneAdjacency, int(m.Count))
1132 for j0 := 0; j0 < len(m.Adjacencies); j0++ {
1133 m.Adjacencies[j0].Reid.Type = lisp_types.EidType(buf.DecodeUint8())
1134 copy(m.Adjacencies[j0].Reid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
1135 m.Adjacencies[j0].Leid.Type = lisp_types.EidType(buf.DecodeUint8())
1136 copy(m.Adjacencies[j0].Leid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
1141 // OneEidTableAddDelMap defines message 'one_eid_table_add_del_map'.
1142 type OneEidTableAddDelMap struct {
1143 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
1144 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1145 DpTable uint32 `binapi:"u32,name=dp_table" json:"dp_table,omitempty"`
1146 IsL2 bool `binapi:"bool,name=is_l2" json:"is_l2,omitempty"`
1149 func (m *OneEidTableAddDelMap) Reset() { *m = OneEidTableAddDelMap{} }
1150 func (*OneEidTableAddDelMap) GetMessageName() string { return "one_eid_table_add_del_map" }
1151 func (*OneEidTableAddDelMap) GetCrcString() string { return "9481416b" }
1152 func (*OneEidTableAddDelMap) GetMessageType() api.MessageType {
1153 return api.RequestMessage
1156 func (m *OneEidTableAddDelMap) Size() int {
1161 size += 1 // m.IsAdd
1163 size += 4 // m.DpTable
1167 func (m *OneEidTableAddDelMap) Marshal(b []byte) ([]byte, error) {
1168 var buf *codec.Buffer
1170 buf = codec.NewBuffer(make([]byte, m.Size()))
1172 buf = codec.NewBuffer(b)
1174 buf.EncodeBool(m.IsAdd)
1175 buf.EncodeUint32(uint32(m.Vni))
1176 buf.EncodeUint32(uint32(m.DpTable))
1177 buf.EncodeBool(m.IsL2)
1178 return buf.Bytes(), nil
1180 func (m *OneEidTableAddDelMap) Unmarshal(b []byte) error {
1181 buf := codec.NewBuffer(b)
1182 m.IsAdd = buf.DecodeBool()
1183 m.Vni = buf.DecodeUint32()
1184 m.DpTable = buf.DecodeUint32()
1185 m.IsL2 = buf.DecodeBool()
1189 // OneEidTableAddDelMapReply defines message 'one_eid_table_add_del_map_reply'.
1190 type OneEidTableAddDelMapReply struct {
1191 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1194 func (m *OneEidTableAddDelMapReply) Reset() { *m = OneEidTableAddDelMapReply{} }
1195 func (*OneEidTableAddDelMapReply) GetMessageName() string { return "one_eid_table_add_del_map_reply" }
1196 func (*OneEidTableAddDelMapReply) GetCrcString() string { return "e8d4e804" }
1197 func (*OneEidTableAddDelMapReply) GetMessageType() api.MessageType {
1198 return api.ReplyMessage
1201 func (m *OneEidTableAddDelMapReply) Size() int {
1206 size += 4 // m.Retval
1209 func (m *OneEidTableAddDelMapReply) Marshal(b []byte) ([]byte, error) {
1210 var buf *codec.Buffer
1212 buf = codec.NewBuffer(make([]byte, m.Size()))
1214 buf = codec.NewBuffer(b)
1216 buf.EncodeUint32(uint32(m.Retval))
1217 return buf.Bytes(), nil
1219 func (m *OneEidTableAddDelMapReply) Unmarshal(b []byte) error {
1220 buf := codec.NewBuffer(b)
1221 m.Retval = int32(buf.DecodeUint32())
1225 // OneEidTableDetails defines message 'one_eid_table_details'.
1226 type OneEidTableDetails struct {
1227 LocatorSetIndex uint32 `binapi:"u32,name=locator_set_index" json:"locator_set_index,omitempty"`
1228 Action uint8 `binapi:"u8,name=action" json:"action,omitempty"`
1229 IsLocal bool `binapi:"bool,name=is_local" json:"is_local,omitempty"`
1230 IsSrcDst bool `binapi:"bool,name=is_src_dst" json:"is_src_dst,omitempty"`
1231 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1232 Deid lisp_types.Eid `binapi:"eid,name=deid" json:"deid,omitempty"`
1233 Seid lisp_types.Eid `binapi:"eid,name=seid" json:"seid,omitempty"`
1234 TTL uint32 `binapi:"u32,name=ttl" json:"ttl,omitempty"`
1235 Authoritative uint8 `binapi:"u8,name=authoritative" json:"authoritative,omitempty"`
1236 Key lisp_types.HmacKey `binapi:"hmac_key,name=key" json:"key,omitempty"`
1239 func (m *OneEidTableDetails) Reset() { *m = OneEidTableDetails{} }
1240 func (*OneEidTableDetails) GetMessageName() string { return "one_eid_table_details" }
1241 func (*OneEidTableDetails) GetCrcString() string { return "4bc32e3a" }
1242 func (*OneEidTableDetails) GetMessageType() api.MessageType {
1243 return api.ReplyMessage
1246 func (m *OneEidTableDetails) Size() int {
1251 size += 4 // m.LocatorSetIndex
1252 size += 1 // m.Action
1253 size += 1 // m.IsLocal
1254 size += 1 // m.IsSrcDst
1256 size += 1 // m.Deid.Type
1257 size += 1 * 6 // m.Deid.Address
1258 size += 1 // m.Seid.Type
1259 size += 1 * 6 // m.Seid.Address
1261 size += 1 // m.Authoritative
1262 size += 1 // m.Key.ID
1263 size += 1 * 64 // m.Key.Key
1266 func (m *OneEidTableDetails) Marshal(b []byte) ([]byte, error) {
1267 var buf *codec.Buffer
1269 buf = codec.NewBuffer(make([]byte, m.Size()))
1271 buf = codec.NewBuffer(b)
1273 buf.EncodeUint32(uint32(m.LocatorSetIndex))
1274 buf.EncodeUint8(uint8(m.Action))
1275 buf.EncodeBool(m.IsLocal)
1276 buf.EncodeBool(m.IsSrcDst)
1277 buf.EncodeUint32(uint32(m.Vni))
1278 buf.EncodeUint8(uint8(m.Deid.Type))
1279 buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 0)
1280 buf.EncodeUint8(uint8(m.Seid.Type))
1281 buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 0)
1282 buf.EncodeUint32(uint32(m.TTL))
1283 buf.EncodeUint8(uint8(m.Authoritative))
1284 buf.EncodeUint8(uint8(m.Key.ID))
1285 buf.EncodeBytes(m.Key.Key[:], 64)
1286 return buf.Bytes(), nil
1288 func (m *OneEidTableDetails) Unmarshal(b []byte) error {
1289 buf := codec.NewBuffer(b)
1290 m.LocatorSetIndex = buf.DecodeUint32()
1291 m.Action = buf.DecodeUint8()
1292 m.IsLocal = buf.DecodeBool()
1293 m.IsSrcDst = buf.DecodeBool()
1294 m.Vni = buf.DecodeUint32()
1295 m.Deid.Type = lisp_types.EidType(buf.DecodeUint8())
1296 copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
1297 m.Seid.Type = lisp_types.EidType(buf.DecodeUint8())
1298 copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
1299 m.TTL = buf.DecodeUint32()
1300 m.Authoritative = buf.DecodeUint8()
1301 m.Key.ID = lisp_types.HmacKeyID(buf.DecodeUint8())
1302 copy(m.Key.Key[:], buf.DecodeBytes(64))
1306 // OneEidTableDump defines message 'one_eid_table_dump'.
1307 type OneEidTableDump struct {
1308 EidSet bool `binapi:"bool,name=eid_set" json:"eid_set,omitempty"`
1309 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1310 Eid lisp_types.Eid `binapi:"eid,name=eid" json:"eid,omitempty"`
1311 Filter OneFilter `binapi:"one_filter,name=filter" json:"filter,omitempty"`
1314 func (m *OneEidTableDump) Reset() { *m = OneEidTableDump{} }
1315 func (*OneEidTableDump) GetMessageName() string { return "one_eid_table_dump" }
1316 func (*OneEidTableDump) GetCrcString() string { return "95151038" }
1317 func (*OneEidTableDump) GetMessageType() api.MessageType {
1318 return api.RequestMessage
1321 func (m *OneEidTableDump) Size() int {
1326 size += 1 // m.EidSet
1328 size += 1 // m.Eid.Type
1329 size += 1 * 6 // m.Eid.Address
1330 size += 4 // m.Filter
1333 func (m *OneEidTableDump) Marshal(b []byte) ([]byte, error) {
1334 var buf *codec.Buffer
1336 buf = codec.NewBuffer(make([]byte, m.Size()))
1338 buf = codec.NewBuffer(b)
1340 buf.EncodeBool(m.EidSet)
1341 buf.EncodeUint32(uint32(m.Vni))
1342 buf.EncodeUint8(uint8(m.Eid.Type))
1343 buf.EncodeBytes(m.Eid.Address.XXX_UnionData[:], 0)
1344 buf.EncodeUint32(uint32(m.Filter))
1345 return buf.Bytes(), nil
1347 func (m *OneEidTableDump) Unmarshal(b []byte) error {
1348 buf := codec.NewBuffer(b)
1349 m.EidSet = buf.DecodeBool()
1350 m.Vni = buf.DecodeUint32()
1351 m.Eid.Type = lisp_types.EidType(buf.DecodeUint8())
1352 copy(m.Eid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
1353 m.Filter = OneFilter(buf.DecodeUint32())
1357 // OneEidTableMapDetails defines message 'one_eid_table_map_details'.
1358 type OneEidTableMapDetails struct {
1359 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1360 DpTable uint32 `binapi:"u32,name=dp_table" json:"dp_table,omitempty"`
1363 func (m *OneEidTableMapDetails) Reset() { *m = OneEidTableMapDetails{} }
1364 func (*OneEidTableMapDetails) GetMessageName() string { return "one_eid_table_map_details" }
1365 func (*OneEidTableMapDetails) GetCrcString() string { return "0b6859e2" }
1366 func (*OneEidTableMapDetails) GetMessageType() api.MessageType {
1367 return api.ReplyMessage
1370 func (m *OneEidTableMapDetails) Size() int {
1376 size += 4 // m.DpTable
1379 func (m *OneEidTableMapDetails) Marshal(b []byte) ([]byte, error) {
1380 var buf *codec.Buffer
1382 buf = codec.NewBuffer(make([]byte, m.Size()))
1384 buf = codec.NewBuffer(b)
1386 buf.EncodeUint32(uint32(m.Vni))
1387 buf.EncodeUint32(uint32(m.DpTable))
1388 return buf.Bytes(), nil
1390 func (m *OneEidTableMapDetails) Unmarshal(b []byte) error {
1391 buf := codec.NewBuffer(b)
1392 m.Vni = buf.DecodeUint32()
1393 m.DpTable = buf.DecodeUint32()
1397 // OneEidTableMapDump defines message 'one_eid_table_map_dump'.
1398 type OneEidTableMapDump struct {
1399 IsL2 bool `binapi:"bool,name=is_l2" json:"is_l2,omitempty"`
1402 func (m *OneEidTableMapDump) Reset() { *m = OneEidTableMapDump{} }
1403 func (*OneEidTableMapDump) GetMessageName() string { return "one_eid_table_map_dump" }
1404 func (*OneEidTableMapDump) GetCrcString() string { return "d6cf0c3d" }
1405 func (*OneEidTableMapDump) GetMessageType() api.MessageType {
1406 return api.RequestMessage
1409 func (m *OneEidTableMapDump) Size() int {
1417 func (m *OneEidTableMapDump) Marshal(b []byte) ([]byte, error) {
1418 var buf *codec.Buffer
1420 buf = codec.NewBuffer(make([]byte, m.Size()))
1422 buf = codec.NewBuffer(b)
1424 buf.EncodeBool(m.IsL2)
1425 return buf.Bytes(), nil
1427 func (m *OneEidTableMapDump) Unmarshal(b []byte) error {
1428 buf := codec.NewBuffer(b)
1429 m.IsL2 = buf.DecodeBool()
1433 // OneEidTableVniDetails defines message 'one_eid_table_vni_details'.
1434 type OneEidTableVniDetails struct {
1435 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1438 func (m *OneEidTableVniDetails) Reset() { *m = OneEidTableVniDetails{} }
1439 func (*OneEidTableVniDetails) GetMessageName() string { return "one_eid_table_vni_details" }
1440 func (*OneEidTableVniDetails) GetCrcString() string { return "64abc01e" }
1441 func (*OneEidTableVniDetails) GetMessageType() api.MessageType {
1442 return api.ReplyMessage
1445 func (m *OneEidTableVniDetails) Size() int {
1453 func (m *OneEidTableVniDetails) Marshal(b []byte) ([]byte, error) {
1454 var buf *codec.Buffer
1456 buf = codec.NewBuffer(make([]byte, m.Size()))
1458 buf = codec.NewBuffer(b)
1460 buf.EncodeUint32(uint32(m.Vni))
1461 return buf.Bytes(), nil
1463 func (m *OneEidTableVniDetails) Unmarshal(b []byte) error {
1464 buf := codec.NewBuffer(b)
1465 m.Vni = buf.DecodeUint32()
1469 // OneEidTableVniDump defines message 'one_eid_table_vni_dump'.
1470 type OneEidTableVniDump struct{}
1472 func (m *OneEidTableVniDump) Reset() { *m = OneEidTableVniDump{} }
1473 func (*OneEidTableVniDump) GetMessageName() string { return "one_eid_table_vni_dump" }
1474 func (*OneEidTableVniDump) GetCrcString() string { return "51077d14" }
1475 func (*OneEidTableVniDump) GetMessageType() api.MessageType {
1476 return api.RequestMessage
1479 func (m *OneEidTableVniDump) Size() int {
1486 func (m *OneEidTableVniDump) Marshal(b []byte) ([]byte, error) {
1487 var buf *codec.Buffer
1489 buf = codec.NewBuffer(make([]byte, m.Size()))
1491 buf = codec.NewBuffer(b)
1493 return buf.Bytes(), nil
1495 func (m *OneEidTableVniDump) Unmarshal(b []byte) error {
1499 // OneEnableDisable defines message 'one_enable_disable'.
1500 type OneEnableDisable struct {
1501 IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
1504 func (m *OneEnableDisable) Reset() { *m = OneEnableDisable{} }
1505 func (*OneEnableDisable) GetMessageName() string { return "one_enable_disable" }
1506 func (*OneEnableDisable) GetCrcString() string { return "c264d7bf" }
1507 func (*OneEnableDisable) GetMessageType() api.MessageType {
1508 return api.RequestMessage
1511 func (m *OneEnableDisable) Size() int {
1516 size += 1 // m.IsEnable
1519 func (m *OneEnableDisable) Marshal(b []byte) ([]byte, error) {
1520 var buf *codec.Buffer
1522 buf = codec.NewBuffer(make([]byte, m.Size()))
1524 buf = codec.NewBuffer(b)
1526 buf.EncodeBool(m.IsEnable)
1527 return buf.Bytes(), nil
1529 func (m *OneEnableDisable) Unmarshal(b []byte) error {
1530 buf := codec.NewBuffer(b)
1531 m.IsEnable = buf.DecodeBool()
1535 // OneEnableDisablePetrMode defines message 'one_enable_disable_petr_mode'.
1536 type OneEnableDisablePetrMode struct {
1537 IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
1540 func (m *OneEnableDisablePetrMode) Reset() { *m = OneEnableDisablePetrMode{} }
1541 func (*OneEnableDisablePetrMode) GetMessageName() string { return "one_enable_disable_petr_mode" }
1542 func (*OneEnableDisablePetrMode) GetCrcString() string { return "c264d7bf" }
1543 func (*OneEnableDisablePetrMode) GetMessageType() api.MessageType {
1544 return api.RequestMessage
1547 func (m *OneEnableDisablePetrMode) Size() int {
1552 size += 1 // m.IsEnable
1555 func (m *OneEnableDisablePetrMode) Marshal(b []byte) ([]byte, error) {
1556 var buf *codec.Buffer
1558 buf = codec.NewBuffer(make([]byte, m.Size()))
1560 buf = codec.NewBuffer(b)
1562 buf.EncodeBool(m.IsEnable)
1563 return buf.Bytes(), nil
1565 func (m *OneEnableDisablePetrMode) Unmarshal(b []byte) error {
1566 buf := codec.NewBuffer(b)
1567 m.IsEnable = buf.DecodeBool()
1571 // OneEnableDisablePetrModeReply defines message 'one_enable_disable_petr_mode_reply'.
1572 type OneEnableDisablePetrModeReply struct {
1573 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1576 func (m *OneEnableDisablePetrModeReply) Reset() { *m = OneEnableDisablePetrModeReply{} }
1577 func (*OneEnableDisablePetrModeReply) GetMessageName() string {
1578 return "one_enable_disable_petr_mode_reply"
1580 func (*OneEnableDisablePetrModeReply) GetCrcString() string { return "e8d4e804" }
1581 func (*OneEnableDisablePetrModeReply) GetMessageType() api.MessageType {
1582 return api.ReplyMessage
1585 func (m *OneEnableDisablePetrModeReply) Size() int {
1590 size += 4 // m.Retval
1593 func (m *OneEnableDisablePetrModeReply) Marshal(b []byte) ([]byte, error) {
1594 var buf *codec.Buffer
1596 buf = codec.NewBuffer(make([]byte, m.Size()))
1598 buf = codec.NewBuffer(b)
1600 buf.EncodeUint32(uint32(m.Retval))
1601 return buf.Bytes(), nil
1603 func (m *OneEnableDisablePetrModeReply) Unmarshal(b []byte) error {
1604 buf := codec.NewBuffer(b)
1605 m.Retval = int32(buf.DecodeUint32())
1609 // OneEnableDisablePitrMode defines message 'one_enable_disable_pitr_mode'.
1610 type OneEnableDisablePitrMode struct {
1611 IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
1614 func (m *OneEnableDisablePitrMode) Reset() { *m = OneEnableDisablePitrMode{} }
1615 func (*OneEnableDisablePitrMode) GetMessageName() string { return "one_enable_disable_pitr_mode" }
1616 func (*OneEnableDisablePitrMode) GetCrcString() string { return "c264d7bf" }
1617 func (*OneEnableDisablePitrMode) GetMessageType() api.MessageType {
1618 return api.RequestMessage
1621 func (m *OneEnableDisablePitrMode) Size() int {
1626 size += 1 // m.IsEnable
1629 func (m *OneEnableDisablePitrMode) Marshal(b []byte) ([]byte, error) {
1630 var buf *codec.Buffer
1632 buf = codec.NewBuffer(make([]byte, m.Size()))
1634 buf = codec.NewBuffer(b)
1636 buf.EncodeBool(m.IsEnable)
1637 return buf.Bytes(), nil
1639 func (m *OneEnableDisablePitrMode) Unmarshal(b []byte) error {
1640 buf := codec.NewBuffer(b)
1641 m.IsEnable = buf.DecodeBool()
1645 // OneEnableDisablePitrModeReply defines message 'one_enable_disable_pitr_mode_reply'.
1646 type OneEnableDisablePitrModeReply struct {
1647 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1650 func (m *OneEnableDisablePitrModeReply) Reset() { *m = OneEnableDisablePitrModeReply{} }
1651 func (*OneEnableDisablePitrModeReply) GetMessageName() string {
1652 return "one_enable_disable_pitr_mode_reply"
1654 func (*OneEnableDisablePitrModeReply) GetCrcString() string { return "e8d4e804" }
1655 func (*OneEnableDisablePitrModeReply) GetMessageType() api.MessageType {
1656 return api.ReplyMessage
1659 func (m *OneEnableDisablePitrModeReply) Size() int {
1664 size += 4 // m.Retval
1667 func (m *OneEnableDisablePitrModeReply) Marshal(b []byte) ([]byte, error) {
1668 var buf *codec.Buffer
1670 buf = codec.NewBuffer(make([]byte, m.Size()))
1672 buf = codec.NewBuffer(b)
1674 buf.EncodeUint32(uint32(m.Retval))
1675 return buf.Bytes(), nil
1677 func (m *OneEnableDisablePitrModeReply) Unmarshal(b []byte) error {
1678 buf := codec.NewBuffer(b)
1679 m.Retval = int32(buf.DecodeUint32())
1683 // OneEnableDisableReply defines message 'one_enable_disable_reply'.
1684 type OneEnableDisableReply struct {
1685 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1688 func (m *OneEnableDisableReply) Reset() { *m = OneEnableDisableReply{} }
1689 func (*OneEnableDisableReply) GetMessageName() string { return "one_enable_disable_reply" }
1690 func (*OneEnableDisableReply) GetCrcString() string { return "e8d4e804" }
1691 func (*OneEnableDisableReply) GetMessageType() api.MessageType {
1692 return api.ReplyMessage
1695 func (m *OneEnableDisableReply) Size() int {
1700 size += 4 // m.Retval
1703 func (m *OneEnableDisableReply) Marshal(b []byte) ([]byte, error) {
1704 var buf *codec.Buffer
1706 buf = codec.NewBuffer(make([]byte, m.Size()))
1708 buf = codec.NewBuffer(b)
1710 buf.EncodeUint32(uint32(m.Retval))
1711 return buf.Bytes(), nil
1713 func (m *OneEnableDisableReply) Unmarshal(b []byte) error {
1714 buf := codec.NewBuffer(b)
1715 m.Retval = int32(buf.DecodeUint32())
1719 // OneEnableDisableXtrMode defines message 'one_enable_disable_xtr_mode'.
1720 type OneEnableDisableXtrMode struct {
1721 IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
1724 func (m *OneEnableDisableXtrMode) Reset() { *m = OneEnableDisableXtrMode{} }
1725 func (*OneEnableDisableXtrMode) GetMessageName() string { return "one_enable_disable_xtr_mode" }
1726 func (*OneEnableDisableXtrMode) GetCrcString() string { return "c264d7bf" }
1727 func (*OneEnableDisableXtrMode) GetMessageType() api.MessageType {
1728 return api.RequestMessage
1731 func (m *OneEnableDisableXtrMode) Size() int {
1736 size += 1 // m.IsEnable
1739 func (m *OneEnableDisableXtrMode) Marshal(b []byte) ([]byte, error) {
1740 var buf *codec.Buffer
1742 buf = codec.NewBuffer(make([]byte, m.Size()))
1744 buf = codec.NewBuffer(b)
1746 buf.EncodeBool(m.IsEnable)
1747 return buf.Bytes(), nil
1749 func (m *OneEnableDisableXtrMode) Unmarshal(b []byte) error {
1750 buf := codec.NewBuffer(b)
1751 m.IsEnable = buf.DecodeBool()
1755 // OneEnableDisableXtrModeReply defines message 'one_enable_disable_xtr_mode_reply'.
1756 type OneEnableDisableXtrModeReply struct {
1757 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1760 func (m *OneEnableDisableXtrModeReply) Reset() { *m = OneEnableDisableXtrModeReply{} }
1761 func (*OneEnableDisableXtrModeReply) GetMessageName() string {
1762 return "one_enable_disable_xtr_mode_reply"
1764 func (*OneEnableDisableXtrModeReply) GetCrcString() string { return "e8d4e804" }
1765 func (*OneEnableDisableXtrModeReply) GetMessageType() api.MessageType {
1766 return api.ReplyMessage
1769 func (m *OneEnableDisableXtrModeReply) Size() int {
1774 size += 4 // m.Retval
1777 func (m *OneEnableDisableXtrModeReply) Marshal(b []byte) ([]byte, error) {
1778 var buf *codec.Buffer
1780 buf = codec.NewBuffer(make([]byte, m.Size()))
1782 buf = codec.NewBuffer(b)
1784 buf.EncodeUint32(uint32(m.Retval))
1785 return buf.Bytes(), nil
1787 func (m *OneEnableDisableXtrModeReply) Unmarshal(b []byte) error {
1788 buf := codec.NewBuffer(b)
1789 m.Retval = int32(buf.DecodeUint32())
1793 // OneGetMapRequestItrRlocs defines message 'one_get_map_request_itr_rlocs'.
1794 type OneGetMapRequestItrRlocs struct{}
1796 func (m *OneGetMapRequestItrRlocs) Reset() { *m = OneGetMapRequestItrRlocs{} }
1797 func (*OneGetMapRequestItrRlocs) GetMessageName() string { return "one_get_map_request_itr_rlocs" }
1798 func (*OneGetMapRequestItrRlocs) GetCrcString() string { return "51077d14" }
1799 func (*OneGetMapRequestItrRlocs) GetMessageType() api.MessageType {
1800 return api.RequestMessage
1803 func (m *OneGetMapRequestItrRlocs) Size() int {
1810 func (m *OneGetMapRequestItrRlocs) Marshal(b []byte) ([]byte, error) {
1811 var buf *codec.Buffer
1813 buf = codec.NewBuffer(make([]byte, m.Size()))
1815 buf = codec.NewBuffer(b)
1817 return buf.Bytes(), nil
1819 func (m *OneGetMapRequestItrRlocs) Unmarshal(b []byte) error {
1823 // OneGetMapRequestItrRlocsReply defines message 'one_get_map_request_itr_rlocs_reply'.
1824 type OneGetMapRequestItrRlocsReply struct {
1825 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1826 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
1829 func (m *OneGetMapRequestItrRlocsReply) Reset() { *m = OneGetMapRequestItrRlocsReply{} }
1830 func (*OneGetMapRequestItrRlocsReply) GetMessageName() string {
1831 return "one_get_map_request_itr_rlocs_reply"
1833 func (*OneGetMapRequestItrRlocsReply) GetCrcString() string { return "76580f3a" }
1834 func (*OneGetMapRequestItrRlocsReply) GetMessageType() api.MessageType {
1835 return api.ReplyMessage
1838 func (m *OneGetMapRequestItrRlocsReply) Size() int {
1843 size += 4 // m.Retval
1844 size += 64 // m.LocatorSetName
1847 func (m *OneGetMapRequestItrRlocsReply) Marshal(b []byte) ([]byte, error) {
1848 var buf *codec.Buffer
1850 buf = codec.NewBuffer(make([]byte, m.Size()))
1852 buf = codec.NewBuffer(b)
1854 buf.EncodeUint32(uint32(m.Retval))
1855 buf.EncodeString(m.LocatorSetName, 64)
1856 return buf.Bytes(), nil
1858 func (m *OneGetMapRequestItrRlocsReply) Unmarshal(b []byte) error {
1859 buf := codec.NewBuffer(b)
1860 m.Retval = int32(buf.DecodeUint32())
1861 m.LocatorSetName = buf.DecodeString(64)
1865 // OneGetTransportProtocol defines message 'one_get_transport_protocol'.
1866 type OneGetTransportProtocol struct{}
1868 func (m *OneGetTransportProtocol) Reset() { *m = OneGetTransportProtocol{} }
1869 func (*OneGetTransportProtocol) GetMessageName() string { return "one_get_transport_protocol" }
1870 func (*OneGetTransportProtocol) GetCrcString() string { return "51077d14" }
1871 func (*OneGetTransportProtocol) GetMessageType() api.MessageType {
1872 return api.RequestMessage
1875 func (m *OneGetTransportProtocol) Size() int {
1882 func (m *OneGetTransportProtocol) Marshal(b []byte) ([]byte, error) {
1883 var buf *codec.Buffer
1885 buf = codec.NewBuffer(make([]byte, m.Size()))
1887 buf = codec.NewBuffer(b)
1889 return buf.Bytes(), nil
1891 func (m *OneGetTransportProtocol) Unmarshal(b []byte) error {
1895 // OneGetTransportProtocolReply defines message 'one_get_transport_protocol_reply'.
1896 type OneGetTransportProtocolReply struct {
1897 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1898 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"`
1901 func (m *OneGetTransportProtocolReply) Reset() { *m = OneGetTransportProtocolReply{} }
1902 func (*OneGetTransportProtocolReply) GetMessageName() string {
1903 return "one_get_transport_protocol_reply"
1905 func (*OneGetTransportProtocolReply) GetCrcString() string { return "62a28eb3" }
1906 func (*OneGetTransportProtocolReply) GetMessageType() api.MessageType {
1907 return api.ReplyMessage
1910 func (m *OneGetTransportProtocolReply) Size() int {
1915 size += 4 // m.Retval
1916 size += 1 // m.Protocol
1919 func (m *OneGetTransportProtocolReply) Marshal(b []byte) ([]byte, error) {
1920 var buf *codec.Buffer
1922 buf = codec.NewBuffer(make([]byte, m.Size()))
1924 buf = codec.NewBuffer(b)
1926 buf.EncodeUint32(uint32(m.Retval))
1927 buf.EncodeUint8(uint8(m.Protocol))
1928 return buf.Bytes(), nil
1930 func (m *OneGetTransportProtocolReply) Unmarshal(b []byte) error {
1931 buf := codec.NewBuffer(b)
1932 m.Retval = int32(buf.DecodeUint32())
1933 m.Protocol = buf.DecodeUint8()
1937 // OneL2ArpBdGet defines message 'one_l2_arp_bd_get'.
1938 type OneL2ArpBdGet struct{}
1940 func (m *OneL2ArpBdGet) Reset() { *m = OneL2ArpBdGet{} }
1941 func (*OneL2ArpBdGet) GetMessageName() string { return "one_l2_arp_bd_get" }
1942 func (*OneL2ArpBdGet) GetCrcString() string { return "51077d14" }
1943 func (*OneL2ArpBdGet) GetMessageType() api.MessageType {
1944 return api.RequestMessage
1947 func (m *OneL2ArpBdGet) Size() int {
1954 func (m *OneL2ArpBdGet) Marshal(b []byte) ([]byte, error) {
1955 var buf *codec.Buffer
1957 buf = codec.NewBuffer(make([]byte, m.Size()))
1959 buf = codec.NewBuffer(b)
1961 return buf.Bytes(), nil
1963 func (m *OneL2ArpBdGet) Unmarshal(b []byte) error {
1967 // OneL2ArpBdGetReply defines message 'one_l2_arp_bd_get_reply'.
1968 type OneL2ArpBdGetReply struct {
1969 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1970 Count uint32 `binapi:"u32,name=count" json:"-"`
1971 BridgeDomains []uint32 `binapi:"u32[count],name=bridge_domains" json:"bridge_domains,omitempty"`
1974 func (m *OneL2ArpBdGetReply) Reset() { *m = OneL2ArpBdGetReply{} }
1975 func (*OneL2ArpBdGetReply) GetMessageName() string { return "one_l2_arp_bd_get_reply" }
1976 func (*OneL2ArpBdGetReply) GetCrcString() string { return "221ac888" }
1977 func (*OneL2ArpBdGetReply) GetMessageType() api.MessageType {
1978 return api.ReplyMessage
1981 func (m *OneL2ArpBdGetReply) Size() int {
1986 size += 4 // m.Retval
1987 size += 4 // m.Count
1988 size += 4 * len(m.BridgeDomains) // m.BridgeDomains
1991 func (m *OneL2ArpBdGetReply) Marshal(b []byte) ([]byte, error) {
1992 var buf *codec.Buffer
1994 buf = codec.NewBuffer(make([]byte, m.Size()))
1996 buf = codec.NewBuffer(b)
1998 buf.EncodeUint32(uint32(m.Retval))
1999 buf.EncodeUint32(uint32(len(m.BridgeDomains)))
2000 for i := 0; i < len(m.BridgeDomains); i++ {
2002 if i < len(m.BridgeDomains) {
2003 x = uint32(m.BridgeDomains[i])
2005 buf.EncodeUint32(uint32(x))
2007 return buf.Bytes(), nil
2009 func (m *OneL2ArpBdGetReply) Unmarshal(b []byte) error {
2010 buf := codec.NewBuffer(b)
2011 m.Retval = int32(buf.DecodeUint32())
2012 m.Count = buf.DecodeUint32()
2013 m.BridgeDomains = make([]uint32, m.Count)
2014 for i := 0; i < len(m.BridgeDomains); i++ {
2015 m.BridgeDomains[i] = buf.DecodeUint32()
2020 // OneL2ArpEntriesGet defines message 'one_l2_arp_entries_get'.
2021 type OneL2ArpEntriesGet struct {
2022 Bd uint32 `binapi:"u32,name=bd" json:"bd,omitempty"`
2025 func (m *OneL2ArpEntriesGet) Reset() { *m = OneL2ArpEntriesGet{} }
2026 func (*OneL2ArpEntriesGet) GetMessageName() string { return "one_l2_arp_entries_get" }
2027 func (*OneL2ArpEntriesGet) GetCrcString() string { return "4d418cf4" }
2028 func (*OneL2ArpEntriesGet) GetMessageType() api.MessageType {
2029 return api.RequestMessage
2032 func (m *OneL2ArpEntriesGet) Size() int {
2040 func (m *OneL2ArpEntriesGet) Marshal(b []byte) ([]byte, error) {
2041 var buf *codec.Buffer
2043 buf = codec.NewBuffer(make([]byte, m.Size()))
2045 buf = codec.NewBuffer(b)
2047 buf.EncodeUint32(uint32(m.Bd))
2048 return buf.Bytes(), nil
2050 func (m *OneL2ArpEntriesGet) Unmarshal(b []byte) error {
2051 buf := codec.NewBuffer(b)
2052 m.Bd = buf.DecodeUint32()
2056 // OneL2ArpEntriesGetReply defines message 'one_l2_arp_entries_get_reply'.
2057 type OneL2ArpEntriesGetReply struct {
2058 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2059 Count uint32 `binapi:"u32,name=count" json:"-"`
2060 Entries []OneL2ArpEntry `binapi:"one_l2_arp_entry[count],name=entries" json:"entries,omitempty"`
2063 func (m *OneL2ArpEntriesGetReply) Reset() { *m = OneL2ArpEntriesGetReply{} }
2064 func (*OneL2ArpEntriesGetReply) GetMessageName() string { return "one_l2_arp_entries_get_reply" }
2065 func (*OneL2ArpEntriesGetReply) GetCrcString() string { return "b0a47bbe" }
2066 func (*OneL2ArpEntriesGetReply) GetMessageType() api.MessageType {
2067 return api.ReplyMessage
2070 func (m *OneL2ArpEntriesGetReply) Size() int {
2075 size += 4 // m.Retval
2076 size += 4 // m.Count
2077 for j1 := 0; j1 < len(m.Entries); j1++ {
2078 var s1 OneL2ArpEntry
2080 if j1 < len(m.Entries) {
2083 size += 1 * 6 // s1.Mac
2084 size += 1 * 4 // s1.IP4
2088 func (m *OneL2ArpEntriesGetReply) Marshal(b []byte) ([]byte, error) {
2089 var buf *codec.Buffer
2091 buf = codec.NewBuffer(make([]byte, m.Size()))
2093 buf = codec.NewBuffer(b)
2095 buf.EncodeUint32(uint32(m.Retval))
2096 buf.EncodeUint32(uint32(len(m.Entries)))
2097 for j0 := 0; j0 < len(m.Entries); j0++ {
2098 var v0 OneL2ArpEntry
2099 if j0 < len(m.Entries) {
2102 buf.EncodeBytes(v0.Mac[:], 6)
2103 buf.EncodeBytes(v0.IP4[:], 4)
2105 return buf.Bytes(), nil
2107 func (m *OneL2ArpEntriesGetReply) Unmarshal(b []byte) error {
2108 buf := codec.NewBuffer(b)
2109 m.Retval = int32(buf.DecodeUint32())
2110 m.Count = buf.DecodeUint32()
2111 m.Entries = make([]OneL2ArpEntry, int(m.Count))
2112 for j0 := 0; j0 < len(m.Entries); j0++ {
2113 copy(m.Entries[j0].Mac[:], buf.DecodeBytes(6))
2114 copy(m.Entries[j0].IP4[:], buf.DecodeBytes(4))
2119 // OneLocatorDetails defines message 'one_locator_details'.
2120 type OneLocatorDetails struct {
2121 Local uint8 `binapi:"u8,name=local" json:"local,omitempty"`
2122 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2123 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
2124 Priority uint8 `binapi:"u8,name=priority" json:"priority,omitempty"`
2125 Weight uint8 `binapi:"u8,name=weight" json:"weight,omitempty"`
2128 func (m *OneLocatorDetails) Reset() { *m = OneLocatorDetails{} }
2129 func (*OneLocatorDetails) GetMessageName() string { return "one_locator_details" }
2130 func (*OneLocatorDetails) GetCrcString() string { return "c0c4c2a7" }
2131 func (*OneLocatorDetails) GetMessageType() api.MessageType {
2132 return api.ReplyMessage
2135 func (m *OneLocatorDetails) Size() int {
2140 size += 1 // m.Local
2141 size += 4 // m.SwIfIndex
2142 size += 1 // m.IPAddress.Af
2143 size += 1 * 16 // m.IPAddress.Un
2144 size += 1 // m.Priority
2145 size += 1 // m.Weight
2148 func (m *OneLocatorDetails) Marshal(b []byte) ([]byte, error) {
2149 var buf *codec.Buffer
2151 buf = codec.NewBuffer(make([]byte, m.Size()))
2153 buf = codec.NewBuffer(b)
2155 buf.EncodeUint8(uint8(m.Local))
2156 buf.EncodeUint32(uint32(m.SwIfIndex))
2157 buf.EncodeUint8(uint8(m.IPAddress.Af))
2158 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
2159 buf.EncodeUint8(uint8(m.Priority))
2160 buf.EncodeUint8(uint8(m.Weight))
2161 return buf.Bytes(), nil
2163 func (m *OneLocatorDetails) Unmarshal(b []byte) error {
2164 buf := codec.NewBuffer(b)
2165 m.Local = buf.DecodeUint8()
2166 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2167 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
2168 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
2169 m.Priority = buf.DecodeUint8()
2170 m.Weight = buf.DecodeUint8()
2174 // OneLocatorDump defines message 'one_locator_dump'.
2175 type OneLocatorDump struct {
2176 LsIndex uint32 `binapi:"u32,name=ls_index" json:"ls_index,omitempty"`
2177 LsName string `binapi:"string[64],name=ls_name" json:"ls_name,omitempty"`
2178 IsIndexSet bool `binapi:"bool,name=is_index_set" json:"is_index_set,omitempty"`
2181 func (m *OneLocatorDump) Reset() { *m = OneLocatorDump{} }
2182 func (*OneLocatorDump) GetMessageName() string { return "one_locator_dump" }
2183 func (*OneLocatorDump) GetCrcString() string { return "9b11076c" }
2184 func (*OneLocatorDump) GetMessageType() api.MessageType {
2185 return api.RequestMessage
2188 func (m *OneLocatorDump) Size() int {
2193 size += 4 // m.LsIndex
2194 size += 64 // m.LsName
2195 size += 1 // m.IsIndexSet
2198 func (m *OneLocatorDump) Marshal(b []byte) ([]byte, error) {
2199 var buf *codec.Buffer
2201 buf = codec.NewBuffer(make([]byte, m.Size()))
2203 buf = codec.NewBuffer(b)
2205 buf.EncodeUint32(uint32(m.LsIndex))
2206 buf.EncodeString(m.LsName, 64)
2207 buf.EncodeBool(m.IsIndexSet)
2208 return buf.Bytes(), nil
2210 func (m *OneLocatorDump) Unmarshal(b []byte) error {
2211 buf := codec.NewBuffer(b)
2212 m.LsIndex = buf.DecodeUint32()
2213 m.LsName = buf.DecodeString(64)
2214 m.IsIndexSet = buf.DecodeBool()
2218 // OneLocatorSetDetails defines message 'one_locator_set_details'.
2219 type OneLocatorSetDetails struct {
2220 LsIndex uint32 `binapi:"u32,name=ls_index" json:"ls_index,omitempty"`
2221 LsName string `binapi:"string[64],name=ls_name" json:"ls_name,omitempty"`
2224 func (m *OneLocatorSetDetails) Reset() { *m = OneLocatorSetDetails{} }
2225 func (*OneLocatorSetDetails) GetMessageName() string { return "one_locator_set_details" }
2226 func (*OneLocatorSetDetails) GetCrcString() string { return "5b33a105" }
2227 func (*OneLocatorSetDetails) GetMessageType() api.MessageType {
2228 return api.ReplyMessage
2231 func (m *OneLocatorSetDetails) Size() int {
2236 size += 4 // m.LsIndex
2237 size += 64 // m.LsName
2240 func (m *OneLocatorSetDetails) Marshal(b []byte) ([]byte, error) {
2241 var buf *codec.Buffer
2243 buf = codec.NewBuffer(make([]byte, m.Size()))
2245 buf = codec.NewBuffer(b)
2247 buf.EncodeUint32(uint32(m.LsIndex))
2248 buf.EncodeString(m.LsName, 64)
2249 return buf.Bytes(), nil
2251 func (m *OneLocatorSetDetails) Unmarshal(b []byte) error {
2252 buf := codec.NewBuffer(b)
2253 m.LsIndex = buf.DecodeUint32()
2254 m.LsName = buf.DecodeString(64)
2258 // OneLocatorSetDump defines message 'one_locator_set_dump'.
2259 type OneLocatorSetDump struct {
2260 Filter OneFilter `binapi:"one_filter,name=filter" json:"filter,omitempty"`
2263 func (m *OneLocatorSetDump) Reset() { *m = OneLocatorSetDump{} }
2264 func (*OneLocatorSetDump) GetMessageName() string { return "one_locator_set_dump" }
2265 func (*OneLocatorSetDump) GetCrcString() string { return "71190768" }
2266 func (*OneLocatorSetDump) GetMessageType() api.MessageType {
2267 return api.RequestMessage
2270 func (m *OneLocatorSetDump) Size() int {
2275 size += 4 // m.Filter
2278 func (m *OneLocatorSetDump) Marshal(b []byte) ([]byte, error) {
2279 var buf *codec.Buffer
2281 buf = codec.NewBuffer(make([]byte, m.Size()))
2283 buf = codec.NewBuffer(b)
2285 buf.EncodeUint32(uint32(m.Filter))
2286 return buf.Bytes(), nil
2288 func (m *OneLocatorSetDump) Unmarshal(b []byte) error {
2289 buf := codec.NewBuffer(b)
2290 m.Filter = OneFilter(buf.DecodeUint32())
2294 // OneMapRegisterEnableDisable defines message 'one_map_register_enable_disable'.
2295 type OneMapRegisterEnableDisable struct {
2296 IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
2299 func (m *OneMapRegisterEnableDisable) Reset() { *m = OneMapRegisterEnableDisable{} }
2300 func (*OneMapRegisterEnableDisable) GetMessageName() string { return "one_map_register_enable_disable" }
2301 func (*OneMapRegisterEnableDisable) GetCrcString() string { return "c264d7bf" }
2302 func (*OneMapRegisterEnableDisable) GetMessageType() api.MessageType {
2303 return api.RequestMessage
2306 func (m *OneMapRegisterEnableDisable) Size() int {
2311 size += 1 // m.IsEnable
2314 func (m *OneMapRegisterEnableDisable) Marshal(b []byte) ([]byte, error) {
2315 var buf *codec.Buffer
2317 buf = codec.NewBuffer(make([]byte, m.Size()))
2319 buf = codec.NewBuffer(b)
2321 buf.EncodeBool(m.IsEnable)
2322 return buf.Bytes(), nil
2324 func (m *OneMapRegisterEnableDisable) Unmarshal(b []byte) error {
2325 buf := codec.NewBuffer(b)
2326 m.IsEnable = buf.DecodeBool()
2330 // OneMapRegisterEnableDisableReply defines message 'one_map_register_enable_disable_reply'.
2331 type OneMapRegisterEnableDisableReply struct {
2332 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2335 func (m *OneMapRegisterEnableDisableReply) Reset() { *m = OneMapRegisterEnableDisableReply{} }
2336 func (*OneMapRegisterEnableDisableReply) GetMessageName() string {
2337 return "one_map_register_enable_disable_reply"
2339 func (*OneMapRegisterEnableDisableReply) GetCrcString() string { return "e8d4e804" }
2340 func (*OneMapRegisterEnableDisableReply) GetMessageType() api.MessageType {
2341 return api.ReplyMessage
2344 func (m *OneMapRegisterEnableDisableReply) Size() int {
2349 size += 4 // m.Retval
2352 func (m *OneMapRegisterEnableDisableReply) Marshal(b []byte) ([]byte, error) {
2353 var buf *codec.Buffer
2355 buf = codec.NewBuffer(make([]byte, m.Size()))
2357 buf = codec.NewBuffer(b)
2359 buf.EncodeUint32(uint32(m.Retval))
2360 return buf.Bytes(), nil
2362 func (m *OneMapRegisterEnableDisableReply) Unmarshal(b []byte) error {
2363 buf := codec.NewBuffer(b)
2364 m.Retval = int32(buf.DecodeUint32())
2368 // OneMapRegisterFallbackThreshold defines message 'one_map_register_fallback_threshold'.
2369 type OneMapRegisterFallbackThreshold struct {
2370 Value uint32 `binapi:"u32,name=value" json:"value,omitempty"`
2373 func (m *OneMapRegisterFallbackThreshold) Reset() { *m = OneMapRegisterFallbackThreshold{} }
2374 func (*OneMapRegisterFallbackThreshold) GetMessageName() string {
2375 return "one_map_register_fallback_threshold"
2377 func (*OneMapRegisterFallbackThreshold) GetCrcString() string { return "f7d4a475" }
2378 func (*OneMapRegisterFallbackThreshold) GetMessageType() api.MessageType {
2379 return api.RequestMessage
2382 func (m *OneMapRegisterFallbackThreshold) Size() int {
2387 size += 4 // m.Value
2390 func (m *OneMapRegisterFallbackThreshold) Marshal(b []byte) ([]byte, error) {
2391 var buf *codec.Buffer
2393 buf = codec.NewBuffer(make([]byte, m.Size()))
2395 buf = codec.NewBuffer(b)
2397 buf.EncodeUint32(uint32(m.Value))
2398 return buf.Bytes(), nil
2400 func (m *OneMapRegisterFallbackThreshold) Unmarshal(b []byte) error {
2401 buf := codec.NewBuffer(b)
2402 m.Value = buf.DecodeUint32()
2406 // OneMapRegisterFallbackThresholdReply defines message 'one_map_register_fallback_threshold_reply'.
2407 type OneMapRegisterFallbackThresholdReply struct {
2408 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2411 func (m *OneMapRegisterFallbackThresholdReply) Reset() { *m = OneMapRegisterFallbackThresholdReply{} }
2412 func (*OneMapRegisterFallbackThresholdReply) GetMessageName() string {
2413 return "one_map_register_fallback_threshold_reply"
2415 func (*OneMapRegisterFallbackThresholdReply) GetCrcString() string { return "e8d4e804" }
2416 func (*OneMapRegisterFallbackThresholdReply) GetMessageType() api.MessageType {
2417 return api.ReplyMessage
2420 func (m *OneMapRegisterFallbackThresholdReply) Size() int {
2425 size += 4 // m.Retval
2428 func (m *OneMapRegisterFallbackThresholdReply) Marshal(b []byte) ([]byte, error) {
2429 var buf *codec.Buffer
2431 buf = codec.NewBuffer(make([]byte, m.Size()))
2433 buf = codec.NewBuffer(b)
2435 buf.EncodeUint32(uint32(m.Retval))
2436 return buf.Bytes(), nil
2438 func (m *OneMapRegisterFallbackThresholdReply) Unmarshal(b []byte) error {
2439 buf := codec.NewBuffer(b)
2440 m.Retval = int32(buf.DecodeUint32())
2444 // OneMapRegisterSetTTL defines message 'one_map_register_set_ttl'.
2445 type OneMapRegisterSetTTL struct {
2446 TTL uint32 `binapi:"u32,name=ttl" json:"ttl,omitempty"`
2449 func (m *OneMapRegisterSetTTL) Reset() { *m = OneMapRegisterSetTTL{} }
2450 func (*OneMapRegisterSetTTL) GetMessageName() string { return "one_map_register_set_ttl" }
2451 func (*OneMapRegisterSetTTL) GetCrcString() string { return "dd59f1f3" }
2452 func (*OneMapRegisterSetTTL) GetMessageType() api.MessageType {
2453 return api.RequestMessage
2456 func (m *OneMapRegisterSetTTL) Size() int {
2464 func (m *OneMapRegisterSetTTL) Marshal(b []byte) ([]byte, error) {
2465 var buf *codec.Buffer
2467 buf = codec.NewBuffer(make([]byte, m.Size()))
2469 buf = codec.NewBuffer(b)
2471 buf.EncodeUint32(uint32(m.TTL))
2472 return buf.Bytes(), nil
2474 func (m *OneMapRegisterSetTTL) Unmarshal(b []byte) error {
2475 buf := codec.NewBuffer(b)
2476 m.TTL = buf.DecodeUint32()
2480 // OneMapRegisterSetTTLReply defines message 'one_map_register_set_ttl_reply'.
2481 type OneMapRegisterSetTTLReply struct {
2482 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2485 func (m *OneMapRegisterSetTTLReply) Reset() { *m = OneMapRegisterSetTTLReply{} }
2486 func (*OneMapRegisterSetTTLReply) GetMessageName() string { return "one_map_register_set_ttl_reply" }
2487 func (*OneMapRegisterSetTTLReply) GetCrcString() string { return "e8d4e804" }
2488 func (*OneMapRegisterSetTTLReply) GetMessageType() api.MessageType {
2489 return api.ReplyMessage
2492 func (m *OneMapRegisterSetTTLReply) Size() int {
2497 size += 4 // m.Retval
2500 func (m *OneMapRegisterSetTTLReply) Marshal(b []byte) ([]byte, error) {
2501 var buf *codec.Buffer
2503 buf = codec.NewBuffer(make([]byte, m.Size()))
2505 buf = codec.NewBuffer(b)
2507 buf.EncodeUint32(uint32(m.Retval))
2508 return buf.Bytes(), nil
2510 func (m *OneMapRegisterSetTTLReply) Unmarshal(b []byte) error {
2511 buf := codec.NewBuffer(b)
2512 m.Retval = int32(buf.DecodeUint32())
2516 // OneMapRequestMode defines message 'one_map_request_mode'.
2517 type OneMapRequestMode struct {
2518 Mode OneMapMode `binapi:"one_map_mode,name=mode" json:"mode,omitempty"`
2521 func (m *OneMapRequestMode) Reset() { *m = OneMapRequestMode{} }
2522 func (*OneMapRequestMode) GetMessageName() string { return "one_map_request_mode" }
2523 func (*OneMapRequestMode) GetCrcString() string { return "ffa5d2f5" }
2524 func (*OneMapRequestMode) GetMessageType() api.MessageType {
2525 return api.RequestMessage
2528 func (m *OneMapRequestMode) Size() int {
2536 func (m *OneMapRequestMode) Marshal(b []byte) ([]byte, error) {
2537 var buf *codec.Buffer
2539 buf = codec.NewBuffer(make([]byte, m.Size()))
2541 buf = codec.NewBuffer(b)
2543 buf.EncodeUint32(uint32(m.Mode))
2544 return buf.Bytes(), nil
2546 func (m *OneMapRequestMode) Unmarshal(b []byte) error {
2547 buf := codec.NewBuffer(b)
2548 m.Mode = OneMapMode(buf.DecodeUint32())
2552 // OneMapRequestModeReply defines message 'one_map_request_mode_reply'.
2553 type OneMapRequestModeReply struct {
2554 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2557 func (m *OneMapRequestModeReply) Reset() { *m = OneMapRequestModeReply{} }
2558 func (*OneMapRequestModeReply) GetMessageName() string { return "one_map_request_mode_reply" }
2559 func (*OneMapRequestModeReply) GetCrcString() string { return "e8d4e804" }
2560 func (*OneMapRequestModeReply) GetMessageType() api.MessageType {
2561 return api.ReplyMessage
2564 func (m *OneMapRequestModeReply) Size() int {
2569 size += 4 // m.Retval
2572 func (m *OneMapRequestModeReply) Marshal(b []byte) ([]byte, error) {
2573 var buf *codec.Buffer
2575 buf = codec.NewBuffer(make([]byte, m.Size()))
2577 buf = codec.NewBuffer(b)
2579 buf.EncodeUint32(uint32(m.Retval))
2580 return buf.Bytes(), nil
2582 func (m *OneMapRequestModeReply) Unmarshal(b []byte) error {
2583 buf := codec.NewBuffer(b)
2584 m.Retval = int32(buf.DecodeUint32())
2588 // OneMapResolverDetails defines message 'one_map_resolver_details'.
2589 type OneMapResolverDetails struct {
2590 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
2593 func (m *OneMapResolverDetails) Reset() { *m = OneMapResolverDetails{} }
2594 func (*OneMapResolverDetails) GetMessageName() string { return "one_map_resolver_details" }
2595 func (*OneMapResolverDetails) GetCrcString() string { return "82a09deb" }
2596 func (*OneMapResolverDetails) GetMessageType() api.MessageType {
2597 return api.ReplyMessage
2600 func (m *OneMapResolverDetails) Size() int {
2605 size += 1 // m.IPAddress.Af
2606 size += 1 * 16 // m.IPAddress.Un
2609 func (m *OneMapResolverDetails) Marshal(b []byte) ([]byte, error) {
2610 var buf *codec.Buffer
2612 buf = codec.NewBuffer(make([]byte, m.Size()))
2614 buf = codec.NewBuffer(b)
2616 buf.EncodeUint8(uint8(m.IPAddress.Af))
2617 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
2618 return buf.Bytes(), nil
2620 func (m *OneMapResolverDetails) Unmarshal(b []byte) error {
2621 buf := codec.NewBuffer(b)
2622 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
2623 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
2627 // OneMapResolverDump defines message 'one_map_resolver_dump'.
2628 type OneMapResolverDump struct{}
2630 func (m *OneMapResolverDump) Reset() { *m = OneMapResolverDump{} }
2631 func (*OneMapResolverDump) GetMessageName() string { return "one_map_resolver_dump" }
2632 func (*OneMapResolverDump) GetCrcString() string { return "51077d14" }
2633 func (*OneMapResolverDump) GetMessageType() api.MessageType {
2634 return api.RequestMessage
2637 func (m *OneMapResolverDump) Size() int {
2644 func (m *OneMapResolverDump) Marshal(b []byte) ([]byte, error) {
2645 var buf *codec.Buffer
2647 buf = codec.NewBuffer(make([]byte, m.Size()))
2649 buf = codec.NewBuffer(b)
2651 return buf.Bytes(), nil
2653 func (m *OneMapResolverDump) Unmarshal(b []byte) error {
2657 // OneMapServerDetails defines message 'one_map_server_details'.
2658 type OneMapServerDetails struct {
2659 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
2662 func (m *OneMapServerDetails) Reset() { *m = OneMapServerDetails{} }
2663 func (*OneMapServerDetails) GetMessageName() string { return "one_map_server_details" }
2664 func (*OneMapServerDetails) GetCrcString() string { return "82a09deb" }
2665 func (*OneMapServerDetails) GetMessageType() api.MessageType {
2666 return api.ReplyMessage
2669 func (m *OneMapServerDetails) Size() int {
2674 size += 1 // m.IPAddress.Af
2675 size += 1 * 16 // m.IPAddress.Un
2678 func (m *OneMapServerDetails) Marshal(b []byte) ([]byte, error) {
2679 var buf *codec.Buffer
2681 buf = codec.NewBuffer(make([]byte, m.Size()))
2683 buf = codec.NewBuffer(b)
2685 buf.EncodeUint8(uint8(m.IPAddress.Af))
2686 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
2687 return buf.Bytes(), nil
2689 func (m *OneMapServerDetails) Unmarshal(b []byte) error {
2690 buf := codec.NewBuffer(b)
2691 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
2692 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
2696 // OneMapServerDump defines message 'one_map_server_dump'.
2697 type OneMapServerDump struct{}
2699 func (m *OneMapServerDump) Reset() { *m = OneMapServerDump{} }
2700 func (*OneMapServerDump) GetMessageName() string { return "one_map_server_dump" }
2701 func (*OneMapServerDump) GetCrcString() string { return "51077d14" }
2702 func (*OneMapServerDump) GetMessageType() api.MessageType {
2703 return api.RequestMessage
2706 func (m *OneMapServerDump) Size() int {
2713 func (m *OneMapServerDump) Marshal(b []byte) ([]byte, error) {
2714 var buf *codec.Buffer
2716 buf = codec.NewBuffer(make([]byte, m.Size()))
2718 buf = codec.NewBuffer(b)
2720 return buf.Bytes(), nil
2722 func (m *OneMapServerDump) Unmarshal(b []byte) error {
2726 // OneNdpBdGet defines message 'one_ndp_bd_get'.
2727 type OneNdpBdGet struct{}
2729 func (m *OneNdpBdGet) Reset() { *m = OneNdpBdGet{} }
2730 func (*OneNdpBdGet) GetMessageName() string { return "one_ndp_bd_get" }
2731 func (*OneNdpBdGet) GetCrcString() string { return "51077d14" }
2732 func (*OneNdpBdGet) GetMessageType() api.MessageType {
2733 return api.RequestMessage
2736 func (m *OneNdpBdGet) Size() int {
2743 func (m *OneNdpBdGet) Marshal(b []byte) ([]byte, error) {
2744 var buf *codec.Buffer
2746 buf = codec.NewBuffer(make([]byte, m.Size()))
2748 buf = codec.NewBuffer(b)
2750 return buf.Bytes(), nil
2752 func (m *OneNdpBdGet) Unmarshal(b []byte) error {
2756 // OneNdpBdGetReply defines message 'one_ndp_bd_get_reply'.
2757 type OneNdpBdGetReply struct {
2758 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2759 Count uint32 `binapi:"u32,name=count" json:"-"`
2760 BridgeDomains []uint32 `binapi:"u32[count],name=bridge_domains" json:"bridge_domains,omitempty"`
2763 func (m *OneNdpBdGetReply) Reset() { *m = OneNdpBdGetReply{} }
2764 func (*OneNdpBdGetReply) GetMessageName() string { return "one_ndp_bd_get_reply" }
2765 func (*OneNdpBdGetReply) GetCrcString() string { return "221ac888" }
2766 func (*OneNdpBdGetReply) GetMessageType() api.MessageType {
2767 return api.ReplyMessage
2770 func (m *OneNdpBdGetReply) Size() int {
2775 size += 4 // m.Retval
2776 size += 4 // m.Count
2777 size += 4 * len(m.BridgeDomains) // m.BridgeDomains
2780 func (m *OneNdpBdGetReply) Marshal(b []byte) ([]byte, error) {
2781 var buf *codec.Buffer
2783 buf = codec.NewBuffer(make([]byte, m.Size()))
2785 buf = codec.NewBuffer(b)
2787 buf.EncodeUint32(uint32(m.Retval))
2788 buf.EncodeUint32(uint32(len(m.BridgeDomains)))
2789 for i := 0; i < len(m.BridgeDomains); i++ {
2791 if i < len(m.BridgeDomains) {
2792 x = uint32(m.BridgeDomains[i])
2794 buf.EncodeUint32(uint32(x))
2796 return buf.Bytes(), nil
2798 func (m *OneNdpBdGetReply) Unmarshal(b []byte) error {
2799 buf := codec.NewBuffer(b)
2800 m.Retval = int32(buf.DecodeUint32())
2801 m.Count = buf.DecodeUint32()
2802 m.BridgeDomains = make([]uint32, m.Count)
2803 for i := 0; i < len(m.BridgeDomains); i++ {
2804 m.BridgeDomains[i] = buf.DecodeUint32()
2809 // OneNdpEntriesGet defines message 'one_ndp_entries_get'.
2810 type OneNdpEntriesGet struct {
2811 Bd uint32 `binapi:"u32,name=bd" json:"bd,omitempty"`
2814 func (m *OneNdpEntriesGet) Reset() { *m = OneNdpEntriesGet{} }
2815 func (*OneNdpEntriesGet) GetMessageName() string { return "one_ndp_entries_get" }
2816 func (*OneNdpEntriesGet) GetCrcString() string { return "4d418cf4" }
2817 func (*OneNdpEntriesGet) GetMessageType() api.MessageType {
2818 return api.RequestMessage
2821 func (m *OneNdpEntriesGet) Size() int {
2829 func (m *OneNdpEntriesGet) Marshal(b []byte) ([]byte, error) {
2830 var buf *codec.Buffer
2832 buf = codec.NewBuffer(make([]byte, m.Size()))
2834 buf = codec.NewBuffer(b)
2836 buf.EncodeUint32(uint32(m.Bd))
2837 return buf.Bytes(), nil
2839 func (m *OneNdpEntriesGet) Unmarshal(b []byte) error {
2840 buf := codec.NewBuffer(b)
2841 m.Bd = buf.DecodeUint32()
2845 // OneNdpEntriesGetReply defines message 'one_ndp_entries_get_reply'.
2846 type OneNdpEntriesGetReply struct {
2847 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2848 Count uint32 `binapi:"u32,name=count" json:"-"`
2849 Entries []OneNdpEntry `binapi:"one_ndp_entry[count],name=entries" json:"entries,omitempty"`
2852 func (m *OneNdpEntriesGetReply) Reset() { *m = OneNdpEntriesGetReply{} }
2853 func (*OneNdpEntriesGetReply) GetMessageName() string { return "one_ndp_entries_get_reply" }
2854 func (*OneNdpEntriesGetReply) GetCrcString() string { return "0bd34161" }
2855 func (*OneNdpEntriesGetReply) GetMessageType() api.MessageType {
2856 return api.ReplyMessage
2859 func (m *OneNdpEntriesGetReply) Size() int {
2864 size += 4 // m.Retval
2865 size += 4 // m.Count
2866 for j1 := 0; j1 < len(m.Entries); j1++ {
2869 if j1 < len(m.Entries) {
2872 size += 1 * 6 // s1.Mac
2873 size += 1 * 16 // s1.IP6
2877 func (m *OneNdpEntriesGetReply) Marshal(b []byte) ([]byte, error) {
2878 var buf *codec.Buffer
2880 buf = codec.NewBuffer(make([]byte, m.Size()))
2882 buf = codec.NewBuffer(b)
2884 buf.EncodeUint32(uint32(m.Retval))
2885 buf.EncodeUint32(uint32(len(m.Entries)))
2886 for j0 := 0; j0 < len(m.Entries); j0++ {
2888 if j0 < len(m.Entries) {
2891 buf.EncodeBytes(v0.Mac[:], 6)
2892 buf.EncodeBytes(v0.IP6[:], 16)
2894 return buf.Bytes(), nil
2896 func (m *OneNdpEntriesGetReply) Unmarshal(b []byte) error {
2897 buf := codec.NewBuffer(b)
2898 m.Retval = int32(buf.DecodeUint32())
2899 m.Count = buf.DecodeUint32()
2900 m.Entries = make([]OneNdpEntry, int(m.Count))
2901 for j0 := 0; j0 < len(m.Entries); j0++ {
2902 copy(m.Entries[j0].Mac[:], buf.DecodeBytes(6))
2903 copy(m.Entries[j0].IP6[:], buf.DecodeBytes(16))
2908 // OneNshSetLocatorSet defines message 'one_nsh_set_locator_set'.
2909 type OneNshSetLocatorSet struct {
2910 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
2911 LsName string `binapi:"string[64],name=ls_name" json:"ls_name,omitempty"`
2914 func (m *OneNshSetLocatorSet) Reset() { *m = OneNshSetLocatorSet{} }
2915 func (*OneNshSetLocatorSet) GetMessageName() string { return "one_nsh_set_locator_set" }
2916 func (*OneNshSetLocatorSet) GetCrcString() string { return "486e2b76" }
2917 func (*OneNshSetLocatorSet) GetMessageType() api.MessageType {
2918 return api.RequestMessage
2921 func (m *OneNshSetLocatorSet) Size() int {
2926 size += 1 // m.IsAdd
2927 size += 64 // m.LsName
2930 func (m *OneNshSetLocatorSet) Marshal(b []byte) ([]byte, error) {
2931 var buf *codec.Buffer
2933 buf = codec.NewBuffer(make([]byte, m.Size()))
2935 buf = codec.NewBuffer(b)
2937 buf.EncodeBool(m.IsAdd)
2938 buf.EncodeString(m.LsName, 64)
2939 return buf.Bytes(), nil
2941 func (m *OneNshSetLocatorSet) Unmarshal(b []byte) error {
2942 buf := codec.NewBuffer(b)
2943 m.IsAdd = buf.DecodeBool()
2944 m.LsName = buf.DecodeString(64)
2948 // OneNshSetLocatorSetReply defines message 'one_nsh_set_locator_set_reply'.
2949 type OneNshSetLocatorSetReply struct {
2950 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2953 func (m *OneNshSetLocatorSetReply) Reset() { *m = OneNshSetLocatorSetReply{} }
2954 func (*OneNshSetLocatorSetReply) GetMessageName() string { return "one_nsh_set_locator_set_reply" }
2955 func (*OneNshSetLocatorSetReply) GetCrcString() string { return "e8d4e804" }
2956 func (*OneNshSetLocatorSetReply) GetMessageType() api.MessageType {
2957 return api.ReplyMessage
2960 func (m *OneNshSetLocatorSetReply) Size() int {
2965 size += 4 // m.Retval
2968 func (m *OneNshSetLocatorSetReply) Marshal(b []byte) ([]byte, error) {
2969 var buf *codec.Buffer
2971 buf = codec.NewBuffer(make([]byte, m.Size()))
2973 buf = codec.NewBuffer(b)
2975 buf.EncodeUint32(uint32(m.Retval))
2976 return buf.Bytes(), nil
2978 func (m *OneNshSetLocatorSetReply) Unmarshal(b []byte) error {
2979 buf := codec.NewBuffer(b)
2980 m.Retval = int32(buf.DecodeUint32())
2984 // OnePitrSetLocatorSet defines message 'one_pitr_set_locator_set'.
2985 type OnePitrSetLocatorSet struct {
2986 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
2987 LsName string `binapi:"string[64],name=ls_name" json:"ls_name,omitempty"`
2990 func (m *OnePitrSetLocatorSet) Reset() { *m = OnePitrSetLocatorSet{} }
2991 func (*OnePitrSetLocatorSet) GetMessageName() string { return "one_pitr_set_locator_set" }
2992 func (*OnePitrSetLocatorSet) GetCrcString() string { return "486e2b76" }
2993 func (*OnePitrSetLocatorSet) GetMessageType() api.MessageType {
2994 return api.RequestMessage
2997 func (m *OnePitrSetLocatorSet) Size() int {
3002 size += 1 // m.IsAdd
3003 size += 64 // m.LsName
3006 func (m *OnePitrSetLocatorSet) Marshal(b []byte) ([]byte, error) {
3007 var buf *codec.Buffer
3009 buf = codec.NewBuffer(make([]byte, m.Size()))
3011 buf = codec.NewBuffer(b)
3013 buf.EncodeBool(m.IsAdd)
3014 buf.EncodeString(m.LsName, 64)
3015 return buf.Bytes(), nil
3017 func (m *OnePitrSetLocatorSet) Unmarshal(b []byte) error {
3018 buf := codec.NewBuffer(b)
3019 m.IsAdd = buf.DecodeBool()
3020 m.LsName = buf.DecodeString(64)
3024 // OnePitrSetLocatorSetReply defines message 'one_pitr_set_locator_set_reply'.
3025 type OnePitrSetLocatorSetReply struct {
3026 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3029 func (m *OnePitrSetLocatorSetReply) Reset() { *m = OnePitrSetLocatorSetReply{} }
3030 func (*OnePitrSetLocatorSetReply) GetMessageName() string { return "one_pitr_set_locator_set_reply" }
3031 func (*OnePitrSetLocatorSetReply) GetCrcString() string { return "e8d4e804" }
3032 func (*OnePitrSetLocatorSetReply) GetMessageType() api.MessageType {
3033 return api.ReplyMessage
3036 func (m *OnePitrSetLocatorSetReply) Size() int {
3041 size += 4 // m.Retval
3044 func (m *OnePitrSetLocatorSetReply) Marshal(b []byte) ([]byte, error) {
3045 var buf *codec.Buffer
3047 buf = codec.NewBuffer(make([]byte, m.Size()))
3049 buf = codec.NewBuffer(b)
3051 buf.EncodeUint32(uint32(m.Retval))
3052 return buf.Bytes(), nil
3054 func (m *OnePitrSetLocatorSetReply) Unmarshal(b []byte) error {
3055 buf := codec.NewBuffer(b)
3056 m.Retval = int32(buf.DecodeUint32())
3060 // OneRlocProbeEnableDisable defines message 'one_rloc_probe_enable_disable'.
3061 type OneRlocProbeEnableDisable struct {
3062 IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
3065 func (m *OneRlocProbeEnableDisable) Reset() { *m = OneRlocProbeEnableDisable{} }
3066 func (*OneRlocProbeEnableDisable) GetMessageName() string { return "one_rloc_probe_enable_disable" }
3067 func (*OneRlocProbeEnableDisable) GetCrcString() string { return "c264d7bf" }
3068 func (*OneRlocProbeEnableDisable) GetMessageType() api.MessageType {
3069 return api.RequestMessage
3072 func (m *OneRlocProbeEnableDisable) Size() int {
3077 size += 1 // m.IsEnable
3080 func (m *OneRlocProbeEnableDisable) Marshal(b []byte) ([]byte, error) {
3081 var buf *codec.Buffer
3083 buf = codec.NewBuffer(make([]byte, m.Size()))
3085 buf = codec.NewBuffer(b)
3087 buf.EncodeBool(m.IsEnable)
3088 return buf.Bytes(), nil
3090 func (m *OneRlocProbeEnableDisable) Unmarshal(b []byte) error {
3091 buf := codec.NewBuffer(b)
3092 m.IsEnable = buf.DecodeBool()
3096 // OneRlocProbeEnableDisableReply defines message 'one_rloc_probe_enable_disable_reply'.
3097 type OneRlocProbeEnableDisableReply struct {
3098 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3101 func (m *OneRlocProbeEnableDisableReply) Reset() { *m = OneRlocProbeEnableDisableReply{} }
3102 func (*OneRlocProbeEnableDisableReply) GetMessageName() string {
3103 return "one_rloc_probe_enable_disable_reply"
3105 func (*OneRlocProbeEnableDisableReply) GetCrcString() string { return "e8d4e804" }
3106 func (*OneRlocProbeEnableDisableReply) GetMessageType() api.MessageType {
3107 return api.ReplyMessage
3110 func (m *OneRlocProbeEnableDisableReply) Size() int {
3115 size += 4 // m.Retval
3118 func (m *OneRlocProbeEnableDisableReply) Marshal(b []byte) ([]byte, error) {
3119 var buf *codec.Buffer
3121 buf = codec.NewBuffer(make([]byte, m.Size()))
3123 buf = codec.NewBuffer(b)
3125 buf.EncodeUint32(uint32(m.Retval))
3126 return buf.Bytes(), nil
3128 func (m *OneRlocProbeEnableDisableReply) Unmarshal(b []byte) error {
3129 buf := codec.NewBuffer(b)
3130 m.Retval = int32(buf.DecodeUint32())
3134 // OneSetTransportProtocol defines message 'one_set_transport_protocol'.
3135 type OneSetTransportProtocol struct {
3136 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"`
3139 func (m *OneSetTransportProtocol) Reset() { *m = OneSetTransportProtocol{} }
3140 func (*OneSetTransportProtocol) GetMessageName() string { return "one_set_transport_protocol" }
3141 func (*OneSetTransportProtocol) GetCrcString() string { return "07b6b85f" }
3142 func (*OneSetTransportProtocol) GetMessageType() api.MessageType {
3143 return api.RequestMessage
3146 func (m *OneSetTransportProtocol) Size() int {
3151 size += 1 // m.Protocol
3154 func (m *OneSetTransportProtocol) Marshal(b []byte) ([]byte, error) {
3155 var buf *codec.Buffer
3157 buf = codec.NewBuffer(make([]byte, m.Size()))
3159 buf = codec.NewBuffer(b)
3161 buf.EncodeUint8(uint8(m.Protocol))
3162 return buf.Bytes(), nil
3164 func (m *OneSetTransportProtocol) Unmarshal(b []byte) error {
3165 buf := codec.NewBuffer(b)
3166 m.Protocol = buf.DecodeUint8()
3170 // OneSetTransportProtocolReply defines message 'one_set_transport_protocol_reply'.
3171 type OneSetTransportProtocolReply struct {
3172 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3175 func (m *OneSetTransportProtocolReply) Reset() { *m = OneSetTransportProtocolReply{} }
3176 func (*OneSetTransportProtocolReply) GetMessageName() string {
3177 return "one_set_transport_protocol_reply"
3179 func (*OneSetTransportProtocolReply) GetCrcString() string { return "e8d4e804" }
3180 func (*OneSetTransportProtocolReply) GetMessageType() api.MessageType {
3181 return api.ReplyMessage
3184 func (m *OneSetTransportProtocolReply) Size() int {
3189 size += 4 // m.Retval
3192 func (m *OneSetTransportProtocolReply) Marshal(b []byte) ([]byte, error) {
3193 var buf *codec.Buffer
3195 buf = codec.NewBuffer(make([]byte, m.Size()))
3197 buf = codec.NewBuffer(b)
3199 buf.EncodeUint32(uint32(m.Retval))
3200 return buf.Bytes(), nil
3202 func (m *OneSetTransportProtocolReply) Unmarshal(b []byte) error {
3203 buf := codec.NewBuffer(b)
3204 m.Retval = int32(buf.DecodeUint32())
3208 // OneShowPetrMode defines message 'one_show_petr_mode'.
3209 type OneShowPetrMode struct{}
3211 func (m *OneShowPetrMode) Reset() { *m = OneShowPetrMode{} }
3212 func (*OneShowPetrMode) GetMessageName() string { return "one_show_petr_mode" }
3213 func (*OneShowPetrMode) GetCrcString() string { return "51077d14" }
3214 func (*OneShowPetrMode) GetMessageType() api.MessageType {
3215 return api.RequestMessage
3218 func (m *OneShowPetrMode) Size() int {
3225 func (m *OneShowPetrMode) Marshal(b []byte) ([]byte, error) {
3226 var buf *codec.Buffer
3228 buf = codec.NewBuffer(make([]byte, m.Size()))
3230 buf = codec.NewBuffer(b)
3232 return buf.Bytes(), nil
3234 func (m *OneShowPetrMode) Unmarshal(b []byte) error {
3238 // OneShowPetrModeReply defines message 'one_show_petr_mode_reply'.
3239 type OneShowPetrModeReply struct {
3240 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3241 IsEnable bool `binapi:"bool,name=is_enable" json:"is_enable,omitempty"`
3244 func (m *OneShowPetrModeReply) Reset() { *m = OneShowPetrModeReply{} }
3245 func (*OneShowPetrModeReply) GetMessageName() string { return "one_show_petr_mode_reply" }
3246 func (*OneShowPetrModeReply) GetCrcString() string { return "f15abb16" }
3247 func (*OneShowPetrModeReply) GetMessageType() api.MessageType {
3248 return api.ReplyMessage
3251 func (m *OneShowPetrModeReply) Size() int {
3256 size += 4 // m.Retval
3257 size += 1 // m.IsEnable
3260 func (m *OneShowPetrModeReply) Marshal(b []byte) ([]byte, error) {
3261 var buf *codec.Buffer
3263 buf = codec.NewBuffer(make([]byte, m.Size()))
3265 buf = codec.NewBuffer(b)
3267 buf.EncodeUint32(uint32(m.Retval))
3268 buf.EncodeBool(m.IsEnable)
3269 return buf.Bytes(), nil
3271 func (m *OneShowPetrModeReply) Unmarshal(b []byte) error {
3272 buf := codec.NewBuffer(b)
3273 m.Retval = int32(buf.DecodeUint32())
3274 m.IsEnable = buf.DecodeBool()
3278 // OneShowPitrMode defines message 'one_show_pitr_mode'.
3279 type OneShowPitrMode struct{}
3281 func (m *OneShowPitrMode) Reset() { *m = OneShowPitrMode{} }
3282 func (*OneShowPitrMode) GetMessageName() string { return "one_show_pitr_mode" }
3283 func (*OneShowPitrMode) GetCrcString() string { return "51077d14" }
3284 func (*OneShowPitrMode) GetMessageType() api.MessageType {
3285 return api.RequestMessage
3288 func (m *OneShowPitrMode) Size() int {
3295 func (m *OneShowPitrMode) Marshal(b []byte) ([]byte, error) {
3296 var buf *codec.Buffer
3298 buf = codec.NewBuffer(make([]byte, m.Size()))
3300 buf = codec.NewBuffer(b)
3302 return buf.Bytes(), nil
3304 func (m *OneShowPitrMode) Unmarshal(b []byte) error {
3308 // OneShowPitrModeReply defines message 'one_show_pitr_mode_reply'.
3309 type OneShowPitrModeReply struct {
3310 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3311 IsEnable bool `binapi:"bool,name=is_enable" json:"is_enable,omitempty"`
3314 func (m *OneShowPitrModeReply) Reset() { *m = OneShowPitrModeReply{} }
3315 func (*OneShowPitrModeReply) GetMessageName() string { return "one_show_pitr_mode_reply" }
3316 func (*OneShowPitrModeReply) GetCrcString() string { return "f15abb16" }
3317 func (*OneShowPitrModeReply) GetMessageType() api.MessageType {
3318 return api.ReplyMessage
3321 func (m *OneShowPitrModeReply) Size() int {
3326 size += 4 // m.Retval
3327 size += 1 // m.IsEnable
3330 func (m *OneShowPitrModeReply) Marshal(b []byte) ([]byte, error) {
3331 var buf *codec.Buffer
3333 buf = codec.NewBuffer(make([]byte, m.Size()))
3335 buf = codec.NewBuffer(b)
3337 buf.EncodeUint32(uint32(m.Retval))
3338 buf.EncodeBool(m.IsEnable)
3339 return buf.Bytes(), nil
3341 func (m *OneShowPitrModeReply) Unmarshal(b []byte) error {
3342 buf := codec.NewBuffer(b)
3343 m.Retval = int32(buf.DecodeUint32())
3344 m.IsEnable = buf.DecodeBool()
3348 // OneShowXtrMode defines message 'one_show_xtr_mode'.
3349 type OneShowXtrMode struct{}
3351 func (m *OneShowXtrMode) Reset() { *m = OneShowXtrMode{} }
3352 func (*OneShowXtrMode) GetMessageName() string { return "one_show_xtr_mode" }
3353 func (*OneShowXtrMode) GetCrcString() string { return "51077d14" }
3354 func (*OneShowXtrMode) GetMessageType() api.MessageType {
3355 return api.RequestMessage
3358 func (m *OneShowXtrMode) Size() int {
3365 func (m *OneShowXtrMode) Marshal(b []byte) ([]byte, error) {
3366 var buf *codec.Buffer
3368 buf = codec.NewBuffer(make([]byte, m.Size()))
3370 buf = codec.NewBuffer(b)
3372 return buf.Bytes(), nil
3374 func (m *OneShowXtrMode) Unmarshal(b []byte) error {
3378 // OneShowXtrModeReply defines message 'one_show_xtr_mode_reply'.
3379 type OneShowXtrModeReply struct {
3380 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3381 IsEnable bool `binapi:"bool,name=is_enable" json:"is_enable,omitempty"`
3384 func (m *OneShowXtrModeReply) Reset() { *m = OneShowXtrModeReply{} }
3385 func (*OneShowXtrModeReply) GetMessageName() string { return "one_show_xtr_mode_reply" }
3386 func (*OneShowXtrModeReply) GetCrcString() string { return "f15abb16" }
3387 func (*OneShowXtrModeReply) GetMessageType() api.MessageType {
3388 return api.ReplyMessage
3391 func (m *OneShowXtrModeReply) Size() int {
3396 size += 4 // m.Retval
3397 size += 1 // m.IsEnable
3400 func (m *OneShowXtrModeReply) Marshal(b []byte) ([]byte, error) {
3401 var buf *codec.Buffer
3403 buf = codec.NewBuffer(make([]byte, m.Size()))
3405 buf = codec.NewBuffer(b)
3407 buf.EncodeUint32(uint32(m.Retval))
3408 buf.EncodeBool(m.IsEnable)
3409 return buf.Bytes(), nil
3411 func (m *OneShowXtrModeReply) Unmarshal(b []byte) error {
3412 buf := codec.NewBuffer(b)
3413 m.Retval = int32(buf.DecodeUint32())
3414 m.IsEnable = buf.DecodeBool()
3418 // OneStatsDetails defines message 'one_stats_details'.
3419 type OneStatsDetails struct {
3420 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
3421 Deid lisp_types.Eid `binapi:"eid,name=deid" json:"deid,omitempty"`
3422 Seid lisp_types.Eid `binapi:"eid,name=seid" json:"seid,omitempty"`
3423 Rloc ip_types.Address `binapi:"address,name=rloc" json:"rloc,omitempty"`
3424 Lloc ip_types.Address `binapi:"address,name=lloc" json:"lloc,omitempty"`
3425 PktCount uint32 `binapi:"u32,name=pkt_count" json:"pkt_count,omitempty"`
3426 Bytes uint32 `binapi:"u32,name=bytes" json:"bytes,omitempty"`
3429 func (m *OneStatsDetails) Reset() { *m = OneStatsDetails{} }
3430 func (*OneStatsDetails) GetMessageName() string { return "one_stats_details" }
3431 func (*OneStatsDetails) GetCrcString() string { return "ff6ef238" }
3432 func (*OneStatsDetails) GetMessageType() api.MessageType {
3433 return api.ReplyMessage
3436 func (m *OneStatsDetails) Size() int {
3442 size += 1 // m.Deid.Type
3443 size += 1 * 6 // m.Deid.Address
3444 size += 1 // m.Seid.Type
3445 size += 1 * 6 // m.Seid.Address
3446 size += 1 // m.Rloc.Af
3447 size += 1 * 16 // m.Rloc.Un
3448 size += 1 // m.Lloc.Af
3449 size += 1 * 16 // m.Lloc.Un
3450 size += 4 // m.PktCount
3451 size += 4 // m.Bytes
3454 func (m *OneStatsDetails) Marshal(b []byte) ([]byte, error) {
3455 var buf *codec.Buffer
3457 buf = codec.NewBuffer(make([]byte, m.Size()))
3459 buf = codec.NewBuffer(b)
3461 buf.EncodeUint32(uint32(m.Vni))
3462 buf.EncodeUint8(uint8(m.Deid.Type))
3463 buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 0)
3464 buf.EncodeUint8(uint8(m.Seid.Type))
3465 buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 0)
3466 buf.EncodeUint8(uint8(m.Rloc.Af))
3467 buf.EncodeBytes(m.Rloc.Un.XXX_UnionData[:], 0)
3468 buf.EncodeUint8(uint8(m.Lloc.Af))
3469 buf.EncodeBytes(m.Lloc.Un.XXX_UnionData[:], 0)
3470 buf.EncodeUint32(uint32(m.PktCount))
3471 buf.EncodeUint32(uint32(m.Bytes))
3472 return buf.Bytes(), nil
3474 func (m *OneStatsDetails) Unmarshal(b []byte) error {
3475 buf := codec.NewBuffer(b)
3476 m.Vni = buf.DecodeUint32()
3477 m.Deid.Type = lisp_types.EidType(buf.DecodeUint8())
3478 copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
3479 m.Seid.Type = lisp_types.EidType(buf.DecodeUint8())
3480 copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
3481 m.Rloc.Af = ip_types.AddressFamily(buf.DecodeUint8())
3482 copy(m.Rloc.Un.XXX_UnionData[:], buf.DecodeBytes(16))
3483 m.Lloc.Af = ip_types.AddressFamily(buf.DecodeUint8())
3484 copy(m.Lloc.Un.XXX_UnionData[:], buf.DecodeBytes(16))
3485 m.PktCount = buf.DecodeUint32()
3486 m.Bytes = buf.DecodeUint32()
3490 // OneStatsDump defines message 'one_stats_dump'.
3491 type OneStatsDump struct{}
3493 func (m *OneStatsDump) Reset() { *m = OneStatsDump{} }
3494 func (*OneStatsDump) GetMessageName() string { return "one_stats_dump" }
3495 func (*OneStatsDump) GetCrcString() string { return "51077d14" }
3496 func (*OneStatsDump) GetMessageType() api.MessageType {
3497 return api.RequestMessage
3500 func (m *OneStatsDump) Size() int {
3507 func (m *OneStatsDump) Marshal(b []byte) ([]byte, error) {
3508 var buf *codec.Buffer
3510 buf = codec.NewBuffer(make([]byte, m.Size()))
3512 buf = codec.NewBuffer(b)
3514 return buf.Bytes(), nil
3516 func (m *OneStatsDump) Unmarshal(b []byte) error {
3520 // OneStatsEnableDisable defines message 'one_stats_enable_disable'.
3521 type OneStatsEnableDisable struct {
3522 IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
3525 func (m *OneStatsEnableDisable) Reset() { *m = OneStatsEnableDisable{} }
3526 func (*OneStatsEnableDisable) GetMessageName() string { return "one_stats_enable_disable" }
3527 func (*OneStatsEnableDisable) GetCrcString() string { return "c264d7bf" }
3528 func (*OneStatsEnableDisable) GetMessageType() api.MessageType {
3529 return api.RequestMessage
3532 func (m *OneStatsEnableDisable) Size() int {
3537 size += 1 // m.IsEnable
3540 func (m *OneStatsEnableDisable) Marshal(b []byte) ([]byte, error) {
3541 var buf *codec.Buffer
3543 buf = codec.NewBuffer(make([]byte, m.Size()))
3545 buf = codec.NewBuffer(b)
3547 buf.EncodeBool(m.IsEnable)
3548 return buf.Bytes(), nil
3550 func (m *OneStatsEnableDisable) Unmarshal(b []byte) error {
3551 buf := codec.NewBuffer(b)
3552 m.IsEnable = buf.DecodeBool()
3556 // OneStatsEnableDisableReply defines message 'one_stats_enable_disable_reply'.
3557 type OneStatsEnableDisableReply struct {
3558 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3561 func (m *OneStatsEnableDisableReply) Reset() { *m = OneStatsEnableDisableReply{} }
3562 func (*OneStatsEnableDisableReply) GetMessageName() string { return "one_stats_enable_disable_reply" }
3563 func (*OneStatsEnableDisableReply) GetCrcString() string { return "e8d4e804" }
3564 func (*OneStatsEnableDisableReply) GetMessageType() api.MessageType {
3565 return api.ReplyMessage
3568 func (m *OneStatsEnableDisableReply) Size() int {
3573 size += 4 // m.Retval
3576 func (m *OneStatsEnableDisableReply) Marshal(b []byte) ([]byte, error) {
3577 var buf *codec.Buffer
3579 buf = codec.NewBuffer(make([]byte, m.Size()))
3581 buf = codec.NewBuffer(b)
3583 buf.EncodeUint32(uint32(m.Retval))
3584 return buf.Bytes(), nil
3586 func (m *OneStatsEnableDisableReply) Unmarshal(b []byte) error {
3587 buf := codec.NewBuffer(b)
3588 m.Retval = int32(buf.DecodeUint32())
3592 // OneStatsFlush defines message 'one_stats_flush'.
3593 type OneStatsFlush struct{}
3595 func (m *OneStatsFlush) Reset() { *m = OneStatsFlush{} }
3596 func (*OneStatsFlush) GetMessageName() string { return "one_stats_flush" }
3597 func (*OneStatsFlush) GetCrcString() string { return "51077d14" }
3598 func (*OneStatsFlush) GetMessageType() api.MessageType {
3599 return api.RequestMessage
3602 func (m *OneStatsFlush) Size() int {
3609 func (m *OneStatsFlush) Marshal(b []byte) ([]byte, error) {
3610 var buf *codec.Buffer
3612 buf = codec.NewBuffer(make([]byte, m.Size()))
3614 buf = codec.NewBuffer(b)
3616 return buf.Bytes(), nil
3618 func (m *OneStatsFlush) Unmarshal(b []byte) error {
3622 // OneStatsFlushReply defines message 'one_stats_flush_reply'.
3623 type OneStatsFlushReply struct {
3624 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3627 func (m *OneStatsFlushReply) Reset() { *m = OneStatsFlushReply{} }
3628 func (*OneStatsFlushReply) GetMessageName() string { return "one_stats_flush_reply" }
3629 func (*OneStatsFlushReply) GetCrcString() string { return "e8d4e804" }
3630 func (*OneStatsFlushReply) GetMessageType() api.MessageType {
3631 return api.ReplyMessage
3634 func (m *OneStatsFlushReply) Size() int {
3639 size += 4 // m.Retval
3642 func (m *OneStatsFlushReply) Marshal(b []byte) ([]byte, error) {
3643 var buf *codec.Buffer
3645 buf = codec.NewBuffer(make([]byte, m.Size()))
3647 buf = codec.NewBuffer(b)
3649 buf.EncodeUint32(uint32(m.Retval))
3650 return buf.Bytes(), nil
3652 func (m *OneStatsFlushReply) Unmarshal(b []byte) error {
3653 buf := codec.NewBuffer(b)
3654 m.Retval = int32(buf.DecodeUint32())
3658 // OneUsePetr defines message 'one_use_petr'.
3659 type OneUsePetr struct {
3660 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
3661 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
3664 func (m *OneUsePetr) Reset() { *m = OneUsePetr{} }
3665 func (*OneUsePetr) GetMessageName() string { return "one_use_petr" }
3666 func (*OneUsePetr) GetCrcString() string { return "9e141831" }
3667 func (*OneUsePetr) GetMessageType() api.MessageType {
3668 return api.RequestMessage
3671 func (m *OneUsePetr) Size() int {
3676 size += 1 // m.IPAddress.Af
3677 size += 1 * 16 // m.IPAddress.Un
3678 size += 1 // m.IsAdd
3681 func (m *OneUsePetr) Marshal(b []byte) ([]byte, error) {
3682 var buf *codec.Buffer
3684 buf = codec.NewBuffer(make([]byte, m.Size()))
3686 buf = codec.NewBuffer(b)
3688 buf.EncodeUint8(uint8(m.IPAddress.Af))
3689 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
3690 buf.EncodeBool(m.IsAdd)
3691 return buf.Bytes(), nil
3693 func (m *OneUsePetr) Unmarshal(b []byte) error {
3694 buf := codec.NewBuffer(b)
3695 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
3696 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
3697 m.IsAdd = buf.DecodeBool()
3701 // OneUsePetrReply defines message 'one_use_petr_reply'.
3702 type OneUsePetrReply struct {
3703 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3706 func (m *OneUsePetrReply) Reset() { *m = OneUsePetrReply{} }
3707 func (*OneUsePetrReply) GetMessageName() string { return "one_use_petr_reply" }
3708 func (*OneUsePetrReply) GetCrcString() string { return "e8d4e804" }
3709 func (*OneUsePetrReply) GetMessageType() api.MessageType {
3710 return api.ReplyMessage
3713 func (m *OneUsePetrReply) Size() int {
3718 size += 4 // m.Retval
3721 func (m *OneUsePetrReply) Marshal(b []byte) ([]byte, error) {
3722 var buf *codec.Buffer
3724 buf = codec.NewBuffer(make([]byte, m.Size()))
3726 buf = codec.NewBuffer(b)
3728 buf.EncodeUint32(uint32(m.Retval))
3729 return buf.Bytes(), nil
3731 func (m *OneUsePetrReply) Unmarshal(b []byte) error {
3732 buf := codec.NewBuffer(b)
3733 m.Retval = int32(buf.DecodeUint32())
3737 // ShowOneMapRegisterFallbackThreshold defines message 'show_one_map_register_fallback_threshold'.
3738 type ShowOneMapRegisterFallbackThreshold struct{}
3740 func (m *ShowOneMapRegisterFallbackThreshold) Reset() { *m = ShowOneMapRegisterFallbackThreshold{} }
3741 func (*ShowOneMapRegisterFallbackThreshold) GetMessageName() string {
3742 return "show_one_map_register_fallback_threshold"
3744 func (*ShowOneMapRegisterFallbackThreshold) GetCrcString() string { return "51077d14" }
3745 func (*ShowOneMapRegisterFallbackThreshold) GetMessageType() api.MessageType {
3746 return api.RequestMessage
3749 func (m *ShowOneMapRegisterFallbackThreshold) Size() int {
3756 func (m *ShowOneMapRegisterFallbackThreshold) Marshal(b []byte) ([]byte, error) {
3757 var buf *codec.Buffer
3759 buf = codec.NewBuffer(make([]byte, m.Size()))
3761 buf = codec.NewBuffer(b)
3763 return buf.Bytes(), nil
3765 func (m *ShowOneMapRegisterFallbackThreshold) Unmarshal(b []byte) error {
3769 // ShowOneMapRegisterFallbackThresholdReply defines message 'show_one_map_register_fallback_threshold_reply'.
3770 type ShowOneMapRegisterFallbackThresholdReply struct {
3771 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3772 Value uint32 `binapi:"u32,name=value" json:"value,omitempty"`
3775 func (m *ShowOneMapRegisterFallbackThresholdReply) Reset() {
3776 *m = ShowOneMapRegisterFallbackThresholdReply{}
3778 func (*ShowOneMapRegisterFallbackThresholdReply) GetMessageName() string {
3779 return "show_one_map_register_fallback_threshold_reply"
3781 func (*ShowOneMapRegisterFallbackThresholdReply) GetCrcString() string { return "c93a9113" }
3782 func (*ShowOneMapRegisterFallbackThresholdReply) GetMessageType() api.MessageType {
3783 return api.ReplyMessage
3786 func (m *ShowOneMapRegisterFallbackThresholdReply) Size() int {
3791 size += 4 // m.Retval
3792 size += 4 // m.Value
3795 func (m *ShowOneMapRegisterFallbackThresholdReply) Marshal(b []byte) ([]byte, error) {
3796 var buf *codec.Buffer
3798 buf = codec.NewBuffer(make([]byte, m.Size()))
3800 buf = codec.NewBuffer(b)
3802 buf.EncodeUint32(uint32(m.Retval))
3803 buf.EncodeUint32(uint32(m.Value))
3804 return buf.Bytes(), nil
3806 func (m *ShowOneMapRegisterFallbackThresholdReply) Unmarshal(b []byte) error {
3807 buf := codec.NewBuffer(b)
3808 m.Retval = int32(buf.DecodeUint32())
3809 m.Value = buf.DecodeUint32()
3813 // ShowOneMapRegisterState defines message 'show_one_map_register_state'.
3814 type ShowOneMapRegisterState struct{}
3816 func (m *ShowOneMapRegisterState) Reset() { *m = ShowOneMapRegisterState{} }
3817 func (*ShowOneMapRegisterState) GetMessageName() string { return "show_one_map_register_state" }
3818 func (*ShowOneMapRegisterState) GetCrcString() string { return "51077d14" }
3819 func (*ShowOneMapRegisterState) GetMessageType() api.MessageType {
3820 return api.RequestMessage
3823 func (m *ShowOneMapRegisterState) Size() int {
3830 func (m *ShowOneMapRegisterState) Marshal(b []byte) ([]byte, error) {
3831 var buf *codec.Buffer
3833 buf = codec.NewBuffer(make([]byte, m.Size()))
3835 buf = codec.NewBuffer(b)
3837 return buf.Bytes(), nil
3839 func (m *ShowOneMapRegisterState) Unmarshal(b []byte) error {
3843 // ShowOneMapRegisterStateReply defines message 'show_one_map_register_state_reply'.
3844 type ShowOneMapRegisterStateReply struct {
3845 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3846 IsEnable bool `binapi:"bool,name=is_enable" json:"is_enable,omitempty"`
3849 func (m *ShowOneMapRegisterStateReply) Reset() { *m = ShowOneMapRegisterStateReply{} }
3850 func (*ShowOneMapRegisterStateReply) GetMessageName() string {
3851 return "show_one_map_register_state_reply"
3853 func (*ShowOneMapRegisterStateReply) GetCrcString() string { return "f15abb16" }
3854 func (*ShowOneMapRegisterStateReply) GetMessageType() api.MessageType {
3855 return api.ReplyMessage
3858 func (m *ShowOneMapRegisterStateReply) Size() int {
3863 size += 4 // m.Retval
3864 size += 1 // m.IsEnable
3867 func (m *ShowOneMapRegisterStateReply) Marshal(b []byte) ([]byte, error) {
3868 var buf *codec.Buffer
3870 buf = codec.NewBuffer(make([]byte, m.Size()))
3872 buf = codec.NewBuffer(b)
3874 buf.EncodeUint32(uint32(m.Retval))
3875 buf.EncodeBool(m.IsEnable)
3876 return buf.Bytes(), nil
3878 func (m *ShowOneMapRegisterStateReply) Unmarshal(b []byte) error {
3879 buf := codec.NewBuffer(b)
3880 m.Retval = int32(buf.DecodeUint32())
3881 m.IsEnable = buf.DecodeBool()
3885 // ShowOneMapRegisterTTL defines message 'show_one_map_register_ttl'.
3886 type ShowOneMapRegisterTTL struct{}
3888 func (m *ShowOneMapRegisterTTL) Reset() { *m = ShowOneMapRegisterTTL{} }
3889 func (*ShowOneMapRegisterTTL) GetMessageName() string { return "show_one_map_register_ttl" }
3890 func (*ShowOneMapRegisterTTL) GetCrcString() string { return "51077d14" }
3891 func (*ShowOneMapRegisterTTL) GetMessageType() api.MessageType {
3892 return api.RequestMessage
3895 func (m *ShowOneMapRegisterTTL) Size() int {
3902 func (m *ShowOneMapRegisterTTL) Marshal(b []byte) ([]byte, error) {
3903 var buf *codec.Buffer
3905 buf = codec.NewBuffer(make([]byte, m.Size()))
3907 buf = codec.NewBuffer(b)
3909 return buf.Bytes(), nil
3911 func (m *ShowOneMapRegisterTTL) Unmarshal(b []byte) error {
3915 // ShowOneMapRegisterTTLReply defines message 'show_one_map_register_ttl_reply'.
3916 type ShowOneMapRegisterTTLReply struct {
3917 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3918 TTL uint32 `binapi:"u32,name=ttl" json:"ttl,omitempty"`
3921 func (m *ShowOneMapRegisterTTLReply) Reset() { *m = ShowOneMapRegisterTTLReply{} }
3922 func (*ShowOneMapRegisterTTLReply) GetMessageName() string { return "show_one_map_register_ttl_reply" }
3923 func (*ShowOneMapRegisterTTLReply) GetCrcString() string { return "fa83dd66" }
3924 func (*ShowOneMapRegisterTTLReply) GetMessageType() api.MessageType {
3925 return api.ReplyMessage
3928 func (m *ShowOneMapRegisterTTLReply) Size() int {
3933 size += 4 // m.Retval
3937 func (m *ShowOneMapRegisterTTLReply) Marshal(b []byte) ([]byte, error) {
3938 var buf *codec.Buffer
3940 buf = codec.NewBuffer(make([]byte, m.Size()))
3942 buf = codec.NewBuffer(b)
3944 buf.EncodeUint32(uint32(m.Retval))
3945 buf.EncodeUint32(uint32(m.TTL))
3946 return buf.Bytes(), nil
3948 func (m *ShowOneMapRegisterTTLReply) Unmarshal(b []byte) error {
3949 buf := codec.NewBuffer(b)
3950 m.Retval = int32(buf.DecodeUint32())
3951 m.TTL = buf.DecodeUint32()
3955 // ShowOneMapRequestMode defines message 'show_one_map_request_mode'.
3956 type ShowOneMapRequestMode struct{}
3958 func (m *ShowOneMapRequestMode) Reset() { *m = ShowOneMapRequestMode{} }
3959 func (*ShowOneMapRequestMode) GetMessageName() string { return "show_one_map_request_mode" }
3960 func (*ShowOneMapRequestMode) GetCrcString() string { return "51077d14" }
3961 func (*ShowOneMapRequestMode) GetMessageType() api.MessageType {
3962 return api.RequestMessage
3965 func (m *ShowOneMapRequestMode) Size() int {
3972 func (m *ShowOneMapRequestMode) Marshal(b []byte) ([]byte, error) {
3973 var buf *codec.Buffer
3975 buf = codec.NewBuffer(make([]byte, m.Size()))
3977 buf = codec.NewBuffer(b)
3979 return buf.Bytes(), nil
3981 func (m *ShowOneMapRequestMode) Unmarshal(b []byte) error {
3985 // ShowOneMapRequestModeReply defines message 'show_one_map_request_mode_reply'.
3986 type ShowOneMapRequestModeReply struct {
3987 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3988 Mode OneMapMode `binapi:"one_map_mode,name=mode" json:"mode,omitempty"`
3991 func (m *ShowOneMapRequestModeReply) Reset() { *m = ShowOneMapRequestModeReply{} }
3992 func (*ShowOneMapRequestModeReply) GetMessageName() string { return "show_one_map_request_mode_reply" }
3993 func (*ShowOneMapRequestModeReply) GetCrcString() string { return "d41f3c1d" }
3994 func (*ShowOneMapRequestModeReply) GetMessageType() api.MessageType {
3995 return api.ReplyMessage
3998 func (m *ShowOneMapRequestModeReply) Size() int {
4003 size += 4 // m.Retval
4007 func (m *ShowOneMapRequestModeReply) Marshal(b []byte) ([]byte, error) {
4008 var buf *codec.Buffer
4010 buf = codec.NewBuffer(make([]byte, m.Size()))
4012 buf = codec.NewBuffer(b)
4014 buf.EncodeUint32(uint32(m.Retval))
4015 buf.EncodeUint32(uint32(m.Mode))
4016 return buf.Bytes(), nil
4018 func (m *ShowOneMapRequestModeReply) Unmarshal(b []byte) error {
4019 buf := codec.NewBuffer(b)
4020 m.Retval = int32(buf.DecodeUint32())
4021 m.Mode = OneMapMode(buf.DecodeUint32())
4025 // ShowOneNshMapping defines message 'show_one_nsh_mapping'.
4026 type ShowOneNshMapping struct{}
4028 func (m *ShowOneNshMapping) Reset() { *m = ShowOneNshMapping{} }
4029 func (*ShowOneNshMapping) GetMessageName() string { return "show_one_nsh_mapping" }
4030 func (*ShowOneNshMapping) GetCrcString() string { return "51077d14" }
4031 func (*ShowOneNshMapping) GetMessageType() api.MessageType {
4032 return api.RequestMessage
4035 func (m *ShowOneNshMapping) Size() int {
4042 func (m *ShowOneNshMapping) Marshal(b []byte) ([]byte, error) {
4043 var buf *codec.Buffer
4045 buf = codec.NewBuffer(make([]byte, m.Size()))
4047 buf = codec.NewBuffer(b)
4049 return buf.Bytes(), nil
4051 func (m *ShowOneNshMapping) Unmarshal(b []byte) error {
4055 // ShowOneNshMappingReply defines message 'show_one_nsh_mapping_reply'.
4056 type ShowOneNshMappingReply struct {
4057 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
4058 IsSet bool `binapi:"bool,name=is_set" json:"is_set,omitempty"`
4059 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
4062 func (m *ShowOneNshMappingReply) Reset() { *m = ShowOneNshMappingReply{} }
4063 func (*ShowOneNshMappingReply) GetMessageName() string { return "show_one_nsh_mapping_reply" }
4064 func (*ShowOneNshMappingReply) GetCrcString() string { return "46478c02" }
4065 func (*ShowOneNshMappingReply) GetMessageType() api.MessageType {
4066 return api.ReplyMessage
4069 func (m *ShowOneNshMappingReply) Size() int {
4074 size += 4 // m.Retval
4075 size += 1 // m.IsSet
4076 size += 64 // m.LocatorSetName
4079 func (m *ShowOneNshMappingReply) Marshal(b []byte) ([]byte, error) {
4080 var buf *codec.Buffer
4082 buf = codec.NewBuffer(make([]byte, m.Size()))
4084 buf = codec.NewBuffer(b)
4086 buf.EncodeUint32(uint32(m.Retval))
4087 buf.EncodeBool(m.IsSet)
4088 buf.EncodeString(m.LocatorSetName, 64)
4089 return buf.Bytes(), nil
4091 func (m *ShowOneNshMappingReply) Unmarshal(b []byte) error {
4092 buf := codec.NewBuffer(b)
4093 m.Retval = int32(buf.DecodeUint32())
4094 m.IsSet = buf.DecodeBool()
4095 m.LocatorSetName = buf.DecodeString(64)
4099 // ShowOnePitr defines message 'show_one_pitr'.
4100 type ShowOnePitr struct{}
4102 func (m *ShowOnePitr) Reset() { *m = ShowOnePitr{} }
4103 func (*ShowOnePitr) GetMessageName() string { return "show_one_pitr" }
4104 func (*ShowOnePitr) GetCrcString() string { return "51077d14" }
4105 func (*ShowOnePitr) GetMessageType() api.MessageType {
4106 return api.RequestMessage
4109 func (m *ShowOnePitr) Size() int {
4116 func (m *ShowOnePitr) Marshal(b []byte) ([]byte, error) {
4117 var buf *codec.Buffer
4119 buf = codec.NewBuffer(make([]byte, m.Size()))
4121 buf = codec.NewBuffer(b)
4123 return buf.Bytes(), nil
4125 func (m *ShowOnePitr) Unmarshal(b []byte) error {
4129 // ShowOnePitrReply defines message 'show_one_pitr_reply'.
4130 type ShowOnePitrReply struct {
4131 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
4132 Status bool `binapi:"bool,name=status" json:"status,omitempty"`
4133 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
4136 func (m *ShowOnePitrReply) Reset() { *m = ShowOnePitrReply{} }
4137 func (*ShowOnePitrReply) GetMessageName() string { return "show_one_pitr_reply" }
4138 func (*ShowOnePitrReply) GetCrcString() string { return "a2d1a49f" }
4139 func (*ShowOnePitrReply) GetMessageType() api.MessageType {
4140 return api.ReplyMessage
4143 func (m *ShowOnePitrReply) Size() int {
4148 size += 4 // m.Retval
4149 size += 1 // m.Status
4150 size += 64 // m.LocatorSetName
4153 func (m *ShowOnePitrReply) Marshal(b []byte) ([]byte, error) {
4154 var buf *codec.Buffer
4156 buf = codec.NewBuffer(make([]byte, m.Size()))
4158 buf = codec.NewBuffer(b)
4160 buf.EncodeUint32(uint32(m.Retval))
4161 buf.EncodeBool(m.Status)
4162 buf.EncodeString(m.LocatorSetName, 64)
4163 return buf.Bytes(), nil
4165 func (m *ShowOnePitrReply) Unmarshal(b []byte) error {
4166 buf := codec.NewBuffer(b)
4167 m.Retval = int32(buf.DecodeUint32())
4168 m.Status = buf.DecodeBool()
4169 m.LocatorSetName = buf.DecodeString(64)
4173 // ShowOneRlocProbeState defines message 'show_one_rloc_probe_state'.
4174 type ShowOneRlocProbeState struct{}
4176 func (m *ShowOneRlocProbeState) Reset() { *m = ShowOneRlocProbeState{} }
4177 func (*ShowOneRlocProbeState) GetMessageName() string { return "show_one_rloc_probe_state" }
4178 func (*ShowOneRlocProbeState) GetCrcString() string { return "51077d14" }
4179 func (*ShowOneRlocProbeState) GetMessageType() api.MessageType {
4180 return api.RequestMessage
4183 func (m *ShowOneRlocProbeState) Size() int {
4190 func (m *ShowOneRlocProbeState) Marshal(b []byte) ([]byte, error) {
4191 var buf *codec.Buffer
4193 buf = codec.NewBuffer(make([]byte, m.Size()))
4195 buf = codec.NewBuffer(b)
4197 return buf.Bytes(), nil
4199 func (m *ShowOneRlocProbeState) Unmarshal(b []byte) error {
4203 // ShowOneRlocProbeStateReply defines message 'show_one_rloc_probe_state_reply'.
4204 type ShowOneRlocProbeStateReply struct {
4205 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
4206 IsEnable bool `binapi:"bool,name=is_enable" json:"is_enable,omitempty"`
4209 func (m *ShowOneRlocProbeStateReply) Reset() { *m = ShowOneRlocProbeStateReply{} }
4210 func (*ShowOneRlocProbeStateReply) GetMessageName() string { return "show_one_rloc_probe_state_reply" }
4211 func (*ShowOneRlocProbeStateReply) GetCrcString() string { return "f15abb16" }
4212 func (*ShowOneRlocProbeStateReply) GetMessageType() api.MessageType {
4213 return api.ReplyMessage
4216 func (m *ShowOneRlocProbeStateReply) Size() int {
4221 size += 4 // m.Retval
4222 size += 1 // m.IsEnable
4225 func (m *ShowOneRlocProbeStateReply) Marshal(b []byte) ([]byte, error) {
4226 var buf *codec.Buffer
4228 buf = codec.NewBuffer(make([]byte, m.Size()))
4230 buf = codec.NewBuffer(b)
4232 buf.EncodeUint32(uint32(m.Retval))
4233 buf.EncodeBool(m.IsEnable)
4234 return buf.Bytes(), nil
4236 func (m *ShowOneRlocProbeStateReply) Unmarshal(b []byte) error {
4237 buf := codec.NewBuffer(b)
4238 m.Retval = int32(buf.DecodeUint32())
4239 m.IsEnable = buf.DecodeBool()
4243 // ShowOneStatsEnableDisable defines message 'show_one_stats_enable_disable'.
4244 type ShowOneStatsEnableDisable struct{}
4246 func (m *ShowOneStatsEnableDisable) Reset() { *m = ShowOneStatsEnableDisable{} }
4247 func (*ShowOneStatsEnableDisable) GetMessageName() string { return "show_one_stats_enable_disable" }
4248 func (*ShowOneStatsEnableDisable) GetCrcString() string { return "51077d14" }
4249 func (*ShowOneStatsEnableDisable) GetMessageType() api.MessageType {
4250 return api.RequestMessage
4253 func (m *ShowOneStatsEnableDisable) Size() int {
4260 func (m *ShowOneStatsEnableDisable) Marshal(b []byte) ([]byte, error) {
4261 var buf *codec.Buffer
4263 buf = codec.NewBuffer(make([]byte, m.Size()))
4265 buf = codec.NewBuffer(b)
4267 return buf.Bytes(), nil
4269 func (m *ShowOneStatsEnableDisable) Unmarshal(b []byte) error {
4273 // ShowOneStatsEnableDisableReply defines message 'show_one_stats_enable_disable_reply'.
4274 type ShowOneStatsEnableDisableReply struct {
4275 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
4276 IsEnable bool `binapi:"bool,name=is_enable" json:"is_enable,omitempty"`
4279 func (m *ShowOneStatsEnableDisableReply) Reset() { *m = ShowOneStatsEnableDisableReply{} }
4280 func (*ShowOneStatsEnableDisableReply) GetMessageName() string {
4281 return "show_one_stats_enable_disable_reply"
4283 func (*ShowOneStatsEnableDisableReply) GetCrcString() string { return "f15abb16" }
4284 func (*ShowOneStatsEnableDisableReply) GetMessageType() api.MessageType {
4285 return api.ReplyMessage
4288 func (m *ShowOneStatsEnableDisableReply) Size() int {
4293 size += 4 // m.Retval
4294 size += 1 // m.IsEnable
4297 func (m *ShowOneStatsEnableDisableReply) Marshal(b []byte) ([]byte, error) {
4298 var buf *codec.Buffer
4300 buf = codec.NewBuffer(make([]byte, m.Size()))
4302 buf = codec.NewBuffer(b)
4304 buf.EncodeUint32(uint32(m.Retval))
4305 buf.EncodeBool(m.IsEnable)
4306 return buf.Bytes(), nil
4308 func (m *ShowOneStatsEnableDisableReply) Unmarshal(b []byte) error {
4309 buf := codec.NewBuffer(b)
4310 m.Retval = int32(buf.DecodeUint32())
4311 m.IsEnable = buf.DecodeBool()
4315 // ShowOneStatus defines message 'show_one_status'.
4316 type ShowOneStatus struct{}
4318 func (m *ShowOneStatus) Reset() { *m = ShowOneStatus{} }
4319 func (*ShowOneStatus) GetMessageName() string { return "show_one_status" }
4320 func (*ShowOneStatus) GetCrcString() string { return "51077d14" }
4321 func (*ShowOneStatus) GetMessageType() api.MessageType {
4322 return api.RequestMessage
4325 func (m *ShowOneStatus) Size() int {
4332 func (m *ShowOneStatus) Marshal(b []byte) ([]byte, error) {
4333 var buf *codec.Buffer
4335 buf = codec.NewBuffer(make([]byte, m.Size()))
4337 buf = codec.NewBuffer(b)
4339 return buf.Bytes(), nil
4341 func (m *ShowOneStatus) Unmarshal(b []byte) error {
4345 // ShowOneStatusReply defines message 'show_one_status_reply'.
4346 type ShowOneStatusReply struct {
4347 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
4348 FeatureStatus bool `binapi:"bool,name=feature_status" json:"feature_status,omitempty"`
4349 GpeStatus bool `binapi:"bool,name=gpe_status" json:"gpe_status,omitempty"`
4352 func (m *ShowOneStatusReply) Reset() { *m = ShowOneStatusReply{} }
4353 func (*ShowOneStatusReply) GetMessageName() string { return "show_one_status_reply" }
4354 func (*ShowOneStatusReply) GetCrcString() string { return "961bb25b" }
4355 func (*ShowOneStatusReply) GetMessageType() api.MessageType {
4356 return api.ReplyMessage
4359 func (m *ShowOneStatusReply) Size() int {
4364 size += 4 // m.Retval
4365 size += 1 // m.FeatureStatus
4366 size += 1 // m.GpeStatus
4369 func (m *ShowOneStatusReply) Marshal(b []byte) ([]byte, error) {
4370 var buf *codec.Buffer
4372 buf = codec.NewBuffer(make([]byte, m.Size()))
4374 buf = codec.NewBuffer(b)
4376 buf.EncodeUint32(uint32(m.Retval))
4377 buf.EncodeBool(m.FeatureStatus)
4378 buf.EncodeBool(m.GpeStatus)
4379 return buf.Bytes(), nil
4381 func (m *ShowOneStatusReply) Unmarshal(b []byte) error {
4382 buf := codec.NewBuffer(b)
4383 m.Retval = int32(buf.DecodeUint32())
4384 m.FeatureStatus = buf.DecodeBool()
4385 m.GpeStatus = buf.DecodeBool()
4389 // ShowOneUsePetr defines message 'show_one_use_petr'.
4390 type ShowOneUsePetr struct{}
4392 func (m *ShowOneUsePetr) Reset() { *m = ShowOneUsePetr{} }
4393 func (*ShowOneUsePetr) GetMessageName() string { return "show_one_use_petr" }
4394 func (*ShowOneUsePetr) GetCrcString() string { return "51077d14" }
4395 func (*ShowOneUsePetr) GetMessageType() api.MessageType {
4396 return api.RequestMessage
4399 func (m *ShowOneUsePetr) Size() int {
4406 func (m *ShowOneUsePetr) Marshal(b []byte) ([]byte, error) {
4407 var buf *codec.Buffer
4409 buf = codec.NewBuffer(make([]byte, m.Size()))
4411 buf = codec.NewBuffer(b)
4413 return buf.Bytes(), nil
4415 func (m *ShowOneUsePetr) Unmarshal(b []byte) error {
4419 // ShowOneUsePetrReply defines message 'show_one_use_petr_reply'.
4420 type ShowOneUsePetrReply struct {
4421 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
4422 Status bool `binapi:"bool,name=status" json:"status,omitempty"`
4423 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
4426 func (m *ShowOneUsePetrReply) Reset() { *m = ShowOneUsePetrReply{} }
4427 func (*ShowOneUsePetrReply) GetMessageName() string { return "show_one_use_petr_reply" }
4428 func (*ShowOneUsePetrReply) GetCrcString() string { return "10e744a6" }
4429 func (*ShowOneUsePetrReply) GetMessageType() api.MessageType {
4430 return api.ReplyMessage
4433 func (m *ShowOneUsePetrReply) Size() int {
4438 size += 4 // m.Retval
4439 size += 1 // m.Status
4440 size += 1 // m.IPAddress.Af
4441 size += 1 * 16 // m.IPAddress.Un
4444 func (m *ShowOneUsePetrReply) Marshal(b []byte) ([]byte, error) {
4445 var buf *codec.Buffer
4447 buf = codec.NewBuffer(make([]byte, m.Size()))
4449 buf = codec.NewBuffer(b)
4451 buf.EncodeUint32(uint32(m.Retval))
4452 buf.EncodeBool(m.Status)
4453 buf.EncodeUint8(uint8(m.IPAddress.Af))
4454 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
4455 return buf.Bytes(), nil
4457 func (m *ShowOneUsePetrReply) Unmarshal(b []byte) error {
4458 buf := codec.NewBuffer(b)
4459 m.Retval = int32(buf.DecodeUint32())
4460 m.Status = buf.DecodeBool()
4461 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
4462 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
4466 func init() { file_one_binapi_init() }
4467 func file_one_binapi_init() {
4468 api.RegisterMessage((*OneAddDelAdjacency)(nil), "one_add_del_adjacency_e48e7afe")
4469 api.RegisterMessage((*OneAddDelAdjacencyReply)(nil), "one_add_del_adjacency_reply_e8d4e804")
4470 api.RegisterMessage((*OneAddDelL2ArpEntry)(nil), "one_add_del_l2_arp_entry_33209078")
4471 api.RegisterMessage((*OneAddDelL2ArpEntryReply)(nil), "one_add_del_l2_arp_entry_reply_e8d4e804")
4472 api.RegisterMessage((*OneAddDelLocalEid)(nil), "one_add_del_local_eid_21f573bd")
4473 api.RegisterMessage((*OneAddDelLocalEidReply)(nil), "one_add_del_local_eid_reply_e8d4e804")
4474 api.RegisterMessage((*OneAddDelLocator)(nil), "one_add_del_locator_af4d8f13")
4475 api.RegisterMessage((*OneAddDelLocatorReply)(nil), "one_add_del_locator_reply_e8d4e804")
4476 api.RegisterMessage((*OneAddDelLocatorSet)(nil), "one_add_del_locator_set_6fcd6471")
4477 api.RegisterMessage((*OneAddDelLocatorSetReply)(nil), "one_add_del_locator_set_reply_b6666db4")
4478 api.RegisterMessage((*OneAddDelMapRequestItrRlocs)(nil), "one_add_del_map_request_itr_rlocs_6be88e45")
4479 api.RegisterMessage((*OneAddDelMapRequestItrRlocsReply)(nil), "one_add_del_map_request_itr_rlocs_reply_e8d4e804")
4480 api.RegisterMessage((*OneAddDelMapResolver)(nil), "one_add_del_map_resolver_6598ea7c")
4481 api.RegisterMessage((*OneAddDelMapResolverReply)(nil), "one_add_del_map_resolver_reply_e8d4e804")
4482 api.RegisterMessage((*OneAddDelMapServer)(nil), "one_add_del_map_server_6598ea7c")
4483 api.RegisterMessage((*OneAddDelMapServerReply)(nil), "one_add_del_map_server_reply_e8d4e804")
4484 api.RegisterMessage((*OneAddDelNdpEntry)(nil), "one_add_del_ndp_entry_d1629a2f")
4485 api.RegisterMessage((*OneAddDelNdpEntryReply)(nil), "one_add_del_ndp_entry_reply_e8d4e804")
4486 api.RegisterMessage((*OneAddDelRemoteMapping)(nil), "one_add_del_remote_mapping_fae8ed77")
4487 api.RegisterMessage((*OneAddDelRemoteMappingReply)(nil), "one_add_del_remote_mapping_reply_e8d4e804")
4488 api.RegisterMessage((*OneAdjacenciesGet)(nil), "one_adjacencies_get_8d1f2fe9")
4489 api.RegisterMessage((*OneAdjacenciesGetReply)(nil), "one_adjacencies_get_reply_a8ed89a5")
4490 api.RegisterMessage((*OneEidTableAddDelMap)(nil), "one_eid_table_add_del_map_9481416b")
4491 api.RegisterMessage((*OneEidTableAddDelMapReply)(nil), "one_eid_table_add_del_map_reply_e8d4e804")
4492 api.RegisterMessage((*OneEidTableDetails)(nil), "one_eid_table_details_4bc32e3a")
4493 api.RegisterMessage((*OneEidTableDump)(nil), "one_eid_table_dump_95151038")
4494 api.RegisterMessage((*OneEidTableMapDetails)(nil), "one_eid_table_map_details_0b6859e2")
4495 api.RegisterMessage((*OneEidTableMapDump)(nil), "one_eid_table_map_dump_d6cf0c3d")
4496 api.RegisterMessage((*OneEidTableVniDetails)(nil), "one_eid_table_vni_details_64abc01e")
4497 api.RegisterMessage((*OneEidTableVniDump)(nil), "one_eid_table_vni_dump_51077d14")
4498 api.RegisterMessage((*OneEnableDisable)(nil), "one_enable_disable_c264d7bf")
4499 api.RegisterMessage((*OneEnableDisablePetrMode)(nil), "one_enable_disable_petr_mode_c264d7bf")
4500 api.RegisterMessage((*OneEnableDisablePetrModeReply)(nil), "one_enable_disable_petr_mode_reply_e8d4e804")
4501 api.RegisterMessage((*OneEnableDisablePitrMode)(nil), "one_enable_disable_pitr_mode_c264d7bf")
4502 api.RegisterMessage((*OneEnableDisablePitrModeReply)(nil), "one_enable_disable_pitr_mode_reply_e8d4e804")
4503 api.RegisterMessage((*OneEnableDisableReply)(nil), "one_enable_disable_reply_e8d4e804")
4504 api.RegisterMessage((*OneEnableDisableXtrMode)(nil), "one_enable_disable_xtr_mode_c264d7bf")
4505 api.RegisterMessage((*OneEnableDisableXtrModeReply)(nil), "one_enable_disable_xtr_mode_reply_e8d4e804")
4506 api.RegisterMessage((*OneGetMapRequestItrRlocs)(nil), "one_get_map_request_itr_rlocs_51077d14")
4507 api.RegisterMessage((*OneGetMapRequestItrRlocsReply)(nil), "one_get_map_request_itr_rlocs_reply_76580f3a")
4508 api.RegisterMessage((*OneGetTransportProtocol)(nil), "one_get_transport_protocol_51077d14")
4509 api.RegisterMessage((*OneGetTransportProtocolReply)(nil), "one_get_transport_protocol_reply_62a28eb3")
4510 api.RegisterMessage((*OneL2ArpBdGet)(nil), "one_l2_arp_bd_get_51077d14")
4511 api.RegisterMessage((*OneL2ArpBdGetReply)(nil), "one_l2_arp_bd_get_reply_221ac888")
4512 api.RegisterMessage((*OneL2ArpEntriesGet)(nil), "one_l2_arp_entries_get_4d418cf4")
4513 api.RegisterMessage((*OneL2ArpEntriesGetReply)(nil), "one_l2_arp_entries_get_reply_b0a47bbe")
4514 api.RegisterMessage((*OneLocatorDetails)(nil), "one_locator_details_c0c4c2a7")
4515 api.RegisterMessage((*OneLocatorDump)(nil), "one_locator_dump_9b11076c")
4516 api.RegisterMessage((*OneLocatorSetDetails)(nil), "one_locator_set_details_5b33a105")
4517 api.RegisterMessage((*OneLocatorSetDump)(nil), "one_locator_set_dump_71190768")
4518 api.RegisterMessage((*OneMapRegisterEnableDisable)(nil), "one_map_register_enable_disable_c264d7bf")
4519 api.RegisterMessage((*OneMapRegisterEnableDisableReply)(nil), "one_map_register_enable_disable_reply_e8d4e804")
4520 api.RegisterMessage((*OneMapRegisterFallbackThreshold)(nil), "one_map_register_fallback_threshold_f7d4a475")
4521 api.RegisterMessage((*OneMapRegisterFallbackThresholdReply)(nil), "one_map_register_fallback_threshold_reply_e8d4e804")
4522 api.RegisterMessage((*OneMapRegisterSetTTL)(nil), "one_map_register_set_ttl_dd59f1f3")
4523 api.RegisterMessage((*OneMapRegisterSetTTLReply)(nil), "one_map_register_set_ttl_reply_e8d4e804")
4524 api.RegisterMessage((*OneMapRequestMode)(nil), "one_map_request_mode_ffa5d2f5")
4525 api.RegisterMessage((*OneMapRequestModeReply)(nil), "one_map_request_mode_reply_e8d4e804")
4526 api.RegisterMessage((*OneMapResolverDetails)(nil), "one_map_resolver_details_82a09deb")
4527 api.RegisterMessage((*OneMapResolverDump)(nil), "one_map_resolver_dump_51077d14")
4528 api.RegisterMessage((*OneMapServerDetails)(nil), "one_map_server_details_82a09deb")
4529 api.RegisterMessage((*OneMapServerDump)(nil), "one_map_server_dump_51077d14")
4530 api.RegisterMessage((*OneNdpBdGet)(nil), "one_ndp_bd_get_51077d14")
4531 api.RegisterMessage((*OneNdpBdGetReply)(nil), "one_ndp_bd_get_reply_221ac888")
4532 api.RegisterMessage((*OneNdpEntriesGet)(nil), "one_ndp_entries_get_4d418cf4")
4533 api.RegisterMessage((*OneNdpEntriesGetReply)(nil), "one_ndp_entries_get_reply_0bd34161")
4534 api.RegisterMessage((*OneNshSetLocatorSet)(nil), "one_nsh_set_locator_set_486e2b76")
4535 api.RegisterMessage((*OneNshSetLocatorSetReply)(nil), "one_nsh_set_locator_set_reply_e8d4e804")
4536 api.RegisterMessage((*OnePitrSetLocatorSet)(nil), "one_pitr_set_locator_set_486e2b76")
4537 api.RegisterMessage((*OnePitrSetLocatorSetReply)(nil), "one_pitr_set_locator_set_reply_e8d4e804")
4538 api.RegisterMessage((*OneRlocProbeEnableDisable)(nil), "one_rloc_probe_enable_disable_c264d7bf")
4539 api.RegisterMessage((*OneRlocProbeEnableDisableReply)(nil), "one_rloc_probe_enable_disable_reply_e8d4e804")
4540 api.RegisterMessage((*OneSetTransportProtocol)(nil), "one_set_transport_protocol_07b6b85f")
4541 api.RegisterMessage((*OneSetTransportProtocolReply)(nil), "one_set_transport_protocol_reply_e8d4e804")
4542 api.RegisterMessage((*OneShowPetrMode)(nil), "one_show_petr_mode_51077d14")
4543 api.RegisterMessage((*OneShowPetrModeReply)(nil), "one_show_petr_mode_reply_f15abb16")
4544 api.RegisterMessage((*OneShowPitrMode)(nil), "one_show_pitr_mode_51077d14")
4545 api.RegisterMessage((*OneShowPitrModeReply)(nil), "one_show_pitr_mode_reply_f15abb16")
4546 api.RegisterMessage((*OneShowXtrMode)(nil), "one_show_xtr_mode_51077d14")
4547 api.RegisterMessage((*OneShowXtrModeReply)(nil), "one_show_xtr_mode_reply_f15abb16")
4548 api.RegisterMessage((*OneStatsDetails)(nil), "one_stats_details_ff6ef238")
4549 api.RegisterMessage((*OneStatsDump)(nil), "one_stats_dump_51077d14")
4550 api.RegisterMessage((*OneStatsEnableDisable)(nil), "one_stats_enable_disable_c264d7bf")
4551 api.RegisterMessage((*OneStatsEnableDisableReply)(nil), "one_stats_enable_disable_reply_e8d4e804")
4552 api.RegisterMessage((*OneStatsFlush)(nil), "one_stats_flush_51077d14")
4553 api.RegisterMessage((*OneStatsFlushReply)(nil), "one_stats_flush_reply_e8d4e804")
4554 api.RegisterMessage((*OneUsePetr)(nil), "one_use_petr_9e141831")
4555 api.RegisterMessage((*OneUsePetrReply)(nil), "one_use_petr_reply_e8d4e804")
4556 api.RegisterMessage((*ShowOneMapRegisterFallbackThreshold)(nil), "show_one_map_register_fallback_threshold_51077d14")
4557 api.RegisterMessage((*ShowOneMapRegisterFallbackThresholdReply)(nil), "show_one_map_register_fallback_threshold_reply_c93a9113")
4558 api.RegisterMessage((*ShowOneMapRegisterState)(nil), "show_one_map_register_state_51077d14")
4559 api.RegisterMessage((*ShowOneMapRegisterStateReply)(nil), "show_one_map_register_state_reply_f15abb16")
4560 api.RegisterMessage((*ShowOneMapRegisterTTL)(nil), "show_one_map_register_ttl_51077d14")
4561 api.RegisterMessage((*ShowOneMapRegisterTTLReply)(nil), "show_one_map_register_ttl_reply_fa83dd66")
4562 api.RegisterMessage((*ShowOneMapRequestMode)(nil), "show_one_map_request_mode_51077d14")
4563 api.RegisterMessage((*ShowOneMapRequestModeReply)(nil), "show_one_map_request_mode_reply_d41f3c1d")
4564 api.RegisterMessage((*ShowOneNshMapping)(nil), "show_one_nsh_mapping_51077d14")
4565 api.RegisterMessage((*ShowOneNshMappingReply)(nil), "show_one_nsh_mapping_reply_46478c02")
4566 api.RegisterMessage((*ShowOnePitr)(nil), "show_one_pitr_51077d14")
4567 api.RegisterMessage((*ShowOnePitrReply)(nil), "show_one_pitr_reply_a2d1a49f")
4568 api.RegisterMessage((*ShowOneRlocProbeState)(nil), "show_one_rloc_probe_state_51077d14")
4569 api.RegisterMessage((*ShowOneRlocProbeStateReply)(nil), "show_one_rloc_probe_state_reply_f15abb16")
4570 api.RegisterMessage((*ShowOneStatsEnableDisable)(nil), "show_one_stats_enable_disable_51077d14")
4571 api.RegisterMessage((*ShowOneStatsEnableDisableReply)(nil), "show_one_stats_enable_disable_reply_f15abb16")
4572 api.RegisterMessage((*ShowOneStatus)(nil), "show_one_status_51077d14")
4573 api.RegisterMessage((*ShowOneStatusReply)(nil), "show_one_status_reply_961bb25b")
4574 api.RegisterMessage((*ShowOneUsePetr)(nil), "show_one_use_petr_51077d14")
4575 api.RegisterMessage((*ShowOneUsePetrReply)(nil), "show_one_use_petr_reply_10e744a6")
4578 // Messages returns list of all messages in this module.
4579 func AllMessages() []api.Message {
4580 return []api.Message{
4581 (*OneAddDelAdjacency)(nil),
4582 (*OneAddDelAdjacencyReply)(nil),
4583 (*OneAddDelL2ArpEntry)(nil),
4584 (*OneAddDelL2ArpEntryReply)(nil),
4585 (*OneAddDelLocalEid)(nil),
4586 (*OneAddDelLocalEidReply)(nil),
4587 (*OneAddDelLocator)(nil),
4588 (*OneAddDelLocatorReply)(nil),
4589 (*OneAddDelLocatorSet)(nil),
4590 (*OneAddDelLocatorSetReply)(nil),
4591 (*OneAddDelMapRequestItrRlocs)(nil),
4592 (*OneAddDelMapRequestItrRlocsReply)(nil),
4593 (*OneAddDelMapResolver)(nil),
4594 (*OneAddDelMapResolverReply)(nil),
4595 (*OneAddDelMapServer)(nil),
4596 (*OneAddDelMapServerReply)(nil),
4597 (*OneAddDelNdpEntry)(nil),
4598 (*OneAddDelNdpEntryReply)(nil),
4599 (*OneAddDelRemoteMapping)(nil),
4600 (*OneAddDelRemoteMappingReply)(nil),
4601 (*OneAdjacenciesGet)(nil),
4602 (*OneAdjacenciesGetReply)(nil),
4603 (*OneEidTableAddDelMap)(nil),
4604 (*OneEidTableAddDelMapReply)(nil),
4605 (*OneEidTableDetails)(nil),
4606 (*OneEidTableDump)(nil),
4607 (*OneEidTableMapDetails)(nil),
4608 (*OneEidTableMapDump)(nil),
4609 (*OneEidTableVniDetails)(nil),
4610 (*OneEidTableVniDump)(nil),
4611 (*OneEnableDisable)(nil),
4612 (*OneEnableDisablePetrMode)(nil),
4613 (*OneEnableDisablePetrModeReply)(nil),
4614 (*OneEnableDisablePitrMode)(nil),
4615 (*OneEnableDisablePitrModeReply)(nil),
4616 (*OneEnableDisableReply)(nil),
4617 (*OneEnableDisableXtrMode)(nil),
4618 (*OneEnableDisableXtrModeReply)(nil),
4619 (*OneGetMapRequestItrRlocs)(nil),
4620 (*OneGetMapRequestItrRlocsReply)(nil),
4621 (*OneGetTransportProtocol)(nil),
4622 (*OneGetTransportProtocolReply)(nil),
4623 (*OneL2ArpBdGet)(nil),
4624 (*OneL2ArpBdGetReply)(nil),
4625 (*OneL2ArpEntriesGet)(nil),
4626 (*OneL2ArpEntriesGetReply)(nil),
4627 (*OneLocatorDetails)(nil),
4628 (*OneLocatorDump)(nil),
4629 (*OneLocatorSetDetails)(nil),
4630 (*OneLocatorSetDump)(nil),
4631 (*OneMapRegisterEnableDisable)(nil),
4632 (*OneMapRegisterEnableDisableReply)(nil),
4633 (*OneMapRegisterFallbackThreshold)(nil),
4634 (*OneMapRegisterFallbackThresholdReply)(nil),
4635 (*OneMapRegisterSetTTL)(nil),
4636 (*OneMapRegisterSetTTLReply)(nil),
4637 (*OneMapRequestMode)(nil),
4638 (*OneMapRequestModeReply)(nil),
4639 (*OneMapResolverDetails)(nil),
4640 (*OneMapResolverDump)(nil),
4641 (*OneMapServerDetails)(nil),
4642 (*OneMapServerDump)(nil),
4643 (*OneNdpBdGet)(nil),
4644 (*OneNdpBdGetReply)(nil),
4645 (*OneNdpEntriesGet)(nil),
4646 (*OneNdpEntriesGetReply)(nil),
4647 (*OneNshSetLocatorSet)(nil),
4648 (*OneNshSetLocatorSetReply)(nil),
4649 (*OnePitrSetLocatorSet)(nil),
4650 (*OnePitrSetLocatorSetReply)(nil),
4651 (*OneRlocProbeEnableDisable)(nil),
4652 (*OneRlocProbeEnableDisableReply)(nil),
4653 (*OneSetTransportProtocol)(nil),
4654 (*OneSetTransportProtocolReply)(nil),
4655 (*OneShowPetrMode)(nil),
4656 (*OneShowPetrModeReply)(nil),
4657 (*OneShowPitrMode)(nil),
4658 (*OneShowPitrModeReply)(nil),
4659 (*OneShowXtrMode)(nil),
4660 (*OneShowXtrModeReply)(nil),
4661 (*OneStatsDetails)(nil),
4662 (*OneStatsDump)(nil),
4663 (*OneStatsEnableDisable)(nil),
4664 (*OneStatsEnableDisableReply)(nil),
4665 (*OneStatsFlush)(nil),
4666 (*OneStatsFlushReply)(nil),
4668 (*OneUsePetrReply)(nil),
4669 (*ShowOneMapRegisterFallbackThreshold)(nil),
4670 (*ShowOneMapRegisterFallbackThresholdReply)(nil),
4671 (*ShowOneMapRegisterState)(nil),
4672 (*ShowOneMapRegisterStateReply)(nil),
4673 (*ShowOneMapRegisterTTL)(nil),
4674 (*ShowOneMapRegisterTTLReply)(nil),
4675 (*ShowOneMapRequestMode)(nil),
4676 (*ShowOneMapRequestModeReply)(nil),
4677 (*ShowOneNshMapping)(nil),
4678 (*ShowOneNshMappingReply)(nil),
4679 (*ShowOnePitr)(nil),
4680 (*ShowOnePitrReply)(nil),
4681 (*ShowOneRlocProbeState)(nil),
4682 (*ShowOneRlocProbeStateReply)(nil),
4683 (*ShowOneStatsEnableDisable)(nil),
4684 (*ShowOneStatsEnableDisableReply)(nil),
4685 (*ShowOneStatus)(nil),
4686 (*ShowOneStatusReply)(nil),
4687 (*ShowOneUsePetr)(nil),
4688 (*ShowOneUsePetrReply)(nil),