Improve binapi generator
[govpp.git] / binapi / one / one.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // versions:
3 //  binapi-generator: v0.4.0-dev
4 //  VPP:              20.05-release
5 // source: /usr/share/vpp/api/core/one.api.json
6
7 // Package one contains generated bindings for API file one.api.
8 //
9 // Contents:
10 //   2 enums
11 //   3 structs
12 // 108 messages
13 //
14 package one
15
16 import (
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"
23         "strconv"
24 )
25
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
31
32 const (
33         APIFile    = "one"
34         APIVersion = "2.0.0"
35         VersionCrc = 0x288aaf5d
36 )
37
38 // OneFilter defines enum 'one_filter'.
39 type OneFilter uint32
40
41 const (
42         ONE_FILTER_API_ALL    OneFilter = 0
43         ONE_FILTER_API_LOCAL  OneFilter = 1
44         ONE_FILTER_API_REMOTE OneFilter = 2
45 )
46
47 var (
48         OneFilter_name = map[uint32]string{
49                 0: "ONE_FILTER_API_ALL",
50                 1: "ONE_FILTER_API_LOCAL",
51                 2: "ONE_FILTER_API_REMOTE",
52         }
53         OneFilter_value = map[string]uint32{
54                 "ONE_FILTER_API_ALL":    0,
55                 "ONE_FILTER_API_LOCAL":  1,
56                 "ONE_FILTER_API_REMOTE": 2,
57         }
58 )
59
60 func (x OneFilter) String() string {
61         s, ok := OneFilter_name[uint32(x)]
62         if ok {
63                 return s
64         }
65         return "OneFilter(" + strconv.Itoa(int(x)) + ")"
66 }
67
68 // OneMapMode defines enum 'one_map_mode'.
69 type OneMapMode uint32
70
71 const (
72         ONE_MAP_MODE_API_DST_ONLY OneMapMode = 0
73         ONE_MAP_MODE_API_SRC_DST  OneMapMode = 1
74 )
75
76 var (
77         OneMapMode_name = map[uint32]string{
78                 0: "ONE_MAP_MODE_API_DST_ONLY",
79                 1: "ONE_MAP_MODE_API_SRC_DST",
80         }
81         OneMapMode_value = map[string]uint32{
82                 "ONE_MAP_MODE_API_DST_ONLY": 0,
83                 "ONE_MAP_MODE_API_SRC_DST":  1,
84         }
85 )
86
87 func (x OneMapMode) String() string {
88         s, ok := OneMapMode_name[uint32(x)]
89         if ok {
90                 return s
91         }
92         return "OneMapMode(" + strconv.Itoa(int(x)) + ")"
93 }
94
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"`
99 }
100
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"`
105 }
106
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"`
111 }
112
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"`
119 }
120
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
126 }
127
128 func (m *OneAddDelAdjacency) Size() int {
129         if m == nil {
130                 return 0
131         }
132         var size int
133         size += 1     // m.IsAdd
134         size += 4     // m.Vni
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
139         return size
140 }
141 func (m *OneAddDelAdjacency) Marshal(b []byte) ([]byte, error) {
142         var buf *codec.Buffer
143         if b == nil {
144                 buf = codec.NewBuffer(make([]byte, m.Size()))
145         } else {
146                 buf = codec.NewBuffer(b)
147         }
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
155 }
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))
164         return nil
165 }
166
167 // OneAddDelAdjacencyReply defines message 'one_add_del_adjacency_reply'.
168 type OneAddDelAdjacencyReply struct {
169         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
170 }
171
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
177 }
178
179 func (m *OneAddDelAdjacencyReply) Size() int {
180         if m == nil {
181                 return 0
182         }
183         var size int
184         size += 4 // m.Retval
185         return size
186 }
187 func (m *OneAddDelAdjacencyReply) Marshal(b []byte) ([]byte, error) {
188         var buf *codec.Buffer
189         if b == nil {
190                 buf = codec.NewBuffer(make([]byte, m.Size()))
191         } else {
192                 buf = codec.NewBuffer(b)
193         }
194         buf.EncodeUint32(uint32(m.Retval))
195         return buf.Bytes(), nil
196 }
197 func (m *OneAddDelAdjacencyReply) Unmarshal(b []byte) error {
198         buf := codec.NewBuffer(b)
199         m.Retval = int32(buf.DecodeUint32())
200         return nil
201 }
202
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"`
208 }
209
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
215 }
216
217 func (m *OneAddDelL2ArpEntry) Size() int {
218         if m == nil {
219                 return 0
220         }
221         var size int
222         size += 1     // m.IsAdd
223         size += 4     // m.Bd
224         size += 1 * 6 // m.Entry.Mac
225         size += 1 * 4 // m.Entry.IP4
226         return size
227 }
228 func (m *OneAddDelL2ArpEntry) Marshal(b []byte) ([]byte, error) {
229         var buf *codec.Buffer
230         if b == nil {
231                 buf = codec.NewBuffer(make([]byte, m.Size()))
232         } else {
233                 buf = codec.NewBuffer(b)
234         }
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
240 }
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))
247         return nil
248 }
249
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"`
253 }
254
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
260 }
261
262 func (m *OneAddDelL2ArpEntryReply) Size() int {
263         if m == nil {
264                 return 0
265         }
266         var size int
267         size += 4 // m.Retval
268         return size
269 }
270 func (m *OneAddDelL2ArpEntryReply) Marshal(b []byte) ([]byte, error) {
271         var buf *codec.Buffer
272         if b == nil {
273                 buf = codec.NewBuffer(make([]byte, m.Size()))
274         } else {
275                 buf = codec.NewBuffer(b)
276         }
277         buf.EncodeUint32(uint32(m.Retval))
278         return buf.Bytes(), nil
279 }
280 func (m *OneAddDelL2ArpEntryReply) Unmarshal(b []byte) error {
281         buf := codec.NewBuffer(b)
282         m.Retval = int32(buf.DecodeUint32())
283         return nil
284 }
285
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"`
293 }
294
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
300 }
301
302 func (m *OneAddDelLocalEid) Size() int {
303         if m == nil {
304                 return 0
305         }
306         var size int
307         size += 1      // m.IsAdd
308         size += 1      // m.Eid.Type
309         size += 1 * 6  // m.Eid.Address
310         size += 64     // m.LocatorSetName
311         size += 4      // m.Vni
312         size += 1      // m.Key.ID
313         size += 1 * 64 // m.Key.Key
314         return size
315 }
316 func (m *OneAddDelLocalEid) Marshal(b []byte) ([]byte, error) {
317         var buf *codec.Buffer
318         if b == nil {
319                 buf = codec.NewBuffer(make([]byte, m.Size()))
320         } else {
321                 buf = codec.NewBuffer(b)
322         }
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
331 }
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))
341         return nil
342 }
343
344 // OneAddDelLocalEidReply defines message 'one_add_del_local_eid_reply'.
345 type OneAddDelLocalEidReply struct {
346         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
347 }
348
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
354 }
355
356 func (m *OneAddDelLocalEidReply) Size() int {
357         if m == nil {
358                 return 0
359         }
360         var size int
361         size += 4 // m.Retval
362         return size
363 }
364 func (m *OneAddDelLocalEidReply) Marshal(b []byte) ([]byte, error) {
365         var buf *codec.Buffer
366         if b == nil {
367                 buf = codec.NewBuffer(make([]byte, m.Size()))
368         } else {
369                 buf = codec.NewBuffer(b)
370         }
371         buf.EncodeUint32(uint32(m.Retval))
372         return buf.Bytes(), nil
373 }
374 func (m *OneAddDelLocalEidReply) Unmarshal(b []byte) error {
375         buf := codec.NewBuffer(b)
376         m.Retval = int32(buf.DecodeUint32())
377         return nil
378 }
379
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"`
387 }
388
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
394 }
395
396 func (m *OneAddDelLocator) Size() int {
397         if m == nil {
398                 return 0
399         }
400         var size int
401         size += 1  // m.IsAdd
402         size += 64 // m.LocatorSetName
403         size += 4  // m.SwIfIndex
404         size += 1  // m.Priority
405         size += 1  // m.Weight
406         return size
407 }
408 func (m *OneAddDelLocator) Marshal(b []byte) ([]byte, error) {
409         var buf *codec.Buffer
410         if b == nil {
411                 buf = codec.NewBuffer(make([]byte, m.Size()))
412         } else {
413                 buf = codec.NewBuffer(b)
414         }
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
421 }
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()
429         return nil
430 }
431
432 // OneAddDelLocatorReply defines message 'one_add_del_locator_reply'.
433 type OneAddDelLocatorReply struct {
434         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
435 }
436
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
442 }
443
444 func (m *OneAddDelLocatorReply) Size() int {
445         if m == nil {
446                 return 0
447         }
448         var size int
449         size += 4 // m.Retval
450         return size
451 }
452 func (m *OneAddDelLocatorReply) Marshal(b []byte) ([]byte, error) {
453         var buf *codec.Buffer
454         if b == nil {
455                 buf = codec.NewBuffer(make([]byte, m.Size()))
456         } else {
457                 buf = codec.NewBuffer(b)
458         }
459         buf.EncodeUint32(uint32(m.Retval))
460         return buf.Bytes(), nil
461 }
462 func (m *OneAddDelLocatorReply) Unmarshal(b []byte) error {
463         buf := codec.NewBuffer(b)
464         m.Retval = int32(buf.DecodeUint32())
465         return nil
466 }
467
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"`
474 }
475
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
481 }
482
483 func (m *OneAddDelLocatorSet) Size() int {
484         if m == nil {
485                 return 0
486         }
487         var size int
488         size += 1  // m.IsAdd
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
493                 _ = s1
494                 if j1 < len(m.Locators) {
495                         s1 = m.Locators[j1]
496                 }
497                 size += 4 // s1.SwIfIndex
498                 size += 1 // s1.Priority
499                 size += 1 // s1.Weight
500         }
501         return size
502 }
503 func (m *OneAddDelLocatorSet) Marshal(b []byte) ([]byte, error) {
504         var buf *codec.Buffer
505         if b == nil {
506                 buf = codec.NewBuffer(make([]byte, m.Size()))
507         } else {
508                 buf = codec.NewBuffer(b)
509         }
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) {
516                         v0 = m.Locators[j0]
517                 }
518                 buf.EncodeUint32(uint32(v0.SwIfIndex))
519                 buf.EncodeUint8(uint8(v0.Priority))
520                 buf.EncodeUint8(uint8(v0.Weight))
521         }
522         return buf.Bytes(), nil
523 }
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()
534         }
535         return nil
536 }
537
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"`
542 }
543
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
549 }
550
551 func (m *OneAddDelLocatorSetReply) Size() int {
552         if m == nil {
553                 return 0
554         }
555         var size int
556         size += 4 // m.Retval
557         size += 4 // m.LsIndex
558         return size
559 }
560 func (m *OneAddDelLocatorSetReply) Marshal(b []byte) ([]byte, error) {
561         var buf *codec.Buffer
562         if b == nil {
563                 buf = codec.NewBuffer(make([]byte, m.Size()))
564         } else {
565                 buf = codec.NewBuffer(b)
566         }
567         buf.EncodeUint32(uint32(m.Retval))
568         buf.EncodeUint32(uint32(m.LsIndex))
569         return buf.Bytes(), nil
570 }
571 func (m *OneAddDelLocatorSetReply) Unmarshal(b []byte) error {
572         buf := codec.NewBuffer(b)
573         m.Retval = int32(buf.DecodeUint32())
574         m.LsIndex = buf.DecodeUint32()
575         return nil
576 }
577
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"`
582 }
583
584 func (m *OneAddDelMapRequestItrRlocs) Reset() { *m = OneAddDelMapRequestItrRlocs{} }
585 func (*OneAddDelMapRequestItrRlocs) GetMessageName() string {
586         return "one_add_del_map_request_itr_rlocs"
587 }
588 func (*OneAddDelMapRequestItrRlocs) GetCrcString() string { return "6be88e45" }
589 func (*OneAddDelMapRequestItrRlocs) GetMessageType() api.MessageType {
590         return api.RequestMessage
591 }
592
593 func (m *OneAddDelMapRequestItrRlocs) Size() int {
594         if m == nil {
595                 return 0
596         }
597         var size int
598         size += 1  // m.IsAdd
599         size += 64 // m.LocatorSetName
600         return size
601 }
602 func (m *OneAddDelMapRequestItrRlocs) Marshal(b []byte) ([]byte, error) {
603         var buf *codec.Buffer
604         if b == nil {
605                 buf = codec.NewBuffer(make([]byte, m.Size()))
606         } else {
607                 buf = codec.NewBuffer(b)
608         }
609         buf.EncodeBool(m.IsAdd)
610         buf.EncodeString(m.LocatorSetName, 64)
611         return buf.Bytes(), nil
612 }
613 func (m *OneAddDelMapRequestItrRlocs) Unmarshal(b []byte) error {
614         buf := codec.NewBuffer(b)
615         m.IsAdd = buf.DecodeBool()
616         m.LocatorSetName = buf.DecodeString(64)
617         return nil
618 }
619
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"`
623 }
624
625 func (m *OneAddDelMapRequestItrRlocsReply) Reset() { *m = OneAddDelMapRequestItrRlocsReply{} }
626 func (*OneAddDelMapRequestItrRlocsReply) GetMessageName() string {
627         return "one_add_del_map_request_itr_rlocs_reply"
628 }
629 func (*OneAddDelMapRequestItrRlocsReply) GetCrcString() string { return "e8d4e804" }
630 func (*OneAddDelMapRequestItrRlocsReply) GetMessageType() api.MessageType {
631         return api.ReplyMessage
632 }
633
634 func (m *OneAddDelMapRequestItrRlocsReply) Size() int {
635         if m == nil {
636                 return 0
637         }
638         var size int
639         size += 4 // m.Retval
640         return size
641 }
642 func (m *OneAddDelMapRequestItrRlocsReply) Marshal(b []byte) ([]byte, error) {
643         var buf *codec.Buffer
644         if b == nil {
645                 buf = codec.NewBuffer(make([]byte, m.Size()))
646         } else {
647                 buf = codec.NewBuffer(b)
648         }
649         buf.EncodeUint32(uint32(m.Retval))
650         return buf.Bytes(), nil
651 }
652 func (m *OneAddDelMapRequestItrRlocsReply) Unmarshal(b []byte) error {
653         buf := codec.NewBuffer(b)
654         m.Retval = int32(buf.DecodeUint32())
655         return nil
656 }
657
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"`
662 }
663
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
669 }
670
671 func (m *OneAddDelMapResolver) Size() int {
672         if m == nil {
673                 return 0
674         }
675         var size int
676         size += 1      // m.IsAdd
677         size += 1      // m.IPAddress.Af
678         size += 1 * 16 // m.IPAddress.Un
679         return size
680 }
681 func (m *OneAddDelMapResolver) Marshal(b []byte) ([]byte, error) {
682         var buf *codec.Buffer
683         if b == nil {
684                 buf = codec.NewBuffer(make([]byte, m.Size()))
685         } else {
686                 buf = codec.NewBuffer(b)
687         }
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
692 }
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))
698         return nil
699 }
700
701 // OneAddDelMapResolverReply defines message 'one_add_del_map_resolver_reply'.
702 type OneAddDelMapResolverReply struct {
703         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
704 }
705
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
711 }
712
713 func (m *OneAddDelMapResolverReply) Size() int {
714         if m == nil {
715                 return 0
716         }
717         var size int
718         size += 4 // m.Retval
719         return size
720 }
721 func (m *OneAddDelMapResolverReply) Marshal(b []byte) ([]byte, error) {
722         var buf *codec.Buffer
723         if b == nil {
724                 buf = codec.NewBuffer(make([]byte, m.Size()))
725         } else {
726                 buf = codec.NewBuffer(b)
727         }
728         buf.EncodeUint32(uint32(m.Retval))
729         return buf.Bytes(), nil
730 }
731 func (m *OneAddDelMapResolverReply) Unmarshal(b []byte) error {
732         buf := codec.NewBuffer(b)
733         m.Retval = int32(buf.DecodeUint32())
734         return nil
735 }
736
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"`
741 }
742
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
748 }
749
750 func (m *OneAddDelMapServer) Size() int {
751         if m == nil {
752                 return 0
753         }
754         var size int
755         size += 1      // m.IsAdd
756         size += 1      // m.IPAddress.Af
757         size += 1 * 16 // m.IPAddress.Un
758         return size
759 }
760 func (m *OneAddDelMapServer) Marshal(b []byte) ([]byte, error) {
761         var buf *codec.Buffer
762         if b == nil {
763                 buf = codec.NewBuffer(make([]byte, m.Size()))
764         } else {
765                 buf = codec.NewBuffer(b)
766         }
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
771 }
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))
777         return nil
778 }
779
780 // OneAddDelMapServerReply defines message 'one_add_del_map_server_reply'.
781 type OneAddDelMapServerReply struct {
782         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
783 }
784
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
790 }
791
792 func (m *OneAddDelMapServerReply) Size() int {
793         if m == nil {
794                 return 0
795         }
796         var size int
797         size += 4 // m.Retval
798         return size
799 }
800 func (m *OneAddDelMapServerReply) Marshal(b []byte) ([]byte, error) {
801         var buf *codec.Buffer
802         if b == nil {
803                 buf = codec.NewBuffer(make([]byte, m.Size()))
804         } else {
805                 buf = codec.NewBuffer(b)
806         }
807         buf.EncodeUint32(uint32(m.Retval))
808         return buf.Bytes(), nil
809 }
810 func (m *OneAddDelMapServerReply) Unmarshal(b []byte) error {
811         buf := codec.NewBuffer(b)
812         m.Retval = int32(buf.DecodeUint32())
813         return nil
814 }
815
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"`
821 }
822
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
828 }
829
830 func (m *OneAddDelNdpEntry) Size() int {
831         if m == nil {
832                 return 0
833         }
834         var size int
835         size += 1      // m.IsAdd
836         size += 4      // m.Bd
837         size += 1 * 6  // m.Entry.Mac
838         size += 1 * 16 // m.Entry.IP6
839         return size
840 }
841 func (m *OneAddDelNdpEntry) Marshal(b []byte) ([]byte, error) {
842         var buf *codec.Buffer
843         if b == nil {
844                 buf = codec.NewBuffer(make([]byte, m.Size()))
845         } else {
846                 buf = codec.NewBuffer(b)
847         }
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
853 }
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))
860         return nil
861 }
862
863 // OneAddDelNdpEntryReply defines message 'one_add_del_ndp_entry_reply'.
864 type OneAddDelNdpEntryReply struct {
865         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
866 }
867
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
873 }
874
875 func (m *OneAddDelNdpEntryReply) Size() int {
876         if m == nil {
877                 return 0
878         }
879         var size int
880         size += 4 // m.Retval
881         return size
882 }
883 func (m *OneAddDelNdpEntryReply) Marshal(b []byte) ([]byte, error) {
884         var buf *codec.Buffer
885         if b == nil {
886                 buf = codec.NewBuffer(make([]byte, m.Size()))
887         } else {
888                 buf = codec.NewBuffer(b)
889         }
890         buf.EncodeUint32(uint32(m.Retval))
891         return buf.Bytes(), nil
892 }
893 func (m *OneAddDelNdpEntryReply) Unmarshal(b []byte) error {
894         buf := codec.NewBuffer(b)
895         m.Retval = int32(buf.DecodeUint32())
896         return nil
897 }
898
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"`
910 }
911
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
917 }
918
919 func (m *OneAddDelRemoteMapping) Size() int {
920         if m == nil {
921                 return 0
922         }
923         var size int
924         size += 1     // m.IsAdd
925         size += 1     // m.IsSrcDst
926         size += 1     // m.DelAll
927         size += 4     // m.Vni
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
936                 _ = s1
937                 if j1 < len(m.Rlocs) {
938                         s1 = m.Rlocs[j1]
939                 }
940                 size += 1      // s1.Priority
941                 size += 1      // s1.Weight
942                 size += 1      // s1.IPAddress.Af
943                 size += 1 * 16 // s1.IPAddress.Un
944         }
945         return size
946 }
947 func (m *OneAddDelRemoteMapping) Marshal(b []byte) ([]byte, error) {
948         var buf *codec.Buffer
949         if b == nil {
950                 buf = codec.NewBuffer(make([]byte, m.Size()))
951         } else {
952                 buf = codec.NewBuffer(b)
953         }
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) {
967                         v0 = m.Rlocs[j0]
968                 }
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)
973         }
974         return buf.Bytes(), nil
975 }
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))
994         }
995         return nil
996 }
997
998 // OneAddDelRemoteMappingReply defines message 'one_add_del_remote_mapping_reply'.
999 type OneAddDelRemoteMappingReply struct {
1000         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1001 }
1002
1003 func (m *OneAddDelRemoteMappingReply) Reset() { *m = OneAddDelRemoteMappingReply{} }
1004 func (*OneAddDelRemoteMappingReply) GetMessageName() string {
1005         return "one_add_del_remote_mapping_reply"
1006 }
1007 func (*OneAddDelRemoteMappingReply) GetCrcString() string { return "e8d4e804" }
1008 func (*OneAddDelRemoteMappingReply) GetMessageType() api.MessageType {
1009         return api.ReplyMessage
1010 }
1011
1012 func (m *OneAddDelRemoteMappingReply) Size() int {
1013         if m == nil {
1014                 return 0
1015         }
1016         var size int
1017         size += 4 // m.Retval
1018         return size
1019 }
1020 func (m *OneAddDelRemoteMappingReply) Marshal(b []byte) ([]byte, error) {
1021         var buf *codec.Buffer
1022         if b == nil {
1023                 buf = codec.NewBuffer(make([]byte, m.Size()))
1024         } else {
1025                 buf = codec.NewBuffer(b)
1026         }
1027         buf.EncodeUint32(uint32(m.Retval))
1028         return buf.Bytes(), nil
1029 }
1030 func (m *OneAddDelRemoteMappingReply) Unmarshal(b []byte) error {
1031         buf := codec.NewBuffer(b)
1032         m.Retval = int32(buf.DecodeUint32())
1033         return nil
1034 }
1035
1036 // OneAdjacenciesGet defines message 'one_adjacencies_get'.
1037 type OneAdjacenciesGet struct {
1038         Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1039 }
1040
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
1046 }
1047
1048 func (m *OneAdjacenciesGet) Size() int {
1049         if m == nil {
1050                 return 0
1051         }
1052         var size int
1053         size += 4 // m.Vni
1054         return size
1055 }
1056 func (m *OneAdjacenciesGet) Marshal(b []byte) ([]byte, error) {
1057         var buf *codec.Buffer
1058         if b == nil {
1059                 buf = codec.NewBuffer(make([]byte, m.Size()))
1060         } else {
1061                 buf = codec.NewBuffer(b)
1062         }
1063         buf.EncodeUint32(uint32(m.Vni))
1064         return buf.Bytes(), nil
1065 }
1066 func (m *OneAdjacenciesGet) Unmarshal(b []byte) error {
1067         buf := codec.NewBuffer(b)
1068         m.Vni = buf.DecodeUint32()
1069         return nil
1070 }
1071
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"`
1077 }
1078
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
1084 }
1085
1086 func (m *OneAdjacenciesGetReply) Size() int {
1087         if m == nil {
1088                 return 0
1089         }
1090         var size int
1091         size += 4 // m.Retval
1092         size += 4 // m.Count
1093         for j1 := 0; j1 < len(m.Adjacencies); j1++ {
1094                 var s1 OneAdjacency
1095                 _ = s1
1096                 if j1 < len(m.Adjacencies) {
1097                         s1 = m.Adjacencies[j1]
1098                 }
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
1103         }
1104         return size
1105 }
1106 func (m *OneAdjacenciesGetReply) Marshal(b []byte) ([]byte, error) {
1107         var buf *codec.Buffer
1108         if b == nil {
1109                 buf = codec.NewBuffer(make([]byte, m.Size()))
1110         } else {
1111                 buf = codec.NewBuffer(b)
1112         }
1113         buf.EncodeUint32(uint32(m.Retval))
1114         buf.EncodeUint32(uint32(len(m.Adjacencies)))
1115         for j0 := 0; j0 < len(m.Adjacencies); j0++ {
1116                 var v0 OneAdjacency
1117                 if j0 < len(m.Adjacencies) {
1118                         v0 = m.Adjacencies[j0]
1119                 }
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)
1124         }
1125         return buf.Bytes(), nil
1126 }
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))
1137         }
1138         return nil
1139 }
1140
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"`
1147 }
1148
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
1154 }
1155
1156 func (m *OneEidTableAddDelMap) Size() int {
1157         if m == nil {
1158                 return 0
1159         }
1160         var size int
1161         size += 1 // m.IsAdd
1162         size += 4 // m.Vni
1163         size += 4 // m.DpTable
1164         size += 1 // m.IsL2
1165         return size
1166 }
1167 func (m *OneEidTableAddDelMap) Marshal(b []byte) ([]byte, error) {
1168         var buf *codec.Buffer
1169         if b == nil {
1170                 buf = codec.NewBuffer(make([]byte, m.Size()))
1171         } else {
1172                 buf = codec.NewBuffer(b)
1173         }
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
1179 }
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()
1186         return nil
1187 }
1188
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"`
1192 }
1193
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
1199 }
1200
1201 func (m *OneEidTableAddDelMapReply) Size() int {
1202         if m == nil {
1203                 return 0
1204         }
1205         var size int
1206         size += 4 // m.Retval
1207         return size
1208 }
1209 func (m *OneEidTableAddDelMapReply) Marshal(b []byte) ([]byte, error) {
1210         var buf *codec.Buffer
1211         if b == nil {
1212                 buf = codec.NewBuffer(make([]byte, m.Size()))
1213         } else {
1214                 buf = codec.NewBuffer(b)
1215         }
1216         buf.EncodeUint32(uint32(m.Retval))
1217         return buf.Bytes(), nil
1218 }
1219 func (m *OneEidTableAddDelMapReply) Unmarshal(b []byte) error {
1220         buf := codec.NewBuffer(b)
1221         m.Retval = int32(buf.DecodeUint32())
1222         return nil
1223 }
1224
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"`
1237 }
1238
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
1244 }
1245
1246 func (m *OneEidTableDetails) Size() int {
1247         if m == nil {
1248                 return 0
1249         }
1250         var size int
1251         size += 4      // m.LocatorSetIndex
1252         size += 1      // m.Action
1253         size += 1      // m.IsLocal
1254         size += 1      // m.IsSrcDst
1255         size += 4      // m.Vni
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
1260         size += 4      // m.TTL
1261         size += 1      // m.Authoritative
1262         size += 1      // m.Key.ID
1263         size += 1 * 64 // m.Key.Key
1264         return size
1265 }
1266 func (m *OneEidTableDetails) Marshal(b []byte) ([]byte, error) {
1267         var buf *codec.Buffer
1268         if b == nil {
1269                 buf = codec.NewBuffer(make([]byte, m.Size()))
1270         } else {
1271                 buf = codec.NewBuffer(b)
1272         }
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
1287 }
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))
1303         return nil
1304 }
1305
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"`
1312 }
1313
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
1319 }
1320
1321 func (m *OneEidTableDump) Size() int {
1322         if m == nil {
1323                 return 0
1324         }
1325         var size int
1326         size += 1     // m.EidSet
1327         size += 4     // m.Vni
1328         size += 1     // m.Eid.Type
1329         size += 1 * 6 // m.Eid.Address
1330         size += 4     // m.Filter
1331         return size
1332 }
1333 func (m *OneEidTableDump) Marshal(b []byte) ([]byte, error) {
1334         var buf *codec.Buffer
1335         if b == nil {
1336                 buf = codec.NewBuffer(make([]byte, m.Size()))
1337         } else {
1338                 buf = codec.NewBuffer(b)
1339         }
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
1346 }
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())
1354         return nil
1355 }
1356
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"`
1361 }
1362
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
1368 }
1369
1370 func (m *OneEidTableMapDetails) Size() int {
1371         if m == nil {
1372                 return 0
1373         }
1374         var size int
1375         size += 4 // m.Vni
1376         size += 4 // m.DpTable
1377         return size
1378 }
1379 func (m *OneEidTableMapDetails) Marshal(b []byte) ([]byte, error) {
1380         var buf *codec.Buffer
1381         if b == nil {
1382                 buf = codec.NewBuffer(make([]byte, m.Size()))
1383         } else {
1384                 buf = codec.NewBuffer(b)
1385         }
1386         buf.EncodeUint32(uint32(m.Vni))
1387         buf.EncodeUint32(uint32(m.DpTable))
1388         return buf.Bytes(), nil
1389 }
1390 func (m *OneEidTableMapDetails) Unmarshal(b []byte) error {
1391         buf := codec.NewBuffer(b)
1392         m.Vni = buf.DecodeUint32()
1393         m.DpTable = buf.DecodeUint32()
1394         return nil
1395 }
1396
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"`
1400 }
1401
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
1407 }
1408
1409 func (m *OneEidTableMapDump) Size() int {
1410         if m == nil {
1411                 return 0
1412         }
1413         var size int
1414         size += 1 // m.IsL2
1415         return size
1416 }
1417 func (m *OneEidTableMapDump) Marshal(b []byte) ([]byte, error) {
1418         var buf *codec.Buffer
1419         if b == nil {
1420                 buf = codec.NewBuffer(make([]byte, m.Size()))
1421         } else {
1422                 buf = codec.NewBuffer(b)
1423         }
1424         buf.EncodeBool(m.IsL2)
1425         return buf.Bytes(), nil
1426 }
1427 func (m *OneEidTableMapDump) Unmarshal(b []byte) error {
1428         buf := codec.NewBuffer(b)
1429         m.IsL2 = buf.DecodeBool()
1430         return nil
1431 }
1432
1433 // OneEidTableVniDetails defines message 'one_eid_table_vni_details'.
1434 type OneEidTableVniDetails struct {
1435         Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1436 }
1437
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
1443 }
1444
1445 func (m *OneEidTableVniDetails) Size() int {
1446         if m == nil {
1447                 return 0
1448         }
1449         var size int
1450         size += 4 // m.Vni
1451         return size
1452 }
1453 func (m *OneEidTableVniDetails) Marshal(b []byte) ([]byte, error) {
1454         var buf *codec.Buffer
1455         if b == nil {
1456                 buf = codec.NewBuffer(make([]byte, m.Size()))
1457         } else {
1458                 buf = codec.NewBuffer(b)
1459         }
1460         buf.EncodeUint32(uint32(m.Vni))
1461         return buf.Bytes(), nil
1462 }
1463 func (m *OneEidTableVniDetails) Unmarshal(b []byte) error {
1464         buf := codec.NewBuffer(b)
1465         m.Vni = buf.DecodeUint32()
1466         return nil
1467 }
1468
1469 // OneEidTableVniDump defines message 'one_eid_table_vni_dump'.
1470 type OneEidTableVniDump struct{}
1471
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
1477 }
1478
1479 func (m *OneEidTableVniDump) Size() int {
1480         if m == nil {
1481                 return 0
1482         }
1483         var size int
1484         return size
1485 }
1486 func (m *OneEidTableVniDump) Marshal(b []byte) ([]byte, error) {
1487         var buf *codec.Buffer
1488         if b == nil {
1489                 buf = codec.NewBuffer(make([]byte, m.Size()))
1490         } else {
1491                 buf = codec.NewBuffer(b)
1492         }
1493         return buf.Bytes(), nil
1494 }
1495 func (m *OneEidTableVniDump) Unmarshal(b []byte) error {
1496         return nil
1497 }
1498
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"`
1502 }
1503
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
1509 }
1510
1511 func (m *OneEnableDisable) Size() int {
1512         if m == nil {
1513                 return 0
1514         }
1515         var size int
1516         size += 1 // m.IsEnable
1517         return size
1518 }
1519 func (m *OneEnableDisable) Marshal(b []byte) ([]byte, error) {
1520         var buf *codec.Buffer
1521         if b == nil {
1522                 buf = codec.NewBuffer(make([]byte, m.Size()))
1523         } else {
1524                 buf = codec.NewBuffer(b)
1525         }
1526         buf.EncodeBool(m.IsEnable)
1527         return buf.Bytes(), nil
1528 }
1529 func (m *OneEnableDisable) Unmarshal(b []byte) error {
1530         buf := codec.NewBuffer(b)
1531         m.IsEnable = buf.DecodeBool()
1532         return nil
1533 }
1534
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"`
1538 }
1539
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
1545 }
1546
1547 func (m *OneEnableDisablePetrMode) Size() int {
1548         if m == nil {
1549                 return 0
1550         }
1551         var size int
1552         size += 1 // m.IsEnable
1553         return size
1554 }
1555 func (m *OneEnableDisablePetrMode) Marshal(b []byte) ([]byte, error) {
1556         var buf *codec.Buffer
1557         if b == nil {
1558                 buf = codec.NewBuffer(make([]byte, m.Size()))
1559         } else {
1560                 buf = codec.NewBuffer(b)
1561         }
1562         buf.EncodeBool(m.IsEnable)
1563         return buf.Bytes(), nil
1564 }
1565 func (m *OneEnableDisablePetrMode) Unmarshal(b []byte) error {
1566         buf := codec.NewBuffer(b)
1567         m.IsEnable = buf.DecodeBool()
1568         return nil
1569 }
1570
1571 // OneEnableDisablePetrModeReply defines message 'one_enable_disable_petr_mode_reply'.
1572 type OneEnableDisablePetrModeReply struct {
1573         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1574 }
1575
1576 func (m *OneEnableDisablePetrModeReply) Reset() { *m = OneEnableDisablePetrModeReply{} }
1577 func (*OneEnableDisablePetrModeReply) GetMessageName() string {
1578         return "one_enable_disable_petr_mode_reply"
1579 }
1580 func (*OneEnableDisablePetrModeReply) GetCrcString() string { return "e8d4e804" }
1581 func (*OneEnableDisablePetrModeReply) GetMessageType() api.MessageType {
1582         return api.ReplyMessage
1583 }
1584
1585 func (m *OneEnableDisablePetrModeReply) Size() int {
1586         if m == nil {
1587                 return 0
1588         }
1589         var size int
1590         size += 4 // m.Retval
1591         return size
1592 }
1593 func (m *OneEnableDisablePetrModeReply) Marshal(b []byte) ([]byte, error) {
1594         var buf *codec.Buffer
1595         if b == nil {
1596                 buf = codec.NewBuffer(make([]byte, m.Size()))
1597         } else {
1598                 buf = codec.NewBuffer(b)
1599         }
1600         buf.EncodeUint32(uint32(m.Retval))
1601         return buf.Bytes(), nil
1602 }
1603 func (m *OneEnableDisablePetrModeReply) Unmarshal(b []byte) error {
1604         buf := codec.NewBuffer(b)
1605         m.Retval = int32(buf.DecodeUint32())
1606         return nil
1607 }
1608
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"`
1612 }
1613
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
1619 }
1620
1621 func (m *OneEnableDisablePitrMode) Size() int {
1622         if m == nil {
1623                 return 0
1624         }
1625         var size int
1626         size += 1 // m.IsEnable
1627         return size
1628 }
1629 func (m *OneEnableDisablePitrMode) Marshal(b []byte) ([]byte, error) {
1630         var buf *codec.Buffer
1631         if b == nil {
1632                 buf = codec.NewBuffer(make([]byte, m.Size()))
1633         } else {
1634                 buf = codec.NewBuffer(b)
1635         }
1636         buf.EncodeBool(m.IsEnable)
1637         return buf.Bytes(), nil
1638 }
1639 func (m *OneEnableDisablePitrMode) Unmarshal(b []byte) error {
1640         buf := codec.NewBuffer(b)
1641         m.IsEnable = buf.DecodeBool()
1642         return nil
1643 }
1644
1645 // OneEnableDisablePitrModeReply defines message 'one_enable_disable_pitr_mode_reply'.
1646 type OneEnableDisablePitrModeReply struct {
1647         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1648 }
1649
1650 func (m *OneEnableDisablePitrModeReply) Reset() { *m = OneEnableDisablePitrModeReply{} }
1651 func (*OneEnableDisablePitrModeReply) GetMessageName() string {
1652         return "one_enable_disable_pitr_mode_reply"
1653 }
1654 func (*OneEnableDisablePitrModeReply) GetCrcString() string { return "e8d4e804" }
1655 func (*OneEnableDisablePitrModeReply) GetMessageType() api.MessageType {
1656         return api.ReplyMessage
1657 }
1658
1659 func (m *OneEnableDisablePitrModeReply) Size() int {
1660         if m == nil {
1661                 return 0
1662         }
1663         var size int
1664         size += 4 // m.Retval
1665         return size
1666 }
1667 func (m *OneEnableDisablePitrModeReply) Marshal(b []byte) ([]byte, error) {
1668         var buf *codec.Buffer
1669         if b == nil {
1670                 buf = codec.NewBuffer(make([]byte, m.Size()))
1671         } else {
1672                 buf = codec.NewBuffer(b)
1673         }
1674         buf.EncodeUint32(uint32(m.Retval))
1675         return buf.Bytes(), nil
1676 }
1677 func (m *OneEnableDisablePitrModeReply) Unmarshal(b []byte) error {
1678         buf := codec.NewBuffer(b)
1679         m.Retval = int32(buf.DecodeUint32())
1680         return nil
1681 }
1682
1683 // OneEnableDisableReply defines message 'one_enable_disable_reply'.
1684 type OneEnableDisableReply struct {
1685         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1686 }
1687
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
1693 }
1694
1695 func (m *OneEnableDisableReply) Size() int {
1696         if m == nil {
1697                 return 0
1698         }
1699         var size int
1700         size += 4 // m.Retval
1701         return size
1702 }
1703 func (m *OneEnableDisableReply) Marshal(b []byte) ([]byte, error) {
1704         var buf *codec.Buffer
1705         if b == nil {
1706                 buf = codec.NewBuffer(make([]byte, m.Size()))
1707         } else {
1708                 buf = codec.NewBuffer(b)
1709         }
1710         buf.EncodeUint32(uint32(m.Retval))
1711         return buf.Bytes(), nil
1712 }
1713 func (m *OneEnableDisableReply) Unmarshal(b []byte) error {
1714         buf := codec.NewBuffer(b)
1715         m.Retval = int32(buf.DecodeUint32())
1716         return nil
1717 }
1718
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"`
1722 }
1723
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
1729 }
1730
1731 func (m *OneEnableDisableXtrMode) Size() int {
1732         if m == nil {
1733                 return 0
1734         }
1735         var size int
1736         size += 1 // m.IsEnable
1737         return size
1738 }
1739 func (m *OneEnableDisableXtrMode) Marshal(b []byte) ([]byte, error) {
1740         var buf *codec.Buffer
1741         if b == nil {
1742                 buf = codec.NewBuffer(make([]byte, m.Size()))
1743         } else {
1744                 buf = codec.NewBuffer(b)
1745         }
1746         buf.EncodeBool(m.IsEnable)
1747         return buf.Bytes(), nil
1748 }
1749 func (m *OneEnableDisableXtrMode) Unmarshal(b []byte) error {
1750         buf := codec.NewBuffer(b)
1751         m.IsEnable = buf.DecodeBool()
1752         return nil
1753 }
1754
1755 // OneEnableDisableXtrModeReply defines message 'one_enable_disable_xtr_mode_reply'.
1756 type OneEnableDisableXtrModeReply struct {
1757         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1758 }
1759
1760 func (m *OneEnableDisableXtrModeReply) Reset() { *m = OneEnableDisableXtrModeReply{} }
1761 func (*OneEnableDisableXtrModeReply) GetMessageName() string {
1762         return "one_enable_disable_xtr_mode_reply"
1763 }
1764 func (*OneEnableDisableXtrModeReply) GetCrcString() string { return "e8d4e804" }
1765 func (*OneEnableDisableXtrModeReply) GetMessageType() api.MessageType {
1766         return api.ReplyMessage
1767 }
1768
1769 func (m *OneEnableDisableXtrModeReply) Size() int {
1770         if m == nil {
1771                 return 0
1772         }
1773         var size int
1774         size += 4 // m.Retval
1775         return size
1776 }
1777 func (m *OneEnableDisableXtrModeReply) Marshal(b []byte) ([]byte, error) {
1778         var buf *codec.Buffer
1779         if b == nil {
1780                 buf = codec.NewBuffer(make([]byte, m.Size()))
1781         } else {
1782                 buf = codec.NewBuffer(b)
1783         }
1784         buf.EncodeUint32(uint32(m.Retval))
1785         return buf.Bytes(), nil
1786 }
1787 func (m *OneEnableDisableXtrModeReply) Unmarshal(b []byte) error {
1788         buf := codec.NewBuffer(b)
1789         m.Retval = int32(buf.DecodeUint32())
1790         return nil
1791 }
1792
1793 // OneGetMapRequestItrRlocs defines message 'one_get_map_request_itr_rlocs'.
1794 type OneGetMapRequestItrRlocs struct{}
1795
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
1801 }
1802
1803 func (m *OneGetMapRequestItrRlocs) Size() int {
1804         if m == nil {
1805                 return 0
1806         }
1807         var size int
1808         return size
1809 }
1810 func (m *OneGetMapRequestItrRlocs) Marshal(b []byte) ([]byte, error) {
1811         var buf *codec.Buffer
1812         if b == nil {
1813                 buf = codec.NewBuffer(make([]byte, m.Size()))
1814         } else {
1815                 buf = codec.NewBuffer(b)
1816         }
1817         return buf.Bytes(), nil
1818 }
1819 func (m *OneGetMapRequestItrRlocs) Unmarshal(b []byte) error {
1820         return nil
1821 }
1822
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"`
1827 }
1828
1829 func (m *OneGetMapRequestItrRlocsReply) Reset() { *m = OneGetMapRequestItrRlocsReply{} }
1830 func (*OneGetMapRequestItrRlocsReply) GetMessageName() string {
1831         return "one_get_map_request_itr_rlocs_reply"
1832 }
1833 func (*OneGetMapRequestItrRlocsReply) GetCrcString() string { return "76580f3a" }
1834 func (*OneGetMapRequestItrRlocsReply) GetMessageType() api.MessageType {
1835         return api.ReplyMessage
1836 }
1837
1838 func (m *OneGetMapRequestItrRlocsReply) Size() int {
1839         if m == nil {
1840                 return 0
1841         }
1842         var size int
1843         size += 4  // m.Retval
1844         size += 64 // m.LocatorSetName
1845         return size
1846 }
1847 func (m *OneGetMapRequestItrRlocsReply) Marshal(b []byte) ([]byte, error) {
1848         var buf *codec.Buffer
1849         if b == nil {
1850                 buf = codec.NewBuffer(make([]byte, m.Size()))
1851         } else {
1852                 buf = codec.NewBuffer(b)
1853         }
1854         buf.EncodeUint32(uint32(m.Retval))
1855         buf.EncodeString(m.LocatorSetName, 64)
1856         return buf.Bytes(), nil
1857 }
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)
1862         return nil
1863 }
1864
1865 // OneGetTransportProtocol defines message 'one_get_transport_protocol'.
1866 type OneGetTransportProtocol struct{}
1867
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
1873 }
1874
1875 func (m *OneGetTransportProtocol) Size() int {
1876         if m == nil {
1877                 return 0
1878         }
1879         var size int
1880         return size
1881 }
1882 func (m *OneGetTransportProtocol) Marshal(b []byte) ([]byte, error) {
1883         var buf *codec.Buffer
1884         if b == nil {
1885                 buf = codec.NewBuffer(make([]byte, m.Size()))
1886         } else {
1887                 buf = codec.NewBuffer(b)
1888         }
1889         return buf.Bytes(), nil
1890 }
1891 func (m *OneGetTransportProtocol) Unmarshal(b []byte) error {
1892         return nil
1893 }
1894
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"`
1899 }
1900
1901 func (m *OneGetTransportProtocolReply) Reset() { *m = OneGetTransportProtocolReply{} }
1902 func (*OneGetTransportProtocolReply) GetMessageName() string {
1903         return "one_get_transport_protocol_reply"
1904 }
1905 func (*OneGetTransportProtocolReply) GetCrcString() string { return "62a28eb3" }
1906 func (*OneGetTransportProtocolReply) GetMessageType() api.MessageType {
1907         return api.ReplyMessage
1908 }
1909
1910 func (m *OneGetTransportProtocolReply) Size() int {
1911         if m == nil {
1912                 return 0
1913         }
1914         var size int
1915         size += 4 // m.Retval
1916         size += 1 // m.Protocol
1917         return size
1918 }
1919 func (m *OneGetTransportProtocolReply) Marshal(b []byte) ([]byte, error) {
1920         var buf *codec.Buffer
1921         if b == nil {
1922                 buf = codec.NewBuffer(make([]byte, m.Size()))
1923         } else {
1924                 buf = codec.NewBuffer(b)
1925         }
1926         buf.EncodeUint32(uint32(m.Retval))
1927         buf.EncodeUint8(uint8(m.Protocol))
1928         return buf.Bytes(), nil
1929 }
1930 func (m *OneGetTransportProtocolReply) Unmarshal(b []byte) error {
1931         buf := codec.NewBuffer(b)
1932         m.Retval = int32(buf.DecodeUint32())
1933         m.Protocol = buf.DecodeUint8()
1934         return nil
1935 }
1936
1937 // OneL2ArpBdGet defines message 'one_l2_arp_bd_get'.
1938 type OneL2ArpBdGet struct{}
1939
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
1945 }
1946
1947 func (m *OneL2ArpBdGet) Size() int {
1948         if m == nil {
1949                 return 0
1950         }
1951         var size int
1952         return size
1953 }
1954 func (m *OneL2ArpBdGet) Marshal(b []byte) ([]byte, error) {
1955         var buf *codec.Buffer
1956         if b == nil {
1957                 buf = codec.NewBuffer(make([]byte, m.Size()))
1958         } else {
1959                 buf = codec.NewBuffer(b)
1960         }
1961         return buf.Bytes(), nil
1962 }
1963 func (m *OneL2ArpBdGet) Unmarshal(b []byte) error {
1964         return nil
1965 }
1966
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"`
1972 }
1973
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
1979 }
1980
1981 func (m *OneL2ArpBdGetReply) Size() int {
1982         if m == nil {
1983                 return 0
1984         }
1985         var size int
1986         size += 4                        // m.Retval
1987         size += 4                        // m.Count
1988         size += 4 * len(m.BridgeDomains) // m.BridgeDomains
1989         return size
1990 }
1991 func (m *OneL2ArpBdGetReply) Marshal(b []byte) ([]byte, error) {
1992         var buf *codec.Buffer
1993         if b == nil {
1994                 buf = codec.NewBuffer(make([]byte, m.Size()))
1995         } else {
1996                 buf = codec.NewBuffer(b)
1997         }
1998         buf.EncodeUint32(uint32(m.Retval))
1999         buf.EncodeUint32(uint32(len(m.BridgeDomains)))
2000         for i := 0; i < len(m.BridgeDomains); i++ {
2001                 var x uint32
2002                 if i < len(m.BridgeDomains) {
2003                         x = uint32(m.BridgeDomains[i])
2004                 }
2005                 buf.EncodeUint32(uint32(x))
2006         }
2007         return buf.Bytes(), nil
2008 }
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()
2016         }
2017         return nil
2018 }
2019
2020 // OneL2ArpEntriesGet defines message 'one_l2_arp_entries_get'.
2021 type OneL2ArpEntriesGet struct {
2022         Bd uint32 `binapi:"u32,name=bd" json:"bd,omitempty"`
2023 }
2024
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
2030 }
2031
2032 func (m *OneL2ArpEntriesGet) Size() int {
2033         if m == nil {
2034                 return 0
2035         }
2036         var size int
2037         size += 4 // m.Bd
2038         return size
2039 }
2040 func (m *OneL2ArpEntriesGet) Marshal(b []byte) ([]byte, error) {
2041         var buf *codec.Buffer
2042         if b == nil {
2043                 buf = codec.NewBuffer(make([]byte, m.Size()))
2044         } else {
2045                 buf = codec.NewBuffer(b)
2046         }
2047         buf.EncodeUint32(uint32(m.Bd))
2048         return buf.Bytes(), nil
2049 }
2050 func (m *OneL2ArpEntriesGet) Unmarshal(b []byte) error {
2051         buf := codec.NewBuffer(b)
2052         m.Bd = buf.DecodeUint32()
2053         return nil
2054 }
2055
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"`
2061 }
2062
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
2068 }
2069
2070 func (m *OneL2ArpEntriesGetReply) Size() int {
2071         if m == nil {
2072                 return 0
2073         }
2074         var 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
2079                 _ = s1
2080                 if j1 < len(m.Entries) {
2081                         s1 = m.Entries[j1]
2082                 }
2083                 size += 1 * 6 // s1.Mac
2084                 size += 1 * 4 // s1.IP4
2085         }
2086         return size
2087 }
2088 func (m *OneL2ArpEntriesGetReply) Marshal(b []byte) ([]byte, error) {
2089         var buf *codec.Buffer
2090         if b == nil {
2091                 buf = codec.NewBuffer(make([]byte, m.Size()))
2092         } else {
2093                 buf = codec.NewBuffer(b)
2094         }
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) {
2100                         v0 = m.Entries[j0]
2101                 }
2102                 buf.EncodeBytes(v0.Mac[:], 6)
2103                 buf.EncodeBytes(v0.IP4[:], 4)
2104         }
2105         return buf.Bytes(), nil
2106 }
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))
2115         }
2116         return nil
2117 }
2118
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"`
2126 }
2127
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
2133 }
2134
2135 func (m *OneLocatorDetails) Size() int {
2136         if m == nil {
2137                 return 0
2138         }
2139         var 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
2146         return size
2147 }
2148 func (m *OneLocatorDetails) Marshal(b []byte) ([]byte, error) {
2149         var buf *codec.Buffer
2150         if b == nil {
2151                 buf = codec.NewBuffer(make([]byte, m.Size()))
2152         } else {
2153                 buf = codec.NewBuffer(b)
2154         }
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
2162 }
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()
2171         return nil
2172 }
2173
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"`
2179 }
2180
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
2186 }
2187
2188 func (m *OneLocatorDump) Size() int {
2189         if m == nil {
2190                 return 0
2191         }
2192         var size int
2193         size += 4  // m.LsIndex
2194         size += 64 // m.LsName
2195         size += 1  // m.IsIndexSet
2196         return size
2197 }
2198 func (m *OneLocatorDump) Marshal(b []byte) ([]byte, error) {
2199         var buf *codec.Buffer
2200         if b == nil {
2201                 buf = codec.NewBuffer(make([]byte, m.Size()))
2202         } else {
2203                 buf = codec.NewBuffer(b)
2204         }
2205         buf.EncodeUint32(uint32(m.LsIndex))
2206         buf.EncodeString(m.LsName, 64)
2207         buf.EncodeBool(m.IsIndexSet)
2208         return buf.Bytes(), nil
2209 }
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()
2215         return nil
2216 }
2217
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"`
2222 }
2223
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
2229 }
2230
2231 func (m *OneLocatorSetDetails) Size() int {
2232         if m == nil {
2233                 return 0
2234         }
2235         var size int
2236         size += 4  // m.LsIndex
2237         size += 64 // m.LsName
2238         return size
2239 }
2240 func (m *OneLocatorSetDetails) Marshal(b []byte) ([]byte, error) {
2241         var buf *codec.Buffer
2242         if b == nil {
2243                 buf = codec.NewBuffer(make([]byte, m.Size()))
2244         } else {
2245                 buf = codec.NewBuffer(b)
2246         }
2247         buf.EncodeUint32(uint32(m.LsIndex))
2248         buf.EncodeString(m.LsName, 64)
2249         return buf.Bytes(), nil
2250 }
2251 func (m *OneLocatorSetDetails) Unmarshal(b []byte) error {
2252         buf := codec.NewBuffer(b)
2253         m.LsIndex = buf.DecodeUint32()
2254         m.LsName = buf.DecodeString(64)
2255         return nil
2256 }
2257
2258 // OneLocatorSetDump defines message 'one_locator_set_dump'.
2259 type OneLocatorSetDump struct {
2260         Filter OneFilter `binapi:"one_filter,name=filter" json:"filter,omitempty"`
2261 }
2262
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
2268 }
2269
2270 func (m *OneLocatorSetDump) Size() int {
2271         if m == nil {
2272                 return 0
2273         }
2274         var size int
2275         size += 4 // m.Filter
2276         return size
2277 }
2278 func (m *OneLocatorSetDump) Marshal(b []byte) ([]byte, error) {
2279         var buf *codec.Buffer
2280         if b == nil {
2281                 buf = codec.NewBuffer(make([]byte, m.Size()))
2282         } else {
2283                 buf = codec.NewBuffer(b)
2284         }
2285         buf.EncodeUint32(uint32(m.Filter))
2286         return buf.Bytes(), nil
2287 }
2288 func (m *OneLocatorSetDump) Unmarshal(b []byte) error {
2289         buf := codec.NewBuffer(b)
2290         m.Filter = OneFilter(buf.DecodeUint32())
2291         return nil
2292 }
2293
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"`
2297 }
2298
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
2304 }
2305
2306 func (m *OneMapRegisterEnableDisable) Size() int {
2307         if m == nil {
2308                 return 0
2309         }
2310         var size int
2311         size += 1 // m.IsEnable
2312         return size
2313 }
2314 func (m *OneMapRegisterEnableDisable) Marshal(b []byte) ([]byte, error) {
2315         var buf *codec.Buffer
2316         if b == nil {
2317                 buf = codec.NewBuffer(make([]byte, m.Size()))
2318         } else {
2319                 buf = codec.NewBuffer(b)
2320         }
2321         buf.EncodeBool(m.IsEnable)
2322         return buf.Bytes(), nil
2323 }
2324 func (m *OneMapRegisterEnableDisable) Unmarshal(b []byte) error {
2325         buf := codec.NewBuffer(b)
2326         m.IsEnable = buf.DecodeBool()
2327         return nil
2328 }
2329
2330 // OneMapRegisterEnableDisableReply defines message 'one_map_register_enable_disable_reply'.
2331 type OneMapRegisterEnableDisableReply struct {
2332         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2333 }
2334
2335 func (m *OneMapRegisterEnableDisableReply) Reset() { *m = OneMapRegisterEnableDisableReply{} }
2336 func (*OneMapRegisterEnableDisableReply) GetMessageName() string {
2337         return "one_map_register_enable_disable_reply"
2338 }
2339 func (*OneMapRegisterEnableDisableReply) GetCrcString() string { return "e8d4e804" }
2340 func (*OneMapRegisterEnableDisableReply) GetMessageType() api.MessageType {
2341         return api.ReplyMessage
2342 }
2343
2344 func (m *OneMapRegisterEnableDisableReply) Size() int {
2345         if m == nil {
2346                 return 0
2347         }
2348         var size int
2349         size += 4 // m.Retval
2350         return size
2351 }
2352 func (m *OneMapRegisterEnableDisableReply) Marshal(b []byte) ([]byte, error) {
2353         var buf *codec.Buffer
2354         if b == nil {
2355                 buf = codec.NewBuffer(make([]byte, m.Size()))
2356         } else {
2357                 buf = codec.NewBuffer(b)
2358         }
2359         buf.EncodeUint32(uint32(m.Retval))
2360         return buf.Bytes(), nil
2361 }
2362 func (m *OneMapRegisterEnableDisableReply) Unmarshal(b []byte) error {
2363         buf := codec.NewBuffer(b)
2364         m.Retval = int32(buf.DecodeUint32())
2365         return nil
2366 }
2367
2368 // OneMapRegisterFallbackThreshold defines message 'one_map_register_fallback_threshold'.
2369 type OneMapRegisterFallbackThreshold struct {
2370         Value uint32 `binapi:"u32,name=value" json:"value,omitempty"`
2371 }
2372
2373 func (m *OneMapRegisterFallbackThreshold) Reset() { *m = OneMapRegisterFallbackThreshold{} }
2374 func (*OneMapRegisterFallbackThreshold) GetMessageName() string {
2375         return "one_map_register_fallback_threshold"
2376 }
2377 func (*OneMapRegisterFallbackThreshold) GetCrcString() string { return "f7d4a475" }
2378 func (*OneMapRegisterFallbackThreshold) GetMessageType() api.MessageType {
2379         return api.RequestMessage
2380 }
2381
2382 func (m *OneMapRegisterFallbackThreshold) Size() int {
2383         if m == nil {
2384                 return 0
2385         }
2386         var size int
2387         size += 4 // m.Value
2388         return size
2389 }
2390 func (m *OneMapRegisterFallbackThreshold) Marshal(b []byte) ([]byte, error) {
2391         var buf *codec.Buffer
2392         if b == nil {
2393                 buf = codec.NewBuffer(make([]byte, m.Size()))
2394         } else {
2395                 buf = codec.NewBuffer(b)
2396         }
2397         buf.EncodeUint32(uint32(m.Value))
2398         return buf.Bytes(), nil
2399 }
2400 func (m *OneMapRegisterFallbackThreshold) Unmarshal(b []byte) error {
2401         buf := codec.NewBuffer(b)
2402         m.Value = buf.DecodeUint32()
2403         return nil
2404 }
2405
2406 // OneMapRegisterFallbackThresholdReply defines message 'one_map_register_fallback_threshold_reply'.
2407 type OneMapRegisterFallbackThresholdReply struct {
2408         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2409 }
2410
2411 func (m *OneMapRegisterFallbackThresholdReply) Reset() { *m = OneMapRegisterFallbackThresholdReply{} }
2412 func (*OneMapRegisterFallbackThresholdReply) GetMessageName() string {
2413         return "one_map_register_fallback_threshold_reply"
2414 }
2415 func (*OneMapRegisterFallbackThresholdReply) GetCrcString() string { return "e8d4e804" }
2416 func (*OneMapRegisterFallbackThresholdReply) GetMessageType() api.MessageType {
2417         return api.ReplyMessage
2418 }
2419
2420 func (m *OneMapRegisterFallbackThresholdReply) Size() int {
2421         if m == nil {
2422                 return 0
2423         }
2424         var size int
2425         size += 4 // m.Retval
2426         return size
2427 }
2428 func (m *OneMapRegisterFallbackThresholdReply) Marshal(b []byte) ([]byte, error) {
2429         var buf *codec.Buffer
2430         if b == nil {
2431                 buf = codec.NewBuffer(make([]byte, m.Size()))
2432         } else {
2433                 buf = codec.NewBuffer(b)
2434         }
2435         buf.EncodeUint32(uint32(m.Retval))
2436         return buf.Bytes(), nil
2437 }
2438 func (m *OneMapRegisterFallbackThresholdReply) Unmarshal(b []byte) error {
2439         buf := codec.NewBuffer(b)
2440         m.Retval = int32(buf.DecodeUint32())
2441         return nil
2442 }
2443
2444 // OneMapRegisterSetTTL defines message 'one_map_register_set_ttl'.
2445 type OneMapRegisterSetTTL struct {
2446         TTL uint32 `binapi:"u32,name=ttl" json:"ttl,omitempty"`
2447 }
2448
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
2454 }
2455
2456 func (m *OneMapRegisterSetTTL) Size() int {
2457         if m == nil {
2458                 return 0
2459         }
2460         var size int
2461         size += 4 // m.TTL
2462         return size
2463 }
2464 func (m *OneMapRegisterSetTTL) Marshal(b []byte) ([]byte, error) {
2465         var buf *codec.Buffer
2466         if b == nil {
2467                 buf = codec.NewBuffer(make([]byte, m.Size()))
2468         } else {
2469                 buf = codec.NewBuffer(b)
2470         }
2471         buf.EncodeUint32(uint32(m.TTL))
2472         return buf.Bytes(), nil
2473 }
2474 func (m *OneMapRegisterSetTTL) Unmarshal(b []byte) error {
2475         buf := codec.NewBuffer(b)
2476         m.TTL = buf.DecodeUint32()
2477         return nil
2478 }
2479
2480 // OneMapRegisterSetTTLReply defines message 'one_map_register_set_ttl_reply'.
2481 type OneMapRegisterSetTTLReply struct {
2482         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2483 }
2484
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
2490 }
2491
2492 func (m *OneMapRegisterSetTTLReply) Size() int {
2493         if m == nil {
2494                 return 0
2495         }
2496         var size int
2497         size += 4 // m.Retval
2498         return size
2499 }
2500 func (m *OneMapRegisterSetTTLReply) Marshal(b []byte) ([]byte, error) {
2501         var buf *codec.Buffer
2502         if b == nil {
2503                 buf = codec.NewBuffer(make([]byte, m.Size()))
2504         } else {
2505                 buf = codec.NewBuffer(b)
2506         }
2507         buf.EncodeUint32(uint32(m.Retval))
2508         return buf.Bytes(), nil
2509 }
2510 func (m *OneMapRegisterSetTTLReply) Unmarshal(b []byte) error {
2511         buf := codec.NewBuffer(b)
2512         m.Retval = int32(buf.DecodeUint32())
2513         return nil
2514 }
2515
2516 // OneMapRequestMode defines message 'one_map_request_mode'.
2517 type OneMapRequestMode struct {
2518         Mode OneMapMode `binapi:"one_map_mode,name=mode" json:"mode,omitempty"`
2519 }
2520
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
2526 }
2527
2528 func (m *OneMapRequestMode) Size() int {
2529         if m == nil {
2530                 return 0
2531         }
2532         var size int
2533         size += 4 // m.Mode
2534         return size
2535 }
2536 func (m *OneMapRequestMode) Marshal(b []byte) ([]byte, error) {
2537         var buf *codec.Buffer
2538         if b == nil {
2539                 buf = codec.NewBuffer(make([]byte, m.Size()))
2540         } else {
2541                 buf = codec.NewBuffer(b)
2542         }
2543         buf.EncodeUint32(uint32(m.Mode))
2544         return buf.Bytes(), nil
2545 }
2546 func (m *OneMapRequestMode) Unmarshal(b []byte) error {
2547         buf := codec.NewBuffer(b)
2548         m.Mode = OneMapMode(buf.DecodeUint32())
2549         return nil
2550 }
2551
2552 // OneMapRequestModeReply defines message 'one_map_request_mode_reply'.
2553 type OneMapRequestModeReply struct {
2554         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2555 }
2556
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
2562 }
2563
2564 func (m *OneMapRequestModeReply) Size() int {
2565         if m == nil {
2566                 return 0
2567         }
2568         var size int
2569         size += 4 // m.Retval
2570         return size
2571 }
2572 func (m *OneMapRequestModeReply) Marshal(b []byte) ([]byte, error) {
2573         var buf *codec.Buffer
2574         if b == nil {
2575                 buf = codec.NewBuffer(make([]byte, m.Size()))
2576         } else {
2577                 buf = codec.NewBuffer(b)
2578         }
2579         buf.EncodeUint32(uint32(m.Retval))
2580         return buf.Bytes(), nil
2581 }
2582 func (m *OneMapRequestModeReply) Unmarshal(b []byte) error {
2583         buf := codec.NewBuffer(b)
2584         m.Retval = int32(buf.DecodeUint32())
2585         return nil
2586 }
2587
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"`
2591 }
2592
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
2598 }
2599
2600 func (m *OneMapResolverDetails) Size() int {
2601         if m == nil {
2602                 return 0
2603         }
2604         var size int
2605         size += 1      // m.IPAddress.Af
2606         size += 1 * 16 // m.IPAddress.Un
2607         return size
2608 }
2609 func (m *OneMapResolverDetails) Marshal(b []byte) ([]byte, error) {
2610         var buf *codec.Buffer
2611         if b == nil {
2612                 buf = codec.NewBuffer(make([]byte, m.Size()))
2613         } else {
2614                 buf = codec.NewBuffer(b)
2615         }
2616         buf.EncodeUint8(uint8(m.IPAddress.Af))
2617         buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
2618         return buf.Bytes(), nil
2619 }
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))
2624         return nil
2625 }
2626
2627 // OneMapResolverDump defines message 'one_map_resolver_dump'.
2628 type OneMapResolverDump struct{}
2629
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
2635 }
2636
2637 func (m *OneMapResolverDump) Size() int {
2638         if m == nil {
2639                 return 0
2640         }
2641         var size int
2642         return size
2643 }
2644 func (m *OneMapResolverDump) Marshal(b []byte) ([]byte, error) {
2645         var buf *codec.Buffer
2646         if b == nil {
2647                 buf = codec.NewBuffer(make([]byte, m.Size()))
2648         } else {
2649                 buf = codec.NewBuffer(b)
2650         }
2651         return buf.Bytes(), nil
2652 }
2653 func (m *OneMapResolverDump) Unmarshal(b []byte) error {
2654         return nil
2655 }
2656
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"`
2660 }
2661
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
2667 }
2668
2669 func (m *OneMapServerDetails) Size() int {
2670         if m == nil {
2671                 return 0
2672         }
2673         var size int
2674         size += 1      // m.IPAddress.Af
2675         size += 1 * 16 // m.IPAddress.Un
2676         return size
2677 }
2678 func (m *OneMapServerDetails) Marshal(b []byte) ([]byte, error) {
2679         var buf *codec.Buffer
2680         if b == nil {
2681                 buf = codec.NewBuffer(make([]byte, m.Size()))
2682         } else {
2683                 buf = codec.NewBuffer(b)
2684         }
2685         buf.EncodeUint8(uint8(m.IPAddress.Af))
2686         buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
2687         return buf.Bytes(), nil
2688 }
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))
2693         return nil
2694 }
2695
2696 // OneMapServerDump defines message 'one_map_server_dump'.
2697 type OneMapServerDump struct{}
2698
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
2704 }
2705
2706 func (m *OneMapServerDump) Size() int {
2707         if m == nil {
2708                 return 0
2709         }
2710         var size int
2711         return size
2712 }
2713 func (m *OneMapServerDump) Marshal(b []byte) ([]byte, error) {
2714         var buf *codec.Buffer
2715         if b == nil {
2716                 buf = codec.NewBuffer(make([]byte, m.Size()))
2717         } else {
2718                 buf = codec.NewBuffer(b)
2719         }
2720         return buf.Bytes(), nil
2721 }
2722 func (m *OneMapServerDump) Unmarshal(b []byte) error {
2723         return nil
2724 }
2725
2726 // OneNdpBdGet defines message 'one_ndp_bd_get'.
2727 type OneNdpBdGet struct{}
2728
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
2734 }
2735
2736 func (m *OneNdpBdGet) Size() int {
2737         if m == nil {
2738                 return 0
2739         }
2740         var size int
2741         return size
2742 }
2743 func (m *OneNdpBdGet) Marshal(b []byte) ([]byte, error) {
2744         var buf *codec.Buffer
2745         if b == nil {
2746                 buf = codec.NewBuffer(make([]byte, m.Size()))
2747         } else {
2748                 buf = codec.NewBuffer(b)
2749         }
2750         return buf.Bytes(), nil
2751 }
2752 func (m *OneNdpBdGet) Unmarshal(b []byte) error {
2753         return nil
2754 }
2755
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"`
2761 }
2762
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
2768 }
2769
2770 func (m *OneNdpBdGetReply) Size() int {
2771         if m == nil {
2772                 return 0
2773         }
2774         var size int
2775         size += 4                        // m.Retval
2776         size += 4                        // m.Count
2777         size += 4 * len(m.BridgeDomains) // m.BridgeDomains
2778         return size
2779 }
2780 func (m *OneNdpBdGetReply) Marshal(b []byte) ([]byte, error) {
2781         var buf *codec.Buffer
2782         if b == nil {
2783                 buf = codec.NewBuffer(make([]byte, m.Size()))
2784         } else {
2785                 buf = codec.NewBuffer(b)
2786         }
2787         buf.EncodeUint32(uint32(m.Retval))
2788         buf.EncodeUint32(uint32(len(m.BridgeDomains)))
2789         for i := 0; i < len(m.BridgeDomains); i++ {
2790                 var x uint32
2791                 if i < len(m.BridgeDomains) {
2792                         x = uint32(m.BridgeDomains[i])
2793                 }
2794                 buf.EncodeUint32(uint32(x))
2795         }
2796         return buf.Bytes(), nil
2797 }
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()
2805         }
2806         return nil
2807 }
2808
2809 // OneNdpEntriesGet defines message 'one_ndp_entries_get'.
2810 type OneNdpEntriesGet struct {
2811         Bd uint32 `binapi:"u32,name=bd" json:"bd,omitempty"`
2812 }
2813
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
2819 }
2820
2821 func (m *OneNdpEntriesGet) Size() int {
2822         if m == nil {
2823                 return 0
2824         }
2825         var size int
2826         size += 4 // m.Bd
2827         return size
2828 }
2829 func (m *OneNdpEntriesGet) Marshal(b []byte) ([]byte, error) {
2830         var buf *codec.Buffer
2831         if b == nil {
2832                 buf = codec.NewBuffer(make([]byte, m.Size()))
2833         } else {
2834                 buf = codec.NewBuffer(b)
2835         }
2836         buf.EncodeUint32(uint32(m.Bd))
2837         return buf.Bytes(), nil
2838 }
2839 func (m *OneNdpEntriesGet) Unmarshal(b []byte) error {
2840         buf := codec.NewBuffer(b)
2841         m.Bd = buf.DecodeUint32()
2842         return nil
2843 }
2844
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"`
2850 }
2851
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
2857 }
2858
2859 func (m *OneNdpEntriesGetReply) Size() int {
2860         if m == nil {
2861                 return 0
2862         }
2863         var size int
2864         size += 4 // m.Retval
2865         size += 4 // m.Count
2866         for j1 := 0; j1 < len(m.Entries); j1++ {
2867                 var s1 OneNdpEntry
2868                 _ = s1
2869                 if j1 < len(m.Entries) {
2870                         s1 = m.Entries[j1]
2871                 }
2872                 size += 1 * 6  // s1.Mac
2873                 size += 1 * 16 // s1.IP6
2874         }
2875         return size
2876 }
2877 func (m *OneNdpEntriesGetReply) Marshal(b []byte) ([]byte, error) {
2878         var buf *codec.Buffer
2879         if b == nil {
2880                 buf = codec.NewBuffer(make([]byte, m.Size()))
2881         } else {
2882                 buf = codec.NewBuffer(b)
2883         }
2884         buf.EncodeUint32(uint32(m.Retval))
2885         buf.EncodeUint32(uint32(len(m.Entries)))
2886         for j0 := 0; j0 < len(m.Entries); j0++ {
2887                 var v0 OneNdpEntry
2888                 if j0 < len(m.Entries) {
2889                         v0 = m.Entries[j0]
2890                 }
2891                 buf.EncodeBytes(v0.Mac[:], 6)
2892                 buf.EncodeBytes(v0.IP6[:], 16)
2893         }
2894         return buf.Bytes(), nil
2895 }
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))
2904         }
2905         return nil
2906 }
2907
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"`
2912 }
2913
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
2919 }
2920
2921 func (m *OneNshSetLocatorSet) Size() int {
2922         if m == nil {
2923                 return 0
2924         }
2925         var size int
2926         size += 1  // m.IsAdd
2927         size += 64 // m.LsName
2928         return size
2929 }
2930 func (m *OneNshSetLocatorSet) Marshal(b []byte) ([]byte, error) {
2931         var buf *codec.Buffer
2932         if b == nil {
2933                 buf = codec.NewBuffer(make([]byte, m.Size()))
2934         } else {
2935                 buf = codec.NewBuffer(b)
2936         }
2937         buf.EncodeBool(m.IsAdd)
2938         buf.EncodeString(m.LsName, 64)
2939         return buf.Bytes(), nil
2940 }
2941 func (m *OneNshSetLocatorSet) Unmarshal(b []byte) error {
2942         buf := codec.NewBuffer(b)
2943         m.IsAdd = buf.DecodeBool()
2944         m.LsName = buf.DecodeString(64)
2945         return nil
2946 }
2947
2948 // OneNshSetLocatorSetReply defines message 'one_nsh_set_locator_set_reply'.
2949 type OneNshSetLocatorSetReply struct {
2950         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2951 }
2952
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
2958 }
2959
2960 func (m *OneNshSetLocatorSetReply) Size() int {
2961         if m == nil {
2962                 return 0
2963         }
2964         var size int
2965         size += 4 // m.Retval
2966         return size
2967 }
2968 func (m *OneNshSetLocatorSetReply) Marshal(b []byte) ([]byte, error) {
2969         var buf *codec.Buffer
2970         if b == nil {
2971                 buf = codec.NewBuffer(make([]byte, m.Size()))
2972         } else {
2973                 buf = codec.NewBuffer(b)
2974         }
2975         buf.EncodeUint32(uint32(m.Retval))
2976         return buf.Bytes(), nil
2977 }
2978 func (m *OneNshSetLocatorSetReply) Unmarshal(b []byte) error {
2979         buf := codec.NewBuffer(b)
2980         m.Retval = int32(buf.DecodeUint32())
2981         return nil
2982 }
2983
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"`
2988 }
2989
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
2995 }
2996
2997 func (m *OnePitrSetLocatorSet) Size() int {
2998         if m == nil {
2999                 return 0
3000         }
3001         var size int
3002         size += 1  // m.IsAdd
3003         size += 64 // m.LsName
3004         return size
3005 }
3006 func (m *OnePitrSetLocatorSet) Marshal(b []byte) ([]byte, error) {
3007         var buf *codec.Buffer
3008         if b == nil {
3009                 buf = codec.NewBuffer(make([]byte, m.Size()))
3010         } else {
3011                 buf = codec.NewBuffer(b)
3012         }
3013         buf.EncodeBool(m.IsAdd)
3014         buf.EncodeString(m.LsName, 64)
3015         return buf.Bytes(), nil
3016 }
3017 func (m *OnePitrSetLocatorSet) Unmarshal(b []byte) error {
3018         buf := codec.NewBuffer(b)
3019         m.IsAdd = buf.DecodeBool()
3020         m.LsName = buf.DecodeString(64)
3021         return nil
3022 }
3023
3024 // OnePitrSetLocatorSetReply defines message 'one_pitr_set_locator_set_reply'.
3025 type OnePitrSetLocatorSetReply struct {
3026         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3027 }
3028
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
3034 }
3035
3036 func (m *OnePitrSetLocatorSetReply) Size() int {
3037         if m == nil {
3038                 return 0
3039         }
3040         var size int
3041         size += 4 // m.Retval
3042         return size
3043 }
3044 func (m *OnePitrSetLocatorSetReply) Marshal(b []byte) ([]byte, error) {
3045         var buf *codec.Buffer
3046         if b == nil {
3047                 buf = codec.NewBuffer(make([]byte, m.Size()))
3048         } else {
3049                 buf = codec.NewBuffer(b)
3050         }
3051         buf.EncodeUint32(uint32(m.Retval))
3052         return buf.Bytes(), nil
3053 }
3054 func (m *OnePitrSetLocatorSetReply) Unmarshal(b []byte) error {
3055         buf := codec.NewBuffer(b)
3056         m.Retval = int32(buf.DecodeUint32())
3057         return nil
3058 }
3059
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"`
3063 }
3064
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
3070 }
3071
3072 func (m *OneRlocProbeEnableDisable) Size() int {
3073         if m == nil {
3074                 return 0
3075         }
3076         var size int
3077         size += 1 // m.IsEnable
3078         return size
3079 }
3080 func (m *OneRlocProbeEnableDisable) Marshal(b []byte) ([]byte, error) {
3081         var buf *codec.Buffer
3082         if b == nil {
3083                 buf = codec.NewBuffer(make([]byte, m.Size()))
3084         } else {
3085                 buf = codec.NewBuffer(b)
3086         }
3087         buf.EncodeBool(m.IsEnable)
3088         return buf.Bytes(), nil
3089 }
3090 func (m *OneRlocProbeEnableDisable) Unmarshal(b []byte) error {
3091         buf := codec.NewBuffer(b)
3092         m.IsEnable = buf.DecodeBool()
3093         return nil
3094 }
3095
3096 // OneRlocProbeEnableDisableReply defines message 'one_rloc_probe_enable_disable_reply'.
3097 type OneRlocProbeEnableDisableReply struct {
3098         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3099 }
3100
3101 func (m *OneRlocProbeEnableDisableReply) Reset() { *m = OneRlocProbeEnableDisableReply{} }
3102 func (*OneRlocProbeEnableDisableReply) GetMessageName() string {
3103         return "one_rloc_probe_enable_disable_reply"
3104 }
3105 func (*OneRlocProbeEnableDisableReply) GetCrcString() string { return "e8d4e804" }
3106 func (*OneRlocProbeEnableDisableReply) GetMessageType() api.MessageType {
3107         return api.ReplyMessage
3108 }
3109
3110 func (m *OneRlocProbeEnableDisableReply) Size() int {
3111         if m == nil {
3112                 return 0
3113         }
3114         var size int
3115         size += 4 // m.Retval
3116         return size
3117 }
3118 func (m *OneRlocProbeEnableDisableReply) Marshal(b []byte) ([]byte, error) {
3119         var buf *codec.Buffer
3120         if b == nil {
3121                 buf = codec.NewBuffer(make([]byte, m.Size()))
3122         } else {
3123                 buf = codec.NewBuffer(b)
3124         }
3125         buf.EncodeUint32(uint32(m.Retval))
3126         return buf.Bytes(), nil
3127 }
3128 func (m *OneRlocProbeEnableDisableReply) Unmarshal(b []byte) error {
3129         buf := codec.NewBuffer(b)
3130         m.Retval = int32(buf.DecodeUint32())
3131         return nil
3132 }
3133
3134 // OneSetTransportProtocol defines message 'one_set_transport_protocol'.
3135 type OneSetTransportProtocol struct {
3136         Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"`
3137 }
3138
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
3144 }
3145
3146 func (m *OneSetTransportProtocol) Size() int {
3147         if m == nil {
3148                 return 0
3149         }
3150         var size int
3151         size += 1 // m.Protocol
3152         return size
3153 }
3154 func (m *OneSetTransportProtocol) Marshal(b []byte) ([]byte, error) {
3155         var buf *codec.Buffer
3156         if b == nil {
3157                 buf = codec.NewBuffer(make([]byte, m.Size()))
3158         } else {
3159                 buf = codec.NewBuffer(b)
3160         }
3161         buf.EncodeUint8(uint8(m.Protocol))
3162         return buf.Bytes(), nil
3163 }
3164 func (m *OneSetTransportProtocol) Unmarshal(b []byte) error {
3165         buf := codec.NewBuffer(b)
3166         m.Protocol = buf.DecodeUint8()
3167         return nil
3168 }
3169
3170 // OneSetTransportProtocolReply defines message 'one_set_transport_protocol_reply'.
3171 type OneSetTransportProtocolReply struct {
3172         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3173 }
3174
3175 func (m *OneSetTransportProtocolReply) Reset() { *m = OneSetTransportProtocolReply{} }
3176 func (*OneSetTransportProtocolReply) GetMessageName() string {
3177         return "one_set_transport_protocol_reply"
3178 }
3179 func (*OneSetTransportProtocolReply) GetCrcString() string { return "e8d4e804" }
3180 func (*OneSetTransportProtocolReply) GetMessageType() api.MessageType {
3181         return api.ReplyMessage
3182 }
3183
3184 func (m *OneSetTransportProtocolReply) Size() int {
3185         if m == nil {
3186                 return 0
3187         }
3188         var size int
3189         size += 4 // m.Retval
3190         return size
3191 }
3192 func (m *OneSetTransportProtocolReply) Marshal(b []byte) ([]byte, error) {
3193         var buf *codec.Buffer
3194         if b == nil {
3195                 buf = codec.NewBuffer(make([]byte, m.Size()))
3196         } else {
3197                 buf = codec.NewBuffer(b)
3198         }
3199         buf.EncodeUint32(uint32(m.Retval))
3200         return buf.Bytes(), nil
3201 }
3202 func (m *OneSetTransportProtocolReply) Unmarshal(b []byte) error {
3203         buf := codec.NewBuffer(b)
3204         m.Retval = int32(buf.DecodeUint32())
3205         return nil
3206 }
3207
3208 // OneShowPetrMode defines message 'one_show_petr_mode'.
3209 type OneShowPetrMode struct{}
3210
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
3216 }
3217
3218 func (m *OneShowPetrMode) Size() int {
3219         if m == nil {
3220                 return 0
3221         }
3222         var size int
3223         return size
3224 }
3225 func (m *OneShowPetrMode) Marshal(b []byte) ([]byte, error) {
3226         var buf *codec.Buffer
3227         if b == nil {
3228                 buf = codec.NewBuffer(make([]byte, m.Size()))
3229         } else {
3230                 buf = codec.NewBuffer(b)
3231         }
3232         return buf.Bytes(), nil
3233 }
3234 func (m *OneShowPetrMode) Unmarshal(b []byte) error {
3235         return nil
3236 }
3237
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"`
3242 }
3243
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
3249 }
3250
3251 func (m *OneShowPetrModeReply) Size() int {
3252         if m == nil {
3253                 return 0
3254         }
3255         var size int
3256         size += 4 // m.Retval
3257         size += 1 // m.IsEnable
3258         return size
3259 }
3260 func (m *OneShowPetrModeReply) Marshal(b []byte) ([]byte, error) {
3261         var buf *codec.Buffer
3262         if b == nil {
3263                 buf = codec.NewBuffer(make([]byte, m.Size()))
3264         } else {
3265                 buf = codec.NewBuffer(b)
3266         }
3267         buf.EncodeUint32(uint32(m.Retval))
3268         buf.EncodeBool(m.IsEnable)
3269         return buf.Bytes(), nil
3270 }
3271 func (m *OneShowPetrModeReply) Unmarshal(b []byte) error {
3272         buf := codec.NewBuffer(b)
3273         m.Retval = int32(buf.DecodeUint32())
3274         m.IsEnable = buf.DecodeBool()
3275         return nil
3276 }
3277
3278 // OneShowPitrMode defines message 'one_show_pitr_mode'.
3279 type OneShowPitrMode struct{}
3280
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
3286 }
3287
3288 func (m *OneShowPitrMode) Size() int {
3289         if m == nil {
3290                 return 0
3291         }
3292         var size int
3293         return size
3294 }
3295 func (m *OneShowPitrMode) Marshal(b []byte) ([]byte, error) {
3296         var buf *codec.Buffer
3297         if b == nil {
3298                 buf = codec.NewBuffer(make([]byte, m.Size()))
3299         } else {
3300                 buf = codec.NewBuffer(b)
3301         }
3302         return buf.Bytes(), nil
3303 }
3304 func (m *OneShowPitrMode) Unmarshal(b []byte) error {
3305         return nil
3306 }
3307
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"`
3312 }
3313
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
3319 }
3320
3321 func (m *OneShowPitrModeReply) Size() int {
3322         if m == nil {
3323                 return 0
3324         }
3325         var size int
3326         size += 4 // m.Retval
3327         size += 1 // m.IsEnable
3328         return size
3329 }
3330 func (m *OneShowPitrModeReply) Marshal(b []byte) ([]byte, error) {
3331         var buf *codec.Buffer
3332         if b == nil {
3333                 buf = codec.NewBuffer(make([]byte, m.Size()))
3334         } else {
3335                 buf = codec.NewBuffer(b)
3336         }
3337         buf.EncodeUint32(uint32(m.Retval))
3338         buf.EncodeBool(m.IsEnable)
3339         return buf.Bytes(), nil
3340 }
3341 func (m *OneShowPitrModeReply) Unmarshal(b []byte) error {
3342         buf := codec.NewBuffer(b)
3343         m.Retval = int32(buf.DecodeUint32())
3344         m.IsEnable = buf.DecodeBool()
3345         return nil
3346 }
3347
3348 // OneShowXtrMode defines message 'one_show_xtr_mode'.
3349 type OneShowXtrMode struct{}
3350
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
3356 }
3357
3358 func (m *OneShowXtrMode) Size() int {
3359         if m == nil {
3360                 return 0
3361         }
3362         var size int
3363         return size
3364 }
3365 func (m *OneShowXtrMode) Marshal(b []byte) ([]byte, error) {
3366         var buf *codec.Buffer
3367         if b == nil {
3368                 buf = codec.NewBuffer(make([]byte, m.Size()))
3369         } else {
3370                 buf = codec.NewBuffer(b)
3371         }
3372         return buf.Bytes(), nil
3373 }
3374 func (m *OneShowXtrMode) Unmarshal(b []byte) error {
3375         return nil
3376 }
3377
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"`
3382 }
3383
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
3389 }
3390
3391 func (m *OneShowXtrModeReply) Size() int {
3392         if m == nil {
3393                 return 0
3394         }
3395         var size int
3396         size += 4 // m.Retval
3397         size += 1 // m.IsEnable
3398         return size
3399 }
3400 func (m *OneShowXtrModeReply) Marshal(b []byte) ([]byte, error) {
3401         var buf *codec.Buffer
3402         if b == nil {
3403                 buf = codec.NewBuffer(make([]byte, m.Size()))
3404         } else {
3405                 buf = codec.NewBuffer(b)
3406         }
3407         buf.EncodeUint32(uint32(m.Retval))
3408         buf.EncodeBool(m.IsEnable)
3409         return buf.Bytes(), nil
3410 }
3411 func (m *OneShowXtrModeReply) Unmarshal(b []byte) error {
3412         buf := codec.NewBuffer(b)
3413         m.Retval = int32(buf.DecodeUint32())
3414         m.IsEnable = buf.DecodeBool()
3415         return nil
3416 }
3417
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"`
3427 }
3428
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
3434 }
3435
3436 func (m *OneStatsDetails) Size() int {
3437         if m == nil {
3438                 return 0
3439         }
3440         var size int
3441         size += 4      // m.Vni
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
3452         return size
3453 }
3454 func (m *OneStatsDetails) Marshal(b []byte) ([]byte, error) {
3455         var buf *codec.Buffer
3456         if b == nil {
3457                 buf = codec.NewBuffer(make([]byte, m.Size()))
3458         } else {
3459                 buf = codec.NewBuffer(b)
3460         }
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
3473 }
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()
3487         return nil
3488 }
3489
3490 // OneStatsDump defines message 'one_stats_dump'.
3491 type OneStatsDump struct{}
3492
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
3498 }
3499
3500 func (m *OneStatsDump) Size() int {
3501         if m == nil {
3502                 return 0
3503         }
3504         var size int
3505         return size
3506 }
3507 func (m *OneStatsDump) Marshal(b []byte) ([]byte, error) {
3508         var buf *codec.Buffer
3509         if b == nil {
3510                 buf = codec.NewBuffer(make([]byte, m.Size()))
3511         } else {
3512                 buf = codec.NewBuffer(b)
3513         }
3514         return buf.Bytes(), nil
3515 }
3516 func (m *OneStatsDump) Unmarshal(b []byte) error {
3517         return nil
3518 }
3519
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"`
3523 }
3524
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
3530 }
3531
3532 func (m *OneStatsEnableDisable) Size() int {
3533         if m == nil {
3534                 return 0
3535         }
3536         var size int
3537         size += 1 // m.IsEnable
3538         return size
3539 }
3540 func (m *OneStatsEnableDisable) Marshal(b []byte) ([]byte, error) {
3541         var buf *codec.Buffer
3542         if b == nil {
3543                 buf = codec.NewBuffer(make([]byte, m.Size()))
3544         } else {
3545                 buf = codec.NewBuffer(b)
3546         }
3547         buf.EncodeBool(m.IsEnable)
3548         return buf.Bytes(), nil
3549 }
3550 func (m *OneStatsEnableDisable) Unmarshal(b []byte) error {
3551         buf := codec.NewBuffer(b)
3552         m.IsEnable = buf.DecodeBool()
3553         return nil
3554 }
3555
3556 // OneStatsEnableDisableReply defines message 'one_stats_enable_disable_reply'.
3557 type OneStatsEnableDisableReply struct {
3558         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3559 }
3560
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
3566 }
3567
3568 func (m *OneStatsEnableDisableReply) Size() int {
3569         if m == nil {
3570                 return 0
3571         }
3572         var size int
3573         size += 4 // m.Retval
3574         return size
3575 }
3576 func (m *OneStatsEnableDisableReply) Marshal(b []byte) ([]byte, error) {
3577         var buf *codec.Buffer
3578         if b == nil {
3579                 buf = codec.NewBuffer(make([]byte, m.Size()))
3580         } else {
3581                 buf = codec.NewBuffer(b)
3582         }
3583         buf.EncodeUint32(uint32(m.Retval))
3584         return buf.Bytes(), nil
3585 }
3586 func (m *OneStatsEnableDisableReply) Unmarshal(b []byte) error {
3587         buf := codec.NewBuffer(b)
3588         m.Retval = int32(buf.DecodeUint32())
3589         return nil
3590 }
3591
3592 // OneStatsFlush defines message 'one_stats_flush'.
3593 type OneStatsFlush struct{}
3594
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
3600 }
3601
3602 func (m *OneStatsFlush) Size() int {
3603         if m == nil {
3604                 return 0
3605         }
3606         var size int
3607         return size
3608 }
3609 func (m *OneStatsFlush) Marshal(b []byte) ([]byte, error) {
3610         var buf *codec.Buffer
3611         if b == nil {
3612                 buf = codec.NewBuffer(make([]byte, m.Size()))
3613         } else {
3614                 buf = codec.NewBuffer(b)
3615         }
3616         return buf.Bytes(), nil
3617 }
3618 func (m *OneStatsFlush) Unmarshal(b []byte) error {
3619         return nil
3620 }
3621
3622 // OneStatsFlushReply defines message 'one_stats_flush_reply'.
3623 type OneStatsFlushReply struct {
3624         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3625 }
3626
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
3632 }
3633
3634 func (m *OneStatsFlushReply) Size() int {
3635         if m == nil {
3636                 return 0
3637         }
3638         var size int
3639         size += 4 // m.Retval
3640         return size
3641 }
3642 func (m *OneStatsFlushReply) Marshal(b []byte) ([]byte, error) {
3643         var buf *codec.Buffer
3644         if b == nil {
3645                 buf = codec.NewBuffer(make([]byte, m.Size()))
3646         } else {
3647                 buf = codec.NewBuffer(b)
3648         }
3649         buf.EncodeUint32(uint32(m.Retval))
3650         return buf.Bytes(), nil
3651 }
3652 func (m *OneStatsFlushReply) Unmarshal(b []byte) error {
3653         buf := codec.NewBuffer(b)
3654         m.Retval = int32(buf.DecodeUint32())
3655         return nil
3656 }
3657
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"`
3662 }
3663
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
3669 }
3670
3671 func (m *OneUsePetr) Size() int {
3672         if m == nil {
3673                 return 0
3674         }
3675         var size int
3676         size += 1      // m.IPAddress.Af
3677         size += 1 * 16 // m.IPAddress.Un
3678         size += 1      // m.IsAdd
3679         return size
3680 }
3681 func (m *OneUsePetr) Marshal(b []byte) ([]byte, error) {
3682         var buf *codec.Buffer
3683         if b == nil {
3684                 buf = codec.NewBuffer(make([]byte, m.Size()))
3685         } else {
3686                 buf = codec.NewBuffer(b)
3687         }
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
3692 }
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()
3698         return nil
3699 }
3700
3701 // OneUsePetrReply defines message 'one_use_petr_reply'.
3702 type OneUsePetrReply struct {
3703         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3704 }
3705
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
3711 }
3712
3713 func (m *OneUsePetrReply) Size() int {
3714         if m == nil {
3715                 return 0
3716         }
3717         var size int
3718         size += 4 // m.Retval
3719         return size
3720 }
3721 func (m *OneUsePetrReply) Marshal(b []byte) ([]byte, error) {
3722         var buf *codec.Buffer
3723         if b == nil {
3724                 buf = codec.NewBuffer(make([]byte, m.Size()))
3725         } else {
3726                 buf = codec.NewBuffer(b)
3727         }
3728         buf.EncodeUint32(uint32(m.Retval))
3729         return buf.Bytes(), nil
3730 }
3731 func (m *OneUsePetrReply) Unmarshal(b []byte) error {
3732         buf := codec.NewBuffer(b)
3733         m.Retval = int32(buf.DecodeUint32())
3734         return nil
3735 }
3736
3737 // ShowOneMapRegisterFallbackThreshold defines message 'show_one_map_register_fallback_threshold'.
3738 type ShowOneMapRegisterFallbackThreshold struct{}
3739
3740 func (m *ShowOneMapRegisterFallbackThreshold) Reset() { *m = ShowOneMapRegisterFallbackThreshold{} }
3741 func (*ShowOneMapRegisterFallbackThreshold) GetMessageName() string {
3742         return "show_one_map_register_fallback_threshold"
3743 }
3744 func (*ShowOneMapRegisterFallbackThreshold) GetCrcString() string { return "51077d14" }
3745 func (*ShowOneMapRegisterFallbackThreshold) GetMessageType() api.MessageType {
3746         return api.RequestMessage
3747 }
3748
3749 func (m *ShowOneMapRegisterFallbackThreshold) Size() int {
3750         if m == nil {
3751                 return 0
3752         }
3753         var size int
3754         return size
3755 }
3756 func (m *ShowOneMapRegisterFallbackThreshold) Marshal(b []byte) ([]byte, error) {
3757         var buf *codec.Buffer
3758         if b == nil {
3759                 buf = codec.NewBuffer(make([]byte, m.Size()))
3760         } else {
3761                 buf = codec.NewBuffer(b)
3762         }
3763         return buf.Bytes(), nil
3764 }
3765 func (m *ShowOneMapRegisterFallbackThreshold) Unmarshal(b []byte) error {
3766         return nil
3767 }
3768
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"`
3773 }
3774
3775 func (m *ShowOneMapRegisterFallbackThresholdReply) Reset() {
3776         *m = ShowOneMapRegisterFallbackThresholdReply{}
3777 }
3778 func (*ShowOneMapRegisterFallbackThresholdReply) GetMessageName() string {
3779         return "show_one_map_register_fallback_threshold_reply"
3780 }
3781 func (*ShowOneMapRegisterFallbackThresholdReply) GetCrcString() string { return "c93a9113" }
3782 func (*ShowOneMapRegisterFallbackThresholdReply) GetMessageType() api.MessageType {
3783         return api.ReplyMessage
3784 }
3785
3786 func (m *ShowOneMapRegisterFallbackThresholdReply) Size() int {
3787         if m == nil {
3788                 return 0
3789         }
3790         var size int
3791         size += 4 // m.Retval
3792         size += 4 // m.Value
3793         return size
3794 }
3795 func (m *ShowOneMapRegisterFallbackThresholdReply) Marshal(b []byte) ([]byte, error) {
3796         var buf *codec.Buffer
3797         if b == nil {
3798                 buf = codec.NewBuffer(make([]byte, m.Size()))
3799         } else {
3800                 buf = codec.NewBuffer(b)
3801         }
3802         buf.EncodeUint32(uint32(m.Retval))
3803         buf.EncodeUint32(uint32(m.Value))
3804         return buf.Bytes(), nil
3805 }
3806 func (m *ShowOneMapRegisterFallbackThresholdReply) Unmarshal(b []byte) error {
3807         buf := codec.NewBuffer(b)
3808         m.Retval = int32(buf.DecodeUint32())
3809         m.Value = buf.DecodeUint32()
3810         return nil
3811 }
3812
3813 // ShowOneMapRegisterState defines message 'show_one_map_register_state'.
3814 type ShowOneMapRegisterState struct{}
3815
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
3821 }
3822
3823 func (m *ShowOneMapRegisterState) Size() int {
3824         if m == nil {
3825                 return 0
3826         }
3827         var size int
3828         return size
3829 }
3830 func (m *ShowOneMapRegisterState) Marshal(b []byte) ([]byte, error) {
3831         var buf *codec.Buffer
3832         if b == nil {
3833                 buf = codec.NewBuffer(make([]byte, m.Size()))
3834         } else {
3835                 buf = codec.NewBuffer(b)
3836         }
3837         return buf.Bytes(), nil
3838 }
3839 func (m *ShowOneMapRegisterState) Unmarshal(b []byte) error {
3840         return nil
3841 }
3842
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"`
3847 }
3848
3849 func (m *ShowOneMapRegisterStateReply) Reset() { *m = ShowOneMapRegisterStateReply{} }
3850 func (*ShowOneMapRegisterStateReply) GetMessageName() string {
3851         return "show_one_map_register_state_reply"
3852 }
3853 func (*ShowOneMapRegisterStateReply) GetCrcString() string { return "f15abb16" }
3854 func (*ShowOneMapRegisterStateReply) GetMessageType() api.MessageType {
3855         return api.ReplyMessage
3856 }
3857
3858 func (m *ShowOneMapRegisterStateReply) Size() int {
3859         if m == nil {
3860                 return 0
3861         }
3862         var size int
3863         size += 4 // m.Retval
3864         size += 1 // m.IsEnable
3865         return size
3866 }
3867 func (m *ShowOneMapRegisterStateReply) Marshal(b []byte) ([]byte, error) {
3868         var buf *codec.Buffer
3869         if b == nil {
3870                 buf = codec.NewBuffer(make([]byte, m.Size()))
3871         } else {
3872                 buf = codec.NewBuffer(b)
3873         }
3874         buf.EncodeUint32(uint32(m.Retval))
3875         buf.EncodeBool(m.IsEnable)
3876         return buf.Bytes(), nil
3877 }
3878 func (m *ShowOneMapRegisterStateReply) Unmarshal(b []byte) error {
3879         buf := codec.NewBuffer(b)
3880         m.Retval = int32(buf.DecodeUint32())
3881         m.IsEnable = buf.DecodeBool()
3882         return nil
3883 }
3884
3885 // ShowOneMapRegisterTTL defines message 'show_one_map_register_ttl'.
3886 type ShowOneMapRegisterTTL struct{}
3887
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
3893 }
3894
3895 func (m *ShowOneMapRegisterTTL) Size() int {
3896         if m == nil {
3897                 return 0
3898         }
3899         var size int
3900         return size
3901 }
3902 func (m *ShowOneMapRegisterTTL) Marshal(b []byte) ([]byte, error) {
3903         var buf *codec.Buffer
3904         if b == nil {
3905                 buf = codec.NewBuffer(make([]byte, m.Size()))
3906         } else {
3907                 buf = codec.NewBuffer(b)
3908         }
3909         return buf.Bytes(), nil
3910 }
3911 func (m *ShowOneMapRegisterTTL) Unmarshal(b []byte) error {
3912         return nil
3913 }
3914
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"`
3919 }
3920
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
3926 }
3927
3928 func (m *ShowOneMapRegisterTTLReply) Size() int {
3929         if m == nil {
3930                 return 0
3931         }
3932         var size int
3933         size += 4 // m.Retval
3934         size += 4 // m.TTL
3935         return size
3936 }
3937 func (m *ShowOneMapRegisterTTLReply) Marshal(b []byte) ([]byte, error) {
3938         var buf *codec.Buffer
3939         if b == nil {
3940                 buf = codec.NewBuffer(make([]byte, m.Size()))
3941         } else {
3942                 buf = codec.NewBuffer(b)
3943         }
3944         buf.EncodeUint32(uint32(m.Retval))
3945         buf.EncodeUint32(uint32(m.TTL))
3946         return buf.Bytes(), nil
3947 }
3948 func (m *ShowOneMapRegisterTTLReply) Unmarshal(b []byte) error {
3949         buf := codec.NewBuffer(b)
3950         m.Retval = int32(buf.DecodeUint32())
3951         m.TTL = buf.DecodeUint32()
3952         return nil
3953 }
3954
3955 // ShowOneMapRequestMode defines message 'show_one_map_request_mode'.
3956 type ShowOneMapRequestMode struct{}
3957
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
3963 }
3964
3965 func (m *ShowOneMapRequestMode) Size() int {
3966         if m == nil {
3967                 return 0
3968         }
3969         var size int
3970         return size
3971 }
3972 func (m *ShowOneMapRequestMode) Marshal(b []byte) ([]byte, error) {
3973         var buf *codec.Buffer
3974         if b == nil {
3975                 buf = codec.NewBuffer(make([]byte, m.Size()))
3976         } else {
3977                 buf = codec.NewBuffer(b)
3978         }
3979         return buf.Bytes(), nil
3980 }
3981 func (m *ShowOneMapRequestMode) Unmarshal(b []byte) error {
3982         return nil
3983 }
3984
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"`
3989 }
3990
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
3996 }
3997
3998 func (m *ShowOneMapRequestModeReply) Size() int {
3999         if m == nil {
4000                 return 0
4001         }
4002         var size int
4003         size += 4 // m.Retval
4004         size += 4 // m.Mode
4005         return size
4006 }
4007 func (m *ShowOneMapRequestModeReply) Marshal(b []byte) ([]byte, error) {
4008         var buf *codec.Buffer
4009         if b == nil {
4010                 buf = codec.NewBuffer(make([]byte, m.Size()))
4011         } else {
4012                 buf = codec.NewBuffer(b)
4013         }
4014         buf.EncodeUint32(uint32(m.Retval))
4015         buf.EncodeUint32(uint32(m.Mode))
4016         return buf.Bytes(), nil
4017 }
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())
4022         return nil
4023 }
4024
4025 // ShowOneNshMapping defines message 'show_one_nsh_mapping'.
4026 type ShowOneNshMapping struct{}
4027
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
4033 }
4034
4035 func (m *ShowOneNshMapping) Size() int {
4036         if m == nil {
4037                 return 0
4038         }
4039         var size int
4040         return size
4041 }
4042 func (m *ShowOneNshMapping) Marshal(b []byte) ([]byte, error) {
4043         var buf *codec.Buffer
4044         if b == nil {
4045                 buf = codec.NewBuffer(make([]byte, m.Size()))
4046         } else {
4047                 buf = codec.NewBuffer(b)
4048         }
4049         return buf.Bytes(), nil
4050 }
4051 func (m *ShowOneNshMapping) Unmarshal(b []byte) error {
4052         return nil
4053 }
4054
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"`
4060 }
4061
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
4067 }
4068
4069 func (m *ShowOneNshMappingReply) Size() int {
4070         if m == nil {
4071                 return 0
4072         }
4073         var size int
4074         size += 4  // m.Retval
4075         size += 1  // m.IsSet
4076         size += 64 // m.LocatorSetName
4077         return size
4078 }
4079 func (m *ShowOneNshMappingReply) Marshal(b []byte) ([]byte, error) {
4080         var buf *codec.Buffer
4081         if b == nil {
4082                 buf = codec.NewBuffer(make([]byte, m.Size()))
4083         } else {
4084                 buf = codec.NewBuffer(b)
4085         }
4086         buf.EncodeUint32(uint32(m.Retval))
4087         buf.EncodeBool(m.IsSet)
4088         buf.EncodeString(m.LocatorSetName, 64)
4089         return buf.Bytes(), nil
4090 }
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)
4096         return nil
4097 }
4098
4099 // ShowOnePitr defines message 'show_one_pitr'.
4100 type ShowOnePitr struct{}
4101
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
4107 }
4108
4109 func (m *ShowOnePitr) Size() int {
4110         if m == nil {
4111                 return 0
4112         }
4113         var size int
4114         return size
4115 }
4116 func (m *ShowOnePitr) Marshal(b []byte) ([]byte, error) {
4117         var buf *codec.Buffer
4118         if b == nil {
4119                 buf = codec.NewBuffer(make([]byte, m.Size()))
4120         } else {
4121                 buf = codec.NewBuffer(b)
4122         }
4123         return buf.Bytes(), nil
4124 }
4125 func (m *ShowOnePitr) Unmarshal(b []byte) error {
4126         return nil
4127 }
4128
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"`
4134 }
4135
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
4141 }
4142
4143 func (m *ShowOnePitrReply) Size() int {
4144         if m == nil {
4145                 return 0
4146         }
4147         var size int
4148         size += 4  // m.Retval
4149         size += 1  // m.Status
4150         size += 64 // m.LocatorSetName
4151         return size
4152 }
4153 func (m *ShowOnePitrReply) Marshal(b []byte) ([]byte, error) {
4154         var buf *codec.Buffer
4155         if b == nil {
4156                 buf = codec.NewBuffer(make([]byte, m.Size()))
4157         } else {
4158                 buf = codec.NewBuffer(b)
4159         }
4160         buf.EncodeUint32(uint32(m.Retval))
4161         buf.EncodeBool(m.Status)
4162         buf.EncodeString(m.LocatorSetName, 64)
4163         return buf.Bytes(), nil
4164 }
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)
4170         return nil
4171 }
4172
4173 // ShowOneRlocProbeState defines message 'show_one_rloc_probe_state'.
4174 type ShowOneRlocProbeState struct{}
4175
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
4181 }
4182
4183 func (m *ShowOneRlocProbeState) Size() int {
4184         if m == nil {
4185                 return 0
4186         }
4187         var size int
4188         return size
4189 }
4190 func (m *ShowOneRlocProbeState) Marshal(b []byte) ([]byte, error) {
4191         var buf *codec.Buffer
4192         if b == nil {
4193                 buf = codec.NewBuffer(make([]byte, m.Size()))
4194         } else {
4195                 buf = codec.NewBuffer(b)
4196         }
4197         return buf.Bytes(), nil
4198 }
4199 func (m *ShowOneRlocProbeState) Unmarshal(b []byte) error {
4200         return nil
4201 }
4202
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"`
4207 }
4208
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
4214 }
4215
4216 func (m *ShowOneRlocProbeStateReply) Size() int {
4217         if m == nil {
4218                 return 0
4219         }
4220         var size int
4221         size += 4 // m.Retval
4222         size += 1 // m.IsEnable
4223         return size
4224 }
4225 func (m *ShowOneRlocProbeStateReply) Marshal(b []byte) ([]byte, error) {
4226         var buf *codec.Buffer
4227         if b == nil {
4228                 buf = codec.NewBuffer(make([]byte, m.Size()))
4229         } else {
4230                 buf = codec.NewBuffer(b)
4231         }
4232         buf.EncodeUint32(uint32(m.Retval))
4233         buf.EncodeBool(m.IsEnable)
4234         return buf.Bytes(), nil
4235 }
4236 func (m *ShowOneRlocProbeStateReply) Unmarshal(b []byte) error {
4237         buf := codec.NewBuffer(b)
4238         m.Retval = int32(buf.DecodeUint32())
4239         m.IsEnable = buf.DecodeBool()
4240         return nil
4241 }
4242
4243 // ShowOneStatsEnableDisable defines message 'show_one_stats_enable_disable'.
4244 type ShowOneStatsEnableDisable struct{}
4245
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
4251 }
4252
4253 func (m *ShowOneStatsEnableDisable) Size() int {
4254         if m == nil {
4255                 return 0
4256         }
4257         var size int
4258         return size
4259 }
4260 func (m *ShowOneStatsEnableDisable) Marshal(b []byte) ([]byte, error) {
4261         var buf *codec.Buffer
4262         if b == nil {
4263                 buf = codec.NewBuffer(make([]byte, m.Size()))
4264         } else {
4265                 buf = codec.NewBuffer(b)
4266         }
4267         return buf.Bytes(), nil
4268 }
4269 func (m *ShowOneStatsEnableDisable) Unmarshal(b []byte) error {
4270         return nil
4271 }
4272
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"`
4277 }
4278
4279 func (m *ShowOneStatsEnableDisableReply) Reset() { *m = ShowOneStatsEnableDisableReply{} }
4280 func (*ShowOneStatsEnableDisableReply) GetMessageName() string {
4281         return "show_one_stats_enable_disable_reply"
4282 }
4283 func (*ShowOneStatsEnableDisableReply) GetCrcString() string { return "f15abb16" }
4284 func (*ShowOneStatsEnableDisableReply) GetMessageType() api.MessageType {
4285         return api.ReplyMessage
4286 }
4287
4288 func (m *ShowOneStatsEnableDisableReply) Size() int {
4289         if m == nil {
4290                 return 0
4291         }
4292         var size int
4293         size += 4 // m.Retval
4294         size += 1 // m.IsEnable
4295         return size
4296 }
4297 func (m *ShowOneStatsEnableDisableReply) Marshal(b []byte) ([]byte, error) {
4298         var buf *codec.Buffer
4299         if b == nil {
4300                 buf = codec.NewBuffer(make([]byte, m.Size()))
4301         } else {
4302                 buf = codec.NewBuffer(b)
4303         }
4304         buf.EncodeUint32(uint32(m.Retval))
4305         buf.EncodeBool(m.IsEnable)
4306         return buf.Bytes(), nil
4307 }
4308 func (m *ShowOneStatsEnableDisableReply) Unmarshal(b []byte) error {
4309         buf := codec.NewBuffer(b)
4310         m.Retval = int32(buf.DecodeUint32())
4311         m.IsEnable = buf.DecodeBool()
4312         return nil
4313 }
4314
4315 // ShowOneStatus defines message 'show_one_status'.
4316 type ShowOneStatus struct{}
4317
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
4323 }
4324
4325 func (m *ShowOneStatus) Size() int {
4326         if m == nil {
4327                 return 0
4328         }
4329         var size int
4330         return size
4331 }
4332 func (m *ShowOneStatus) Marshal(b []byte) ([]byte, error) {
4333         var buf *codec.Buffer
4334         if b == nil {
4335                 buf = codec.NewBuffer(make([]byte, m.Size()))
4336         } else {
4337                 buf = codec.NewBuffer(b)
4338         }
4339         return buf.Bytes(), nil
4340 }
4341 func (m *ShowOneStatus) Unmarshal(b []byte) error {
4342         return nil
4343 }
4344
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"`
4350 }
4351
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
4357 }
4358
4359 func (m *ShowOneStatusReply) Size() int {
4360         if m == nil {
4361                 return 0
4362         }
4363         var size int
4364         size += 4 // m.Retval
4365         size += 1 // m.FeatureStatus
4366         size += 1 // m.GpeStatus
4367         return size
4368 }
4369 func (m *ShowOneStatusReply) Marshal(b []byte) ([]byte, error) {
4370         var buf *codec.Buffer
4371         if b == nil {
4372                 buf = codec.NewBuffer(make([]byte, m.Size()))
4373         } else {
4374                 buf = codec.NewBuffer(b)
4375         }
4376         buf.EncodeUint32(uint32(m.Retval))
4377         buf.EncodeBool(m.FeatureStatus)
4378         buf.EncodeBool(m.GpeStatus)
4379         return buf.Bytes(), nil
4380 }
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()
4386         return nil
4387 }
4388
4389 // ShowOneUsePetr defines message 'show_one_use_petr'.
4390 type ShowOneUsePetr struct{}
4391
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
4397 }
4398
4399 func (m *ShowOneUsePetr) Size() int {
4400         if m == nil {
4401                 return 0
4402         }
4403         var size int
4404         return size
4405 }
4406 func (m *ShowOneUsePetr) Marshal(b []byte) ([]byte, error) {
4407         var buf *codec.Buffer
4408         if b == nil {
4409                 buf = codec.NewBuffer(make([]byte, m.Size()))
4410         } else {
4411                 buf = codec.NewBuffer(b)
4412         }
4413         return buf.Bytes(), nil
4414 }
4415 func (m *ShowOneUsePetr) Unmarshal(b []byte) error {
4416         return nil
4417 }
4418
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"`
4424 }
4425
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
4431 }
4432
4433 func (m *ShowOneUsePetrReply) Size() int {
4434         if m == nil {
4435                 return 0
4436         }
4437         var 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
4442         return size
4443 }
4444 func (m *ShowOneUsePetrReply) Marshal(b []byte) ([]byte, error) {
4445         var buf *codec.Buffer
4446         if b == nil {
4447                 buf = codec.NewBuffer(make([]byte, m.Size()))
4448         } else {
4449                 buf = codec.NewBuffer(b)
4450         }
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
4456 }
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))
4463         return nil
4464 }
4465
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")
4576 }
4577
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),
4667                 (*OneUsePetr)(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),
4689         }
4690 }