1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
5 // source: /usr/share/vpp/api/core/lisp.api.json
7 // Package lisp contains generated bindings for API file lisp.api.
17 api "git.fd.io/govpp.git/api"
18 _ "git.fd.io/govpp.git/binapi/ethernet_types"
19 interface_types "git.fd.io/govpp.git/binapi/interface_types"
20 ip_types "git.fd.io/govpp.git/binapi/ip_types"
21 lisp_types "git.fd.io/govpp.git/binapi/lisp_types"
22 codec "git.fd.io/govpp.git/codec"
26 // This is a compile-time assertion to ensure that this generated file
27 // is compatible with the GoVPP api package it is being compiled against.
28 // A compilation error at this line likely means your copy of the
29 // GoVPP api package needs to be updated.
30 const _ = api.GoVppAPIPackageIsVersion2
35 VersionCrc = 0xf2d169ad
38 // LispLocatorSetFilter defines enum 'lisp_locator_set_filter'.
39 type LispLocatorSetFilter uint8
42 LISP_LOCATOR_SET_FILTER_API_ALL LispLocatorSetFilter = 0
43 LISP_LOCATOR_SET_FILTER_API_LOCAL LispLocatorSetFilter = 1
44 LISP_LOCATOR_SET_FILTER_API_REMOTE LispLocatorSetFilter = 2
48 LispLocatorSetFilter_name = map[uint8]string{
49 0: "LISP_LOCATOR_SET_FILTER_API_ALL",
50 1: "LISP_LOCATOR_SET_FILTER_API_LOCAL",
51 2: "LISP_LOCATOR_SET_FILTER_API_REMOTE",
53 LispLocatorSetFilter_value = map[string]uint8{
54 "LISP_LOCATOR_SET_FILTER_API_ALL": 0,
55 "LISP_LOCATOR_SET_FILTER_API_LOCAL": 1,
56 "LISP_LOCATOR_SET_FILTER_API_REMOTE": 2,
60 func (x LispLocatorSetFilter) String() string {
61 s, ok := LispLocatorSetFilter_name[uint8(x)]
65 return "LispLocatorSetFilter(" + strconv.Itoa(int(x)) + ")"
68 // LispAdjacency defines type 'lisp_adjacency'.
69 type LispAdjacency struct {
70 Reid lisp_types.Eid `binapi:"eid,name=reid" json:"reid,omitempty"`
71 Leid lisp_types.Eid `binapi:"eid,name=leid" json:"leid,omitempty"`
74 // LispAddDelAdjacency defines message 'lisp_add_del_adjacency'.
75 type LispAddDelAdjacency struct {
76 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
77 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
78 Reid lisp_types.Eid `binapi:"eid,name=reid" json:"reid,omitempty"`
79 Leid lisp_types.Eid `binapi:"eid,name=leid" json:"leid,omitempty"`
82 func (m *LispAddDelAdjacency) Reset() { *m = LispAddDelAdjacency{} }
83 func (*LispAddDelAdjacency) GetMessageName() string { return "lisp_add_del_adjacency" }
84 func (*LispAddDelAdjacency) GetCrcString() string { return "cf5edb61" }
85 func (*LispAddDelAdjacency) GetMessageType() api.MessageType {
86 return api.RequestMessage
89 func (m *LispAddDelAdjacency) Size() int {
96 size += 1 // m.Reid.Type
97 size += 1 * 6 // m.Reid.Address
98 size += 1 // m.Leid.Type
99 size += 1 * 6 // m.Leid.Address
102 func (m *LispAddDelAdjacency) Marshal(b []byte) ([]byte, error) {
103 var buf *codec.Buffer
105 buf = codec.NewBuffer(make([]byte, m.Size()))
107 buf = codec.NewBuffer(b)
109 buf.EncodeBool(m.IsAdd)
110 buf.EncodeUint32(uint32(m.Vni))
111 buf.EncodeUint8(uint8(m.Reid.Type))
112 buf.EncodeBytes(m.Reid.Address.XXX_UnionData[:], 0)
113 buf.EncodeUint8(uint8(m.Leid.Type))
114 buf.EncodeBytes(m.Leid.Address.XXX_UnionData[:], 0)
115 return buf.Bytes(), nil
117 func (m *LispAddDelAdjacency) Unmarshal(b []byte) error {
118 buf := codec.NewBuffer(b)
119 m.IsAdd = buf.DecodeBool()
120 m.Vni = buf.DecodeUint32()
121 m.Reid.Type = lisp_types.EidType(buf.DecodeUint8())
122 copy(m.Reid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
123 m.Leid.Type = lisp_types.EidType(buf.DecodeUint8())
124 copy(m.Leid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
128 // LispAddDelAdjacencyReply defines message 'lisp_add_del_adjacency_reply'.
129 type LispAddDelAdjacencyReply struct {
130 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
133 func (m *LispAddDelAdjacencyReply) Reset() { *m = LispAddDelAdjacencyReply{} }
134 func (*LispAddDelAdjacencyReply) GetMessageName() string { return "lisp_add_del_adjacency_reply" }
135 func (*LispAddDelAdjacencyReply) GetCrcString() string { return "e8d4e804" }
136 func (*LispAddDelAdjacencyReply) GetMessageType() api.MessageType {
137 return api.ReplyMessage
140 func (m *LispAddDelAdjacencyReply) Size() int {
145 size += 4 // m.Retval
148 func (m *LispAddDelAdjacencyReply) Marshal(b []byte) ([]byte, error) {
149 var buf *codec.Buffer
151 buf = codec.NewBuffer(make([]byte, m.Size()))
153 buf = codec.NewBuffer(b)
155 buf.EncodeUint32(uint32(m.Retval))
156 return buf.Bytes(), nil
158 func (m *LispAddDelAdjacencyReply) Unmarshal(b []byte) error {
159 buf := codec.NewBuffer(b)
160 m.Retval = int32(buf.DecodeUint32())
164 // LispAddDelLocalEid defines message 'lisp_add_del_local_eid'.
165 type LispAddDelLocalEid struct {
166 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
167 Eid lisp_types.Eid `binapi:"eid,name=eid" json:"eid,omitempty"`
168 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
169 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
170 Key lisp_types.HmacKey `binapi:"hmac_key,name=key" json:"key,omitempty"`
173 func (m *LispAddDelLocalEid) Reset() { *m = LispAddDelLocalEid{} }
174 func (*LispAddDelLocalEid) GetMessageName() string { return "lisp_add_del_local_eid" }
175 func (*LispAddDelLocalEid) GetCrcString() string { return "21f573bd" }
176 func (*LispAddDelLocalEid) GetMessageType() api.MessageType {
177 return api.RequestMessage
180 func (m *LispAddDelLocalEid) Size() int {
186 size += 1 // m.Eid.Type
187 size += 1 * 6 // m.Eid.Address
188 size += 64 // m.LocatorSetName
190 size += 1 // m.Key.ID
191 size += 1 * 64 // m.Key.Key
194 func (m *LispAddDelLocalEid) Marshal(b []byte) ([]byte, error) {
195 var buf *codec.Buffer
197 buf = codec.NewBuffer(make([]byte, m.Size()))
199 buf = codec.NewBuffer(b)
201 buf.EncodeBool(m.IsAdd)
202 buf.EncodeUint8(uint8(m.Eid.Type))
203 buf.EncodeBytes(m.Eid.Address.XXX_UnionData[:], 0)
204 buf.EncodeString(m.LocatorSetName, 64)
205 buf.EncodeUint32(uint32(m.Vni))
206 buf.EncodeUint8(uint8(m.Key.ID))
207 buf.EncodeBytes(m.Key.Key[:], 64)
208 return buf.Bytes(), nil
210 func (m *LispAddDelLocalEid) Unmarshal(b []byte) error {
211 buf := codec.NewBuffer(b)
212 m.IsAdd = buf.DecodeBool()
213 m.Eid.Type = lisp_types.EidType(buf.DecodeUint8())
214 copy(m.Eid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
215 m.LocatorSetName = buf.DecodeString(64)
216 m.Vni = buf.DecodeUint32()
217 m.Key.ID = lisp_types.HmacKeyID(buf.DecodeUint8())
218 copy(m.Key.Key[:], buf.DecodeBytes(64))
222 // LispAddDelLocalEidReply defines message 'lisp_add_del_local_eid_reply'.
223 type LispAddDelLocalEidReply struct {
224 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
227 func (m *LispAddDelLocalEidReply) Reset() { *m = LispAddDelLocalEidReply{} }
228 func (*LispAddDelLocalEidReply) GetMessageName() string { return "lisp_add_del_local_eid_reply" }
229 func (*LispAddDelLocalEidReply) GetCrcString() string { return "e8d4e804" }
230 func (*LispAddDelLocalEidReply) GetMessageType() api.MessageType {
231 return api.ReplyMessage
234 func (m *LispAddDelLocalEidReply) Size() int {
239 size += 4 // m.Retval
242 func (m *LispAddDelLocalEidReply) Marshal(b []byte) ([]byte, error) {
243 var buf *codec.Buffer
245 buf = codec.NewBuffer(make([]byte, m.Size()))
247 buf = codec.NewBuffer(b)
249 buf.EncodeUint32(uint32(m.Retval))
250 return buf.Bytes(), nil
252 func (m *LispAddDelLocalEidReply) Unmarshal(b []byte) error {
253 buf := codec.NewBuffer(b)
254 m.Retval = int32(buf.DecodeUint32())
258 // LispAddDelLocator defines message 'lisp_add_del_locator'.
259 type LispAddDelLocator struct {
260 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
261 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
262 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
263 Priority uint8 `binapi:"u8,name=priority" json:"priority,omitempty"`
264 Weight uint8 `binapi:"u8,name=weight" json:"weight,omitempty"`
267 func (m *LispAddDelLocator) Reset() { *m = LispAddDelLocator{} }
268 func (*LispAddDelLocator) GetMessageName() string { return "lisp_add_del_locator" }
269 func (*LispAddDelLocator) GetCrcString() string { return "af4d8f13" }
270 func (*LispAddDelLocator) GetMessageType() api.MessageType {
271 return api.RequestMessage
274 func (m *LispAddDelLocator) Size() int {
280 size += 64 // m.LocatorSetName
281 size += 4 // m.SwIfIndex
282 size += 1 // m.Priority
283 size += 1 // m.Weight
286 func (m *LispAddDelLocator) Marshal(b []byte) ([]byte, error) {
287 var buf *codec.Buffer
289 buf = codec.NewBuffer(make([]byte, m.Size()))
291 buf = codec.NewBuffer(b)
293 buf.EncodeBool(m.IsAdd)
294 buf.EncodeString(m.LocatorSetName, 64)
295 buf.EncodeUint32(uint32(m.SwIfIndex))
296 buf.EncodeUint8(uint8(m.Priority))
297 buf.EncodeUint8(uint8(m.Weight))
298 return buf.Bytes(), nil
300 func (m *LispAddDelLocator) Unmarshal(b []byte) error {
301 buf := codec.NewBuffer(b)
302 m.IsAdd = buf.DecodeBool()
303 m.LocatorSetName = buf.DecodeString(64)
304 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
305 m.Priority = buf.DecodeUint8()
306 m.Weight = buf.DecodeUint8()
310 // LispAddDelLocatorReply defines message 'lisp_add_del_locator_reply'.
311 type LispAddDelLocatorReply struct {
312 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
315 func (m *LispAddDelLocatorReply) Reset() { *m = LispAddDelLocatorReply{} }
316 func (*LispAddDelLocatorReply) GetMessageName() string { return "lisp_add_del_locator_reply" }
317 func (*LispAddDelLocatorReply) GetCrcString() string { return "e8d4e804" }
318 func (*LispAddDelLocatorReply) GetMessageType() api.MessageType {
319 return api.ReplyMessage
322 func (m *LispAddDelLocatorReply) Size() int {
327 size += 4 // m.Retval
330 func (m *LispAddDelLocatorReply) Marshal(b []byte) ([]byte, error) {
331 var buf *codec.Buffer
333 buf = codec.NewBuffer(make([]byte, m.Size()))
335 buf = codec.NewBuffer(b)
337 buf.EncodeUint32(uint32(m.Retval))
338 return buf.Bytes(), nil
340 func (m *LispAddDelLocatorReply) Unmarshal(b []byte) error {
341 buf := codec.NewBuffer(b)
342 m.Retval = int32(buf.DecodeUint32())
346 // LispAddDelLocatorSet defines message 'lisp_add_del_locator_set'.
347 type LispAddDelLocatorSet struct {
348 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
349 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
350 LocatorNum uint32 `binapi:"u32,name=locator_num" json:"-"`
351 Locators []lisp_types.LocalLocator `binapi:"local_locator[locator_num],name=locators" json:"locators,omitempty"`
354 func (m *LispAddDelLocatorSet) Reset() { *m = LispAddDelLocatorSet{} }
355 func (*LispAddDelLocatorSet) GetMessageName() string { return "lisp_add_del_locator_set" }
356 func (*LispAddDelLocatorSet) GetCrcString() string { return "6fcd6471" }
357 func (*LispAddDelLocatorSet) GetMessageType() api.MessageType {
358 return api.RequestMessage
361 func (m *LispAddDelLocatorSet) Size() int {
367 size += 64 // m.LocatorSetName
368 size += 4 // m.LocatorNum
369 for j1 := 0; j1 < len(m.Locators); j1++ {
370 var s1 lisp_types.LocalLocator
372 if j1 < len(m.Locators) {
375 size += 4 // s1.SwIfIndex
376 size += 1 // s1.Priority
377 size += 1 // s1.Weight
381 func (m *LispAddDelLocatorSet) Marshal(b []byte) ([]byte, error) {
382 var buf *codec.Buffer
384 buf = codec.NewBuffer(make([]byte, m.Size()))
386 buf = codec.NewBuffer(b)
388 buf.EncodeBool(m.IsAdd)
389 buf.EncodeString(m.LocatorSetName, 64)
390 buf.EncodeUint32(uint32(len(m.Locators)))
391 for j0 := 0; j0 < len(m.Locators); j0++ {
392 var v0 lisp_types.LocalLocator
393 if j0 < len(m.Locators) {
396 buf.EncodeUint32(uint32(v0.SwIfIndex))
397 buf.EncodeUint8(uint8(v0.Priority))
398 buf.EncodeUint8(uint8(v0.Weight))
400 return buf.Bytes(), nil
402 func (m *LispAddDelLocatorSet) Unmarshal(b []byte) error {
403 buf := codec.NewBuffer(b)
404 m.IsAdd = buf.DecodeBool()
405 m.LocatorSetName = buf.DecodeString(64)
406 m.LocatorNum = buf.DecodeUint32()
407 m.Locators = make([]lisp_types.LocalLocator, int(m.LocatorNum))
408 for j0 := 0; j0 < len(m.Locators); j0++ {
409 m.Locators[j0].SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
410 m.Locators[j0].Priority = buf.DecodeUint8()
411 m.Locators[j0].Weight = buf.DecodeUint8()
416 // LispAddDelLocatorSetReply defines message 'lisp_add_del_locator_set_reply'.
417 type LispAddDelLocatorSetReply struct {
418 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
419 LsIndex uint32 `binapi:"u32,name=ls_index" json:"ls_index,omitempty"`
422 func (m *LispAddDelLocatorSetReply) Reset() { *m = LispAddDelLocatorSetReply{} }
423 func (*LispAddDelLocatorSetReply) GetMessageName() string { return "lisp_add_del_locator_set_reply" }
424 func (*LispAddDelLocatorSetReply) GetCrcString() string { return "b6666db4" }
425 func (*LispAddDelLocatorSetReply) GetMessageType() api.MessageType {
426 return api.ReplyMessage
429 func (m *LispAddDelLocatorSetReply) Size() int {
434 size += 4 // m.Retval
435 size += 4 // m.LsIndex
438 func (m *LispAddDelLocatorSetReply) Marshal(b []byte) ([]byte, error) {
439 var buf *codec.Buffer
441 buf = codec.NewBuffer(make([]byte, m.Size()))
443 buf = codec.NewBuffer(b)
445 buf.EncodeUint32(uint32(m.Retval))
446 buf.EncodeUint32(uint32(m.LsIndex))
447 return buf.Bytes(), nil
449 func (m *LispAddDelLocatorSetReply) Unmarshal(b []byte) error {
450 buf := codec.NewBuffer(b)
451 m.Retval = int32(buf.DecodeUint32())
452 m.LsIndex = buf.DecodeUint32()
456 // LispAddDelMapRequestItrRlocs defines message 'lisp_add_del_map_request_itr_rlocs'.
457 type LispAddDelMapRequestItrRlocs struct {
458 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
459 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
462 func (m *LispAddDelMapRequestItrRlocs) Reset() { *m = LispAddDelMapRequestItrRlocs{} }
463 func (*LispAddDelMapRequestItrRlocs) GetMessageName() string {
464 return "lisp_add_del_map_request_itr_rlocs"
466 func (*LispAddDelMapRequestItrRlocs) GetCrcString() string { return "6be88e45" }
467 func (*LispAddDelMapRequestItrRlocs) GetMessageType() api.MessageType {
468 return api.RequestMessage
471 func (m *LispAddDelMapRequestItrRlocs) Size() int {
477 size += 64 // m.LocatorSetName
480 func (m *LispAddDelMapRequestItrRlocs) Marshal(b []byte) ([]byte, error) {
481 var buf *codec.Buffer
483 buf = codec.NewBuffer(make([]byte, m.Size()))
485 buf = codec.NewBuffer(b)
487 buf.EncodeBool(m.IsAdd)
488 buf.EncodeString(m.LocatorSetName, 64)
489 return buf.Bytes(), nil
491 func (m *LispAddDelMapRequestItrRlocs) Unmarshal(b []byte) error {
492 buf := codec.NewBuffer(b)
493 m.IsAdd = buf.DecodeBool()
494 m.LocatorSetName = buf.DecodeString(64)
498 // LispAddDelMapRequestItrRlocsReply defines message 'lisp_add_del_map_request_itr_rlocs_reply'.
499 type LispAddDelMapRequestItrRlocsReply struct {
500 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
503 func (m *LispAddDelMapRequestItrRlocsReply) Reset() { *m = LispAddDelMapRequestItrRlocsReply{} }
504 func (*LispAddDelMapRequestItrRlocsReply) GetMessageName() string {
505 return "lisp_add_del_map_request_itr_rlocs_reply"
507 func (*LispAddDelMapRequestItrRlocsReply) GetCrcString() string { return "e8d4e804" }
508 func (*LispAddDelMapRequestItrRlocsReply) GetMessageType() api.MessageType {
509 return api.ReplyMessage
512 func (m *LispAddDelMapRequestItrRlocsReply) Size() int {
517 size += 4 // m.Retval
520 func (m *LispAddDelMapRequestItrRlocsReply) Marshal(b []byte) ([]byte, error) {
521 var buf *codec.Buffer
523 buf = codec.NewBuffer(make([]byte, m.Size()))
525 buf = codec.NewBuffer(b)
527 buf.EncodeUint32(uint32(m.Retval))
528 return buf.Bytes(), nil
530 func (m *LispAddDelMapRequestItrRlocsReply) Unmarshal(b []byte) error {
531 buf := codec.NewBuffer(b)
532 m.Retval = int32(buf.DecodeUint32())
536 // LispAddDelMapResolver defines message 'lisp_add_del_map_resolver'.
537 type LispAddDelMapResolver struct {
538 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
539 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
542 func (m *LispAddDelMapResolver) Reset() { *m = LispAddDelMapResolver{} }
543 func (*LispAddDelMapResolver) GetMessageName() string { return "lisp_add_del_map_resolver" }
544 func (*LispAddDelMapResolver) GetCrcString() string { return "6598ea7c" }
545 func (*LispAddDelMapResolver) GetMessageType() api.MessageType {
546 return api.RequestMessage
549 func (m *LispAddDelMapResolver) Size() int {
555 size += 1 // m.IPAddress.Af
556 size += 1 * 16 // m.IPAddress.Un
559 func (m *LispAddDelMapResolver) Marshal(b []byte) ([]byte, error) {
560 var buf *codec.Buffer
562 buf = codec.NewBuffer(make([]byte, m.Size()))
564 buf = codec.NewBuffer(b)
566 buf.EncodeBool(m.IsAdd)
567 buf.EncodeUint8(uint8(m.IPAddress.Af))
568 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
569 return buf.Bytes(), nil
571 func (m *LispAddDelMapResolver) Unmarshal(b []byte) error {
572 buf := codec.NewBuffer(b)
573 m.IsAdd = buf.DecodeBool()
574 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
575 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
579 // LispAddDelMapResolverReply defines message 'lisp_add_del_map_resolver_reply'.
580 type LispAddDelMapResolverReply struct {
581 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
584 func (m *LispAddDelMapResolverReply) Reset() { *m = LispAddDelMapResolverReply{} }
585 func (*LispAddDelMapResolverReply) GetMessageName() string { return "lisp_add_del_map_resolver_reply" }
586 func (*LispAddDelMapResolverReply) GetCrcString() string { return "e8d4e804" }
587 func (*LispAddDelMapResolverReply) GetMessageType() api.MessageType {
588 return api.ReplyMessage
591 func (m *LispAddDelMapResolverReply) Size() int {
596 size += 4 // m.Retval
599 func (m *LispAddDelMapResolverReply) Marshal(b []byte) ([]byte, error) {
600 var buf *codec.Buffer
602 buf = codec.NewBuffer(make([]byte, m.Size()))
604 buf = codec.NewBuffer(b)
606 buf.EncodeUint32(uint32(m.Retval))
607 return buf.Bytes(), nil
609 func (m *LispAddDelMapResolverReply) Unmarshal(b []byte) error {
610 buf := codec.NewBuffer(b)
611 m.Retval = int32(buf.DecodeUint32())
615 // LispAddDelMapServer defines message 'lisp_add_del_map_server'.
616 type LispAddDelMapServer struct {
617 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
618 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
621 func (m *LispAddDelMapServer) Reset() { *m = LispAddDelMapServer{} }
622 func (*LispAddDelMapServer) GetMessageName() string { return "lisp_add_del_map_server" }
623 func (*LispAddDelMapServer) GetCrcString() string { return "6598ea7c" }
624 func (*LispAddDelMapServer) GetMessageType() api.MessageType {
625 return api.RequestMessage
628 func (m *LispAddDelMapServer) Size() int {
634 size += 1 // m.IPAddress.Af
635 size += 1 * 16 // m.IPAddress.Un
638 func (m *LispAddDelMapServer) Marshal(b []byte) ([]byte, error) {
639 var buf *codec.Buffer
641 buf = codec.NewBuffer(make([]byte, m.Size()))
643 buf = codec.NewBuffer(b)
645 buf.EncodeBool(m.IsAdd)
646 buf.EncodeUint8(uint8(m.IPAddress.Af))
647 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
648 return buf.Bytes(), nil
650 func (m *LispAddDelMapServer) Unmarshal(b []byte) error {
651 buf := codec.NewBuffer(b)
652 m.IsAdd = buf.DecodeBool()
653 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
654 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
658 // LispAddDelMapServerReply defines message 'lisp_add_del_map_server_reply'.
659 type LispAddDelMapServerReply struct {
660 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
663 func (m *LispAddDelMapServerReply) Reset() { *m = LispAddDelMapServerReply{} }
664 func (*LispAddDelMapServerReply) GetMessageName() string { return "lisp_add_del_map_server_reply" }
665 func (*LispAddDelMapServerReply) GetCrcString() string { return "e8d4e804" }
666 func (*LispAddDelMapServerReply) GetMessageType() api.MessageType {
667 return api.ReplyMessage
670 func (m *LispAddDelMapServerReply) Size() int {
675 size += 4 // m.Retval
678 func (m *LispAddDelMapServerReply) Marshal(b []byte) ([]byte, error) {
679 var buf *codec.Buffer
681 buf = codec.NewBuffer(make([]byte, m.Size()))
683 buf = codec.NewBuffer(b)
685 buf.EncodeUint32(uint32(m.Retval))
686 return buf.Bytes(), nil
688 func (m *LispAddDelMapServerReply) Unmarshal(b []byte) error {
689 buf := codec.NewBuffer(b)
690 m.Retval = int32(buf.DecodeUint32())
694 // LispAddDelRemoteMapping defines message 'lisp_add_del_remote_mapping'.
695 type LispAddDelRemoteMapping struct {
696 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
697 IsSrcDst bool `binapi:"bool,name=is_src_dst" json:"is_src_dst,omitempty"`
698 DelAll bool `binapi:"bool,name=del_all" json:"del_all,omitempty"`
699 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
700 Action uint8 `binapi:"u8,name=action" json:"action,omitempty"`
701 Deid lisp_types.Eid `binapi:"eid,name=deid" json:"deid,omitempty"`
702 Seid lisp_types.Eid `binapi:"eid,name=seid" json:"seid,omitempty"`
703 RlocNum uint32 `binapi:"u32,name=rloc_num" json:"-"`
704 Rlocs []lisp_types.RemoteLocator `binapi:"remote_locator[rloc_num],name=rlocs" json:"rlocs,omitempty"`
707 func (m *LispAddDelRemoteMapping) Reset() { *m = LispAddDelRemoteMapping{} }
708 func (*LispAddDelRemoteMapping) GetMessageName() string { return "lisp_add_del_remote_mapping" }
709 func (*LispAddDelRemoteMapping) GetCrcString() string { return "fae8ed77" }
710 func (*LispAddDelRemoteMapping) GetMessageType() api.MessageType {
711 return api.RequestMessage
714 func (m *LispAddDelRemoteMapping) Size() int {
720 size += 1 // m.IsSrcDst
721 size += 1 // m.DelAll
723 size += 1 // m.Action
724 size += 1 // m.Deid.Type
725 size += 1 * 6 // m.Deid.Address
726 size += 1 // m.Seid.Type
727 size += 1 * 6 // m.Seid.Address
728 size += 4 // m.RlocNum
729 for j1 := 0; j1 < len(m.Rlocs); j1++ {
730 var s1 lisp_types.RemoteLocator
732 if j1 < len(m.Rlocs) {
735 size += 1 // s1.Priority
736 size += 1 // s1.Weight
737 size += 1 // s1.IPAddress.Af
738 size += 1 * 16 // s1.IPAddress.Un
742 func (m *LispAddDelRemoteMapping) Marshal(b []byte) ([]byte, error) {
743 var buf *codec.Buffer
745 buf = codec.NewBuffer(make([]byte, m.Size()))
747 buf = codec.NewBuffer(b)
749 buf.EncodeBool(m.IsAdd)
750 buf.EncodeBool(m.IsSrcDst)
751 buf.EncodeBool(m.DelAll)
752 buf.EncodeUint32(uint32(m.Vni))
753 buf.EncodeUint8(uint8(m.Action))
754 buf.EncodeUint8(uint8(m.Deid.Type))
755 buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 0)
756 buf.EncodeUint8(uint8(m.Seid.Type))
757 buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 0)
758 buf.EncodeUint32(uint32(len(m.Rlocs)))
759 for j0 := 0; j0 < len(m.Rlocs); j0++ {
760 var v0 lisp_types.RemoteLocator
761 if j0 < len(m.Rlocs) {
764 buf.EncodeUint8(uint8(v0.Priority))
765 buf.EncodeUint8(uint8(v0.Weight))
766 buf.EncodeUint8(uint8(v0.IPAddress.Af))
767 buf.EncodeBytes(v0.IPAddress.Un.XXX_UnionData[:], 0)
769 return buf.Bytes(), nil
771 func (m *LispAddDelRemoteMapping) Unmarshal(b []byte) error {
772 buf := codec.NewBuffer(b)
773 m.IsAdd = buf.DecodeBool()
774 m.IsSrcDst = buf.DecodeBool()
775 m.DelAll = buf.DecodeBool()
776 m.Vni = buf.DecodeUint32()
777 m.Action = buf.DecodeUint8()
778 m.Deid.Type = lisp_types.EidType(buf.DecodeUint8())
779 copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
780 m.Seid.Type = lisp_types.EidType(buf.DecodeUint8())
781 copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
782 m.RlocNum = buf.DecodeUint32()
783 m.Rlocs = make([]lisp_types.RemoteLocator, int(m.RlocNum))
784 for j0 := 0; j0 < len(m.Rlocs); j0++ {
785 m.Rlocs[j0].Priority = buf.DecodeUint8()
786 m.Rlocs[j0].Weight = buf.DecodeUint8()
787 m.Rlocs[j0].IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
788 copy(m.Rlocs[j0].IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
793 // LispAddDelRemoteMappingReply defines message 'lisp_add_del_remote_mapping_reply'.
794 type LispAddDelRemoteMappingReply struct {
795 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
798 func (m *LispAddDelRemoteMappingReply) Reset() { *m = LispAddDelRemoteMappingReply{} }
799 func (*LispAddDelRemoteMappingReply) GetMessageName() string {
800 return "lisp_add_del_remote_mapping_reply"
802 func (*LispAddDelRemoteMappingReply) GetCrcString() string { return "e8d4e804" }
803 func (*LispAddDelRemoteMappingReply) GetMessageType() api.MessageType {
804 return api.ReplyMessage
807 func (m *LispAddDelRemoteMappingReply) Size() int {
812 size += 4 // m.Retval
815 func (m *LispAddDelRemoteMappingReply) Marshal(b []byte) ([]byte, error) {
816 var buf *codec.Buffer
818 buf = codec.NewBuffer(make([]byte, m.Size()))
820 buf = codec.NewBuffer(b)
822 buf.EncodeUint32(uint32(m.Retval))
823 return buf.Bytes(), nil
825 func (m *LispAddDelRemoteMappingReply) Unmarshal(b []byte) error {
826 buf := codec.NewBuffer(b)
827 m.Retval = int32(buf.DecodeUint32())
831 // LispAdjacenciesGet defines message 'lisp_adjacencies_get'.
832 type LispAdjacenciesGet struct {
833 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
836 func (m *LispAdjacenciesGet) Reset() { *m = LispAdjacenciesGet{} }
837 func (*LispAdjacenciesGet) GetMessageName() string { return "lisp_adjacencies_get" }
838 func (*LispAdjacenciesGet) GetCrcString() string { return "8d1f2fe9" }
839 func (*LispAdjacenciesGet) GetMessageType() api.MessageType {
840 return api.RequestMessage
843 func (m *LispAdjacenciesGet) Size() int {
851 func (m *LispAdjacenciesGet) Marshal(b []byte) ([]byte, error) {
852 var buf *codec.Buffer
854 buf = codec.NewBuffer(make([]byte, m.Size()))
856 buf = codec.NewBuffer(b)
858 buf.EncodeUint32(uint32(m.Vni))
859 return buf.Bytes(), nil
861 func (m *LispAdjacenciesGet) Unmarshal(b []byte) error {
862 buf := codec.NewBuffer(b)
863 m.Vni = buf.DecodeUint32()
867 // LispAdjacenciesGetReply defines message 'lisp_adjacencies_get_reply'.
868 type LispAdjacenciesGetReply struct {
869 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
870 Count uint32 `binapi:"u32,name=count" json:"-"`
871 Adjacencies []LispAdjacency `binapi:"lisp_adjacency[count],name=adjacencies" json:"adjacencies,omitempty"`
874 func (m *LispAdjacenciesGetReply) Reset() { *m = LispAdjacenciesGetReply{} }
875 func (*LispAdjacenciesGetReply) GetMessageName() string { return "lisp_adjacencies_get_reply" }
876 func (*LispAdjacenciesGetReply) GetCrcString() string { return "3f97bcdd" }
877 func (*LispAdjacenciesGetReply) GetMessageType() api.MessageType {
878 return api.ReplyMessage
881 func (m *LispAdjacenciesGetReply) Size() int {
886 size += 4 // m.Retval
888 for j1 := 0; j1 < len(m.Adjacencies); j1++ {
891 if j1 < len(m.Adjacencies) {
892 s1 = m.Adjacencies[j1]
894 size += 1 // s1.Reid.Type
895 size += 1 * 6 // s1.Reid.Address
896 size += 1 // s1.Leid.Type
897 size += 1 * 6 // s1.Leid.Address
901 func (m *LispAdjacenciesGetReply) Marshal(b []byte) ([]byte, error) {
902 var buf *codec.Buffer
904 buf = codec.NewBuffer(make([]byte, m.Size()))
906 buf = codec.NewBuffer(b)
908 buf.EncodeUint32(uint32(m.Retval))
909 buf.EncodeUint32(uint32(len(m.Adjacencies)))
910 for j0 := 0; j0 < len(m.Adjacencies); j0++ {
912 if j0 < len(m.Adjacencies) {
913 v0 = m.Adjacencies[j0]
915 buf.EncodeUint8(uint8(v0.Reid.Type))
916 buf.EncodeBytes(v0.Reid.Address.XXX_UnionData[:], 0)
917 buf.EncodeUint8(uint8(v0.Leid.Type))
918 buf.EncodeBytes(v0.Leid.Address.XXX_UnionData[:], 0)
920 return buf.Bytes(), nil
922 func (m *LispAdjacenciesGetReply) Unmarshal(b []byte) error {
923 buf := codec.NewBuffer(b)
924 m.Retval = int32(buf.DecodeUint32())
925 m.Count = buf.DecodeUint32()
926 m.Adjacencies = make([]LispAdjacency, int(m.Count))
927 for j0 := 0; j0 < len(m.Adjacencies); j0++ {
928 m.Adjacencies[j0].Reid.Type = lisp_types.EidType(buf.DecodeUint8())
929 copy(m.Adjacencies[j0].Reid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
930 m.Adjacencies[j0].Leid.Type = lisp_types.EidType(buf.DecodeUint8())
931 copy(m.Adjacencies[j0].Leid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
936 // LispEidTableAddDelMap defines message 'lisp_eid_table_add_del_map'.
937 type LispEidTableAddDelMap struct {
938 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
939 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
940 DpTable uint32 `binapi:"u32,name=dp_table" json:"dp_table,omitempty"`
941 IsL2 bool `binapi:"bool,name=is_l2" json:"is_l2,omitempty"`
944 func (m *LispEidTableAddDelMap) Reset() { *m = LispEidTableAddDelMap{} }
945 func (*LispEidTableAddDelMap) GetMessageName() string { return "lisp_eid_table_add_del_map" }
946 func (*LispEidTableAddDelMap) GetCrcString() string { return "9481416b" }
947 func (*LispEidTableAddDelMap) GetMessageType() api.MessageType {
948 return api.RequestMessage
951 func (m *LispEidTableAddDelMap) Size() int {
958 size += 4 // m.DpTable
962 func (m *LispEidTableAddDelMap) Marshal(b []byte) ([]byte, error) {
963 var buf *codec.Buffer
965 buf = codec.NewBuffer(make([]byte, m.Size()))
967 buf = codec.NewBuffer(b)
969 buf.EncodeBool(m.IsAdd)
970 buf.EncodeUint32(uint32(m.Vni))
971 buf.EncodeUint32(uint32(m.DpTable))
972 buf.EncodeBool(m.IsL2)
973 return buf.Bytes(), nil
975 func (m *LispEidTableAddDelMap) Unmarshal(b []byte) error {
976 buf := codec.NewBuffer(b)
977 m.IsAdd = buf.DecodeBool()
978 m.Vni = buf.DecodeUint32()
979 m.DpTable = buf.DecodeUint32()
980 m.IsL2 = buf.DecodeBool()
984 // LispEidTableAddDelMapReply defines message 'lisp_eid_table_add_del_map_reply'.
985 type LispEidTableAddDelMapReply struct {
986 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
989 func (m *LispEidTableAddDelMapReply) Reset() { *m = LispEidTableAddDelMapReply{} }
990 func (*LispEidTableAddDelMapReply) GetMessageName() string { return "lisp_eid_table_add_del_map_reply" }
991 func (*LispEidTableAddDelMapReply) GetCrcString() string { return "e8d4e804" }
992 func (*LispEidTableAddDelMapReply) GetMessageType() api.MessageType {
993 return api.ReplyMessage
996 func (m *LispEidTableAddDelMapReply) Size() int {
1001 size += 4 // m.Retval
1004 func (m *LispEidTableAddDelMapReply) Marshal(b []byte) ([]byte, error) {
1005 var buf *codec.Buffer
1007 buf = codec.NewBuffer(make([]byte, m.Size()))
1009 buf = codec.NewBuffer(b)
1011 buf.EncodeUint32(uint32(m.Retval))
1012 return buf.Bytes(), nil
1014 func (m *LispEidTableAddDelMapReply) Unmarshal(b []byte) error {
1015 buf := codec.NewBuffer(b)
1016 m.Retval = int32(buf.DecodeUint32())
1020 // LispEidTableDetails defines message 'lisp_eid_table_details'.
1021 type LispEidTableDetails struct {
1022 LocatorSetIndex uint32 `binapi:"u32,name=locator_set_index" json:"locator_set_index,omitempty"`
1023 Action uint8 `binapi:"u8,name=action" json:"action,omitempty"`
1024 IsLocal bool `binapi:"bool,name=is_local" json:"is_local,omitempty"`
1025 IsSrcDst bool `binapi:"bool,name=is_src_dst" json:"is_src_dst,omitempty"`
1026 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1027 Deid lisp_types.Eid `binapi:"eid,name=deid" json:"deid,omitempty"`
1028 Seid lisp_types.Eid `binapi:"eid,name=seid" json:"seid,omitempty"`
1029 TTL uint32 `binapi:"u32,name=ttl" json:"ttl,omitempty"`
1030 Authoritative uint8 `binapi:"u8,name=authoritative" json:"authoritative,omitempty"`
1031 Key lisp_types.HmacKey `binapi:"hmac_key,name=key" json:"key,omitempty"`
1034 func (m *LispEidTableDetails) Reset() { *m = LispEidTableDetails{} }
1035 func (*LispEidTableDetails) GetMessageName() string { return "lisp_eid_table_details" }
1036 func (*LispEidTableDetails) GetCrcString() string { return "4bc32e3a" }
1037 func (*LispEidTableDetails) GetMessageType() api.MessageType {
1038 return api.ReplyMessage
1041 func (m *LispEidTableDetails) Size() int {
1046 size += 4 // m.LocatorSetIndex
1047 size += 1 // m.Action
1048 size += 1 // m.IsLocal
1049 size += 1 // m.IsSrcDst
1051 size += 1 // m.Deid.Type
1052 size += 1 * 6 // m.Deid.Address
1053 size += 1 // m.Seid.Type
1054 size += 1 * 6 // m.Seid.Address
1056 size += 1 // m.Authoritative
1057 size += 1 // m.Key.ID
1058 size += 1 * 64 // m.Key.Key
1061 func (m *LispEidTableDetails) Marshal(b []byte) ([]byte, error) {
1062 var buf *codec.Buffer
1064 buf = codec.NewBuffer(make([]byte, m.Size()))
1066 buf = codec.NewBuffer(b)
1068 buf.EncodeUint32(uint32(m.LocatorSetIndex))
1069 buf.EncodeUint8(uint8(m.Action))
1070 buf.EncodeBool(m.IsLocal)
1071 buf.EncodeBool(m.IsSrcDst)
1072 buf.EncodeUint32(uint32(m.Vni))
1073 buf.EncodeUint8(uint8(m.Deid.Type))
1074 buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 0)
1075 buf.EncodeUint8(uint8(m.Seid.Type))
1076 buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 0)
1077 buf.EncodeUint32(uint32(m.TTL))
1078 buf.EncodeUint8(uint8(m.Authoritative))
1079 buf.EncodeUint8(uint8(m.Key.ID))
1080 buf.EncodeBytes(m.Key.Key[:], 64)
1081 return buf.Bytes(), nil
1083 func (m *LispEidTableDetails) Unmarshal(b []byte) error {
1084 buf := codec.NewBuffer(b)
1085 m.LocatorSetIndex = buf.DecodeUint32()
1086 m.Action = buf.DecodeUint8()
1087 m.IsLocal = buf.DecodeBool()
1088 m.IsSrcDst = buf.DecodeBool()
1089 m.Vni = buf.DecodeUint32()
1090 m.Deid.Type = lisp_types.EidType(buf.DecodeUint8())
1091 copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
1092 m.Seid.Type = lisp_types.EidType(buf.DecodeUint8())
1093 copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
1094 m.TTL = buf.DecodeUint32()
1095 m.Authoritative = buf.DecodeUint8()
1096 m.Key.ID = lisp_types.HmacKeyID(buf.DecodeUint8())
1097 copy(m.Key.Key[:], buf.DecodeBytes(64))
1101 // LispEidTableDump defines message 'lisp_eid_table_dump'.
1102 type LispEidTableDump struct {
1103 EidSet uint8 `binapi:"u8,name=eid_set" json:"eid_set,omitempty"`
1104 PrefixLength uint8 `binapi:"u8,name=prefix_length" json:"prefix_length,omitempty"`
1105 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1106 Eid lisp_types.Eid `binapi:"eid,name=eid" json:"eid,omitempty"`
1107 Filter LispLocatorSetFilter `binapi:"lisp_locator_set_filter,name=filter" json:"filter,omitempty"`
1110 func (m *LispEidTableDump) Reset() { *m = LispEidTableDump{} }
1111 func (*LispEidTableDump) GetMessageName() string { return "lisp_eid_table_dump" }
1112 func (*LispEidTableDump) GetCrcString() string { return "b959b73b" }
1113 func (*LispEidTableDump) GetMessageType() api.MessageType {
1114 return api.RequestMessage
1117 func (m *LispEidTableDump) Size() int {
1122 size += 1 // m.EidSet
1123 size += 1 // m.PrefixLength
1125 size += 1 // m.Eid.Type
1126 size += 1 * 6 // m.Eid.Address
1127 size += 1 // m.Filter
1130 func (m *LispEidTableDump) Marshal(b []byte) ([]byte, error) {
1131 var buf *codec.Buffer
1133 buf = codec.NewBuffer(make([]byte, m.Size()))
1135 buf = codec.NewBuffer(b)
1137 buf.EncodeUint8(uint8(m.EidSet))
1138 buf.EncodeUint8(uint8(m.PrefixLength))
1139 buf.EncodeUint32(uint32(m.Vni))
1140 buf.EncodeUint8(uint8(m.Eid.Type))
1141 buf.EncodeBytes(m.Eid.Address.XXX_UnionData[:], 0)
1142 buf.EncodeUint8(uint8(m.Filter))
1143 return buf.Bytes(), nil
1145 func (m *LispEidTableDump) Unmarshal(b []byte) error {
1146 buf := codec.NewBuffer(b)
1147 m.EidSet = buf.DecodeUint8()
1148 m.PrefixLength = buf.DecodeUint8()
1149 m.Vni = buf.DecodeUint32()
1150 m.Eid.Type = lisp_types.EidType(buf.DecodeUint8())
1151 copy(m.Eid.Address.XXX_UnionData[:], buf.DecodeBytes(6))
1152 m.Filter = LispLocatorSetFilter(buf.DecodeUint8())
1156 // LispEidTableMapDetails defines message 'lisp_eid_table_map_details'.
1157 type LispEidTableMapDetails struct {
1158 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1159 DpTable uint32 `binapi:"u32,name=dp_table" json:"dp_table,omitempty"`
1162 func (m *LispEidTableMapDetails) Reset() { *m = LispEidTableMapDetails{} }
1163 func (*LispEidTableMapDetails) GetMessageName() string { return "lisp_eid_table_map_details" }
1164 func (*LispEidTableMapDetails) GetCrcString() string { return "0b6859e2" }
1165 func (*LispEidTableMapDetails) GetMessageType() api.MessageType {
1166 return api.ReplyMessage
1169 func (m *LispEidTableMapDetails) Size() int {
1175 size += 4 // m.DpTable
1178 func (m *LispEidTableMapDetails) Marshal(b []byte) ([]byte, error) {
1179 var buf *codec.Buffer
1181 buf = codec.NewBuffer(make([]byte, m.Size()))
1183 buf = codec.NewBuffer(b)
1185 buf.EncodeUint32(uint32(m.Vni))
1186 buf.EncodeUint32(uint32(m.DpTable))
1187 return buf.Bytes(), nil
1189 func (m *LispEidTableMapDetails) Unmarshal(b []byte) error {
1190 buf := codec.NewBuffer(b)
1191 m.Vni = buf.DecodeUint32()
1192 m.DpTable = buf.DecodeUint32()
1196 // LispEidTableMapDump defines message 'lisp_eid_table_map_dump'.
1197 type LispEidTableMapDump struct {
1198 IsL2 bool `binapi:"bool,name=is_l2" json:"is_l2,omitempty"`
1201 func (m *LispEidTableMapDump) Reset() { *m = LispEidTableMapDump{} }
1202 func (*LispEidTableMapDump) GetMessageName() string { return "lisp_eid_table_map_dump" }
1203 func (*LispEidTableMapDump) GetCrcString() string { return "d6cf0c3d" }
1204 func (*LispEidTableMapDump) GetMessageType() api.MessageType {
1205 return api.RequestMessage
1208 func (m *LispEidTableMapDump) Size() int {
1216 func (m *LispEidTableMapDump) Marshal(b []byte) ([]byte, error) {
1217 var buf *codec.Buffer
1219 buf = codec.NewBuffer(make([]byte, m.Size()))
1221 buf = codec.NewBuffer(b)
1223 buf.EncodeBool(m.IsL2)
1224 return buf.Bytes(), nil
1226 func (m *LispEidTableMapDump) Unmarshal(b []byte) error {
1227 buf := codec.NewBuffer(b)
1228 m.IsL2 = buf.DecodeBool()
1232 // LispEidTableVniDetails defines message 'lisp_eid_table_vni_details'.
1233 type LispEidTableVniDetails struct {
1234 Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
1237 func (m *LispEidTableVniDetails) Reset() { *m = LispEidTableVniDetails{} }
1238 func (*LispEidTableVniDetails) GetMessageName() string { return "lisp_eid_table_vni_details" }
1239 func (*LispEidTableVniDetails) GetCrcString() string { return "64abc01e" }
1240 func (*LispEidTableVniDetails) GetMessageType() api.MessageType {
1241 return api.ReplyMessage
1244 func (m *LispEidTableVniDetails) Size() int {
1252 func (m *LispEidTableVniDetails) Marshal(b []byte) ([]byte, error) {
1253 var buf *codec.Buffer
1255 buf = codec.NewBuffer(make([]byte, m.Size()))
1257 buf = codec.NewBuffer(b)
1259 buf.EncodeUint32(uint32(m.Vni))
1260 return buf.Bytes(), nil
1262 func (m *LispEidTableVniDetails) Unmarshal(b []byte) error {
1263 buf := codec.NewBuffer(b)
1264 m.Vni = buf.DecodeUint32()
1268 // LispEidTableVniDump defines message 'lisp_eid_table_vni_dump'.
1269 type LispEidTableVniDump struct{}
1271 func (m *LispEidTableVniDump) Reset() { *m = LispEidTableVniDump{} }
1272 func (*LispEidTableVniDump) GetMessageName() string { return "lisp_eid_table_vni_dump" }
1273 func (*LispEidTableVniDump) GetCrcString() string { return "51077d14" }
1274 func (*LispEidTableVniDump) GetMessageType() api.MessageType {
1275 return api.RequestMessage
1278 func (m *LispEidTableVniDump) Size() int {
1285 func (m *LispEidTableVniDump) Marshal(b []byte) ([]byte, error) {
1286 var buf *codec.Buffer
1288 buf = codec.NewBuffer(make([]byte, m.Size()))
1290 buf = codec.NewBuffer(b)
1292 return buf.Bytes(), nil
1294 func (m *LispEidTableVniDump) Unmarshal(b []byte) error {
1298 // LispEnableDisable defines message 'lisp_enable_disable'.
1299 type LispEnableDisable struct {
1300 IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
1303 func (m *LispEnableDisable) Reset() { *m = LispEnableDisable{} }
1304 func (*LispEnableDisable) GetMessageName() string { return "lisp_enable_disable" }
1305 func (*LispEnableDisable) GetCrcString() string { return "c264d7bf" }
1306 func (*LispEnableDisable) GetMessageType() api.MessageType {
1307 return api.RequestMessage
1310 func (m *LispEnableDisable) Size() int {
1315 size += 1 // m.IsEnable
1318 func (m *LispEnableDisable) Marshal(b []byte) ([]byte, error) {
1319 var buf *codec.Buffer
1321 buf = codec.NewBuffer(make([]byte, m.Size()))
1323 buf = codec.NewBuffer(b)
1325 buf.EncodeBool(m.IsEnable)
1326 return buf.Bytes(), nil
1328 func (m *LispEnableDisable) Unmarshal(b []byte) error {
1329 buf := codec.NewBuffer(b)
1330 m.IsEnable = buf.DecodeBool()
1334 // LispEnableDisableReply defines message 'lisp_enable_disable_reply'.
1335 type LispEnableDisableReply struct {
1336 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1339 func (m *LispEnableDisableReply) Reset() { *m = LispEnableDisableReply{} }
1340 func (*LispEnableDisableReply) GetMessageName() string { return "lisp_enable_disable_reply" }
1341 func (*LispEnableDisableReply) GetCrcString() string { return "e8d4e804" }
1342 func (*LispEnableDisableReply) GetMessageType() api.MessageType {
1343 return api.ReplyMessage
1346 func (m *LispEnableDisableReply) Size() int {
1351 size += 4 // m.Retval
1354 func (m *LispEnableDisableReply) Marshal(b []byte) ([]byte, error) {
1355 var buf *codec.Buffer
1357 buf = codec.NewBuffer(make([]byte, m.Size()))
1359 buf = codec.NewBuffer(b)
1361 buf.EncodeUint32(uint32(m.Retval))
1362 return buf.Bytes(), nil
1364 func (m *LispEnableDisableReply) Unmarshal(b []byte) error {
1365 buf := codec.NewBuffer(b)
1366 m.Retval = int32(buf.DecodeUint32())
1370 // LispGetMapRequestItrRlocs defines message 'lisp_get_map_request_itr_rlocs'.
1371 type LispGetMapRequestItrRlocs struct{}
1373 func (m *LispGetMapRequestItrRlocs) Reset() { *m = LispGetMapRequestItrRlocs{} }
1374 func (*LispGetMapRequestItrRlocs) GetMessageName() string { return "lisp_get_map_request_itr_rlocs" }
1375 func (*LispGetMapRequestItrRlocs) GetCrcString() string { return "51077d14" }
1376 func (*LispGetMapRequestItrRlocs) GetMessageType() api.MessageType {
1377 return api.RequestMessage
1380 func (m *LispGetMapRequestItrRlocs) Size() int {
1387 func (m *LispGetMapRequestItrRlocs) Marshal(b []byte) ([]byte, error) {
1388 var buf *codec.Buffer
1390 buf = codec.NewBuffer(make([]byte, m.Size()))
1392 buf = codec.NewBuffer(b)
1394 return buf.Bytes(), nil
1396 func (m *LispGetMapRequestItrRlocs) Unmarshal(b []byte) error {
1400 // LispGetMapRequestItrRlocsReply defines message 'lisp_get_map_request_itr_rlocs_reply'.
1401 type LispGetMapRequestItrRlocsReply struct {
1402 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1403 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
1406 func (m *LispGetMapRequestItrRlocsReply) Reset() { *m = LispGetMapRequestItrRlocsReply{} }
1407 func (*LispGetMapRequestItrRlocsReply) GetMessageName() string {
1408 return "lisp_get_map_request_itr_rlocs_reply"
1410 func (*LispGetMapRequestItrRlocsReply) GetCrcString() string { return "76580f3a" }
1411 func (*LispGetMapRequestItrRlocsReply) GetMessageType() api.MessageType {
1412 return api.ReplyMessage
1415 func (m *LispGetMapRequestItrRlocsReply) Size() int {
1420 size += 4 // m.Retval
1421 size += 64 // m.LocatorSetName
1424 func (m *LispGetMapRequestItrRlocsReply) Marshal(b []byte) ([]byte, error) {
1425 var buf *codec.Buffer
1427 buf = codec.NewBuffer(make([]byte, m.Size()))
1429 buf = codec.NewBuffer(b)
1431 buf.EncodeUint32(uint32(m.Retval))
1432 buf.EncodeString(m.LocatorSetName, 64)
1433 return buf.Bytes(), nil
1435 func (m *LispGetMapRequestItrRlocsReply) Unmarshal(b []byte) error {
1436 buf := codec.NewBuffer(b)
1437 m.Retval = int32(buf.DecodeUint32())
1438 m.LocatorSetName = buf.DecodeString(64)
1442 // LispLocatorDetails defines message 'lisp_locator_details'.
1443 type LispLocatorDetails struct {
1444 Local uint8 `binapi:"u8,name=local" json:"local,omitempty"`
1445 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1446 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
1447 Priority uint8 `binapi:"u8,name=priority" json:"priority,omitempty"`
1448 Weight uint8 `binapi:"u8,name=weight" json:"weight,omitempty"`
1451 func (m *LispLocatorDetails) Reset() { *m = LispLocatorDetails{} }
1452 func (*LispLocatorDetails) GetMessageName() string { return "lisp_locator_details" }
1453 func (*LispLocatorDetails) GetCrcString() string { return "c0c4c2a7" }
1454 func (*LispLocatorDetails) GetMessageType() api.MessageType {
1455 return api.ReplyMessage
1458 func (m *LispLocatorDetails) Size() int {
1463 size += 1 // m.Local
1464 size += 4 // m.SwIfIndex
1465 size += 1 // m.IPAddress.Af
1466 size += 1 * 16 // m.IPAddress.Un
1467 size += 1 // m.Priority
1468 size += 1 // m.Weight
1471 func (m *LispLocatorDetails) Marshal(b []byte) ([]byte, error) {
1472 var buf *codec.Buffer
1474 buf = codec.NewBuffer(make([]byte, m.Size()))
1476 buf = codec.NewBuffer(b)
1478 buf.EncodeUint8(uint8(m.Local))
1479 buf.EncodeUint32(uint32(m.SwIfIndex))
1480 buf.EncodeUint8(uint8(m.IPAddress.Af))
1481 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
1482 buf.EncodeUint8(uint8(m.Priority))
1483 buf.EncodeUint8(uint8(m.Weight))
1484 return buf.Bytes(), nil
1486 func (m *LispLocatorDetails) Unmarshal(b []byte) error {
1487 buf := codec.NewBuffer(b)
1488 m.Local = buf.DecodeUint8()
1489 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1490 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
1491 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1492 m.Priority = buf.DecodeUint8()
1493 m.Weight = buf.DecodeUint8()
1497 // LispLocatorDump defines message 'lisp_locator_dump'.
1498 type LispLocatorDump struct {
1499 LsIndex uint32 `binapi:"u32,name=ls_index" json:"ls_index,omitempty"`
1500 LsName string `binapi:"string[64],name=ls_name" json:"ls_name,omitempty"`
1501 IsIndexSet uint8 `binapi:"u8,name=is_index_set" json:"is_index_set,omitempty"`
1504 func (m *LispLocatorDump) Reset() { *m = LispLocatorDump{} }
1505 func (*LispLocatorDump) GetMessageName() string { return "lisp_locator_dump" }
1506 func (*LispLocatorDump) GetCrcString() string { return "b954fad7" }
1507 func (*LispLocatorDump) GetMessageType() api.MessageType {
1508 return api.RequestMessage
1511 func (m *LispLocatorDump) Size() int {
1516 size += 4 // m.LsIndex
1517 size += 64 // m.LsName
1518 size += 1 // m.IsIndexSet
1521 func (m *LispLocatorDump) Marshal(b []byte) ([]byte, error) {
1522 var buf *codec.Buffer
1524 buf = codec.NewBuffer(make([]byte, m.Size()))
1526 buf = codec.NewBuffer(b)
1528 buf.EncodeUint32(uint32(m.LsIndex))
1529 buf.EncodeString(m.LsName, 64)
1530 buf.EncodeUint8(uint8(m.IsIndexSet))
1531 return buf.Bytes(), nil
1533 func (m *LispLocatorDump) Unmarshal(b []byte) error {
1534 buf := codec.NewBuffer(b)
1535 m.LsIndex = buf.DecodeUint32()
1536 m.LsName = buf.DecodeString(64)
1537 m.IsIndexSet = buf.DecodeUint8()
1541 // LispLocatorSetDetails defines message 'lisp_locator_set_details'.
1542 type LispLocatorSetDetails struct {
1543 LsIndex uint32 `binapi:"u32,name=ls_index" json:"ls_index,omitempty"`
1544 LsName string `binapi:"string[64],name=ls_name" json:"ls_name,omitempty"`
1547 func (m *LispLocatorSetDetails) Reset() { *m = LispLocatorSetDetails{} }
1548 func (*LispLocatorSetDetails) GetMessageName() string { return "lisp_locator_set_details" }
1549 func (*LispLocatorSetDetails) GetCrcString() string { return "5b33a105" }
1550 func (*LispLocatorSetDetails) GetMessageType() api.MessageType {
1551 return api.ReplyMessage
1554 func (m *LispLocatorSetDetails) Size() int {
1559 size += 4 // m.LsIndex
1560 size += 64 // m.LsName
1563 func (m *LispLocatorSetDetails) Marshal(b []byte) ([]byte, error) {
1564 var buf *codec.Buffer
1566 buf = codec.NewBuffer(make([]byte, m.Size()))
1568 buf = codec.NewBuffer(b)
1570 buf.EncodeUint32(uint32(m.LsIndex))
1571 buf.EncodeString(m.LsName, 64)
1572 return buf.Bytes(), nil
1574 func (m *LispLocatorSetDetails) Unmarshal(b []byte) error {
1575 buf := codec.NewBuffer(b)
1576 m.LsIndex = buf.DecodeUint32()
1577 m.LsName = buf.DecodeString(64)
1581 // LispLocatorSetDump defines message 'lisp_locator_set_dump'.
1582 type LispLocatorSetDump struct {
1583 Filter LispLocatorSetFilter `binapi:"lisp_locator_set_filter,name=filter" json:"filter,omitempty"`
1586 func (m *LispLocatorSetDump) Reset() { *m = LispLocatorSetDump{} }
1587 func (*LispLocatorSetDump) GetMessageName() string { return "lisp_locator_set_dump" }
1588 func (*LispLocatorSetDump) GetCrcString() string { return "c2cb5922" }
1589 func (*LispLocatorSetDump) GetMessageType() api.MessageType {
1590 return api.RequestMessage
1593 func (m *LispLocatorSetDump) Size() int {
1598 size += 1 // m.Filter
1601 func (m *LispLocatorSetDump) Marshal(b []byte) ([]byte, error) {
1602 var buf *codec.Buffer
1604 buf = codec.NewBuffer(make([]byte, m.Size()))
1606 buf = codec.NewBuffer(b)
1608 buf.EncodeUint8(uint8(m.Filter))
1609 return buf.Bytes(), nil
1611 func (m *LispLocatorSetDump) Unmarshal(b []byte) error {
1612 buf := codec.NewBuffer(b)
1613 m.Filter = LispLocatorSetFilter(buf.DecodeUint8())
1617 // LispMapRegisterEnableDisable defines message 'lisp_map_register_enable_disable'.
1618 type LispMapRegisterEnableDisable struct {
1619 IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
1622 func (m *LispMapRegisterEnableDisable) Reset() { *m = LispMapRegisterEnableDisable{} }
1623 func (*LispMapRegisterEnableDisable) GetMessageName() string {
1624 return "lisp_map_register_enable_disable"
1626 func (*LispMapRegisterEnableDisable) GetCrcString() string { return "c264d7bf" }
1627 func (*LispMapRegisterEnableDisable) GetMessageType() api.MessageType {
1628 return api.RequestMessage
1631 func (m *LispMapRegisterEnableDisable) Size() int {
1636 size += 1 // m.IsEnable
1639 func (m *LispMapRegisterEnableDisable) Marshal(b []byte) ([]byte, error) {
1640 var buf *codec.Buffer
1642 buf = codec.NewBuffer(make([]byte, m.Size()))
1644 buf = codec.NewBuffer(b)
1646 buf.EncodeBool(m.IsEnable)
1647 return buf.Bytes(), nil
1649 func (m *LispMapRegisterEnableDisable) Unmarshal(b []byte) error {
1650 buf := codec.NewBuffer(b)
1651 m.IsEnable = buf.DecodeBool()
1655 // LispMapRegisterEnableDisableReply defines message 'lisp_map_register_enable_disable_reply'.
1656 type LispMapRegisterEnableDisableReply struct {
1657 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1660 func (m *LispMapRegisterEnableDisableReply) Reset() { *m = LispMapRegisterEnableDisableReply{} }
1661 func (*LispMapRegisterEnableDisableReply) GetMessageName() string {
1662 return "lisp_map_register_enable_disable_reply"
1664 func (*LispMapRegisterEnableDisableReply) GetCrcString() string { return "e8d4e804" }
1665 func (*LispMapRegisterEnableDisableReply) GetMessageType() api.MessageType {
1666 return api.ReplyMessage
1669 func (m *LispMapRegisterEnableDisableReply) Size() int {
1674 size += 4 // m.Retval
1677 func (m *LispMapRegisterEnableDisableReply) Marshal(b []byte) ([]byte, error) {
1678 var buf *codec.Buffer
1680 buf = codec.NewBuffer(make([]byte, m.Size()))
1682 buf = codec.NewBuffer(b)
1684 buf.EncodeUint32(uint32(m.Retval))
1685 return buf.Bytes(), nil
1687 func (m *LispMapRegisterEnableDisableReply) Unmarshal(b []byte) error {
1688 buf := codec.NewBuffer(b)
1689 m.Retval = int32(buf.DecodeUint32())
1693 // LispMapRequestMode defines message 'lisp_map_request_mode'.
1694 type LispMapRequestMode struct {
1695 IsSrcDst bool `binapi:"bool,name=is_src_dst" json:"is_src_dst,omitempty"`
1698 func (m *LispMapRequestMode) Reset() { *m = LispMapRequestMode{} }
1699 func (*LispMapRequestMode) GetMessageName() string { return "lisp_map_request_mode" }
1700 func (*LispMapRequestMode) GetCrcString() string { return "f43c26ae" }
1701 func (*LispMapRequestMode) GetMessageType() api.MessageType {
1702 return api.RequestMessage
1705 func (m *LispMapRequestMode) Size() int {
1710 size += 1 // m.IsSrcDst
1713 func (m *LispMapRequestMode) Marshal(b []byte) ([]byte, error) {
1714 var buf *codec.Buffer
1716 buf = codec.NewBuffer(make([]byte, m.Size()))
1718 buf = codec.NewBuffer(b)
1720 buf.EncodeBool(m.IsSrcDst)
1721 return buf.Bytes(), nil
1723 func (m *LispMapRequestMode) Unmarshal(b []byte) error {
1724 buf := codec.NewBuffer(b)
1725 m.IsSrcDst = buf.DecodeBool()
1729 // LispMapRequestModeReply defines message 'lisp_map_request_mode_reply'.
1730 type LispMapRequestModeReply struct {
1731 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1734 func (m *LispMapRequestModeReply) Reset() { *m = LispMapRequestModeReply{} }
1735 func (*LispMapRequestModeReply) GetMessageName() string { return "lisp_map_request_mode_reply" }
1736 func (*LispMapRequestModeReply) GetCrcString() string { return "e8d4e804" }
1737 func (*LispMapRequestModeReply) GetMessageType() api.MessageType {
1738 return api.ReplyMessage
1741 func (m *LispMapRequestModeReply) Size() int {
1746 size += 4 // m.Retval
1749 func (m *LispMapRequestModeReply) Marshal(b []byte) ([]byte, error) {
1750 var buf *codec.Buffer
1752 buf = codec.NewBuffer(make([]byte, m.Size()))
1754 buf = codec.NewBuffer(b)
1756 buf.EncodeUint32(uint32(m.Retval))
1757 return buf.Bytes(), nil
1759 func (m *LispMapRequestModeReply) Unmarshal(b []byte) error {
1760 buf := codec.NewBuffer(b)
1761 m.Retval = int32(buf.DecodeUint32())
1765 // LispMapResolverDetails defines message 'lisp_map_resolver_details'.
1766 type LispMapResolverDetails struct {
1767 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
1770 func (m *LispMapResolverDetails) Reset() { *m = LispMapResolverDetails{} }
1771 func (*LispMapResolverDetails) GetMessageName() string { return "lisp_map_resolver_details" }
1772 func (*LispMapResolverDetails) GetCrcString() string { return "82a09deb" }
1773 func (*LispMapResolverDetails) GetMessageType() api.MessageType {
1774 return api.ReplyMessage
1777 func (m *LispMapResolverDetails) Size() int {
1782 size += 1 // m.IPAddress.Af
1783 size += 1 * 16 // m.IPAddress.Un
1786 func (m *LispMapResolverDetails) Marshal(b []byte) ([]byte, error) {
1787 var buf *codec.Buffer
1789 buf = codec.NewBuffer(make([]byte, m.Size()))
1791 buf = codec.NewBuffer(b)
1793 buf.EncodeUint8(uint8(m.IPAddress.Af))
1794 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
1795 return buf.Bytes(), nil
1797 func (m *LispMapResolverDetails) Unmarshal(b []byte) error {
1798 buf := codec.NewBuffer(b)
1799 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
1800 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1804 // LispMapResolverDump defines message 'lisp_map_resolver_dump'.
1805 type LispMapResolverDump struct{}
1807 func (m *LispMapResolverDump) Reset() { *m = LispMapResolverDump{} }
1808 func (*LispMapResolverDump) GetMessageName() string { return "lisp_map_resolver_dump" }
1809 func (*LispMapResolverDump) GetCrcString() string { return "51077d14" }
1810 func (*LispMapResolverDump) GetMessageType() api.MessageType {
1811 return api.RequestMessage
1814 func (m *LispMapResolverDump) Size() int {
1821 func (m *LispMapResolverDump) Marshal(b []byte) ([]byte, error) {
1822 var buf *codec.Buffer
1824 buf = codec.NewBuffer(make([]byte, m.Size()))
1826 buf = codec.NewBuffer(b)
1828 return buf.Bytes(), nil
1830 func (m *LispMapResolverDump) Unmarshal(b []byte) error {
1834 // LispMapServerDetails defines message 'lisp_map_server_details'.
1835 type LispMapServerDetails struct {
1836 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
1839 func (m *LispMapServerDetails) Reset() { *m = LispMapServerDetails{} }
1840 func (*LispMapServerDetails) GetMessageName() string { return "lisp_map_server_details" }
1841 func (*LispMapServerDetails) GetCrcString() string { return "82a09deb" }
1842 func (*LispMapServerDetails) GetMessageType() api.MessageType {
1843 return api.ReplyMessage
1846 func (m *LispMapServerDetails) Size() int {
1851 size += 1 // m.IPAddress.Af
1852 size += 1 * 16 // m.IPAddress.Un
1855 func (m *LispMapServerDetails) Marshal(b []byte) ([]byte, error) {
1856 var buf *codec.Buffer
1858 buf = codec.NewBuffer(make([]byte, m.Size()))
1860 buf = codec.NewBuffer(b)
1862 buf.EncodeUint8(uint8(m.IPAddress.Af))
1863 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
1864 return buf.Bytes(), nil
1866 func (m *LispMapServerDetails) Unmarshal(b []byte) error {
1867 buf := codec.NewBuffer(b)
1868 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
1869 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1873 // LispMapServerDump defines message 'lisp_map_server_dump'.
1874 type LispMapServerDump struct{}
1876 func (m *LispMapServerDump) Reset() { *m = LispMapServerDump{} }
1877 func (*LispMapServerDump) GetMessageName() string { return "lisp_map_server_dump" }
1878 func (*LispMapServerDump) GetCrcString() string { return "51077d14" }
1879 func (*LispMapServerDump) GetMessageType() api.MessageType {
1880 return api.RequestMessage
1883 func (m *LispMapServerDump) Size() int {
1890 func (m *LispMapServerDump) Marshal(b []byte) ([]byte, error) {
1891 var buf *codec.Buffer
1893 buf = codec.NewBuffer(make([]byte, m.Size()))
1895 buf = codec.NewBuffer(b)
1897 return buf.Bytes(), nil
1899 func (m *LispMapServerDump) Unmarshal(b []byte) error {
1903 // LispPitrSetLocatorSet defines message 'lisp_pitr_set_locator_set'.
1904 type LispPitrSetLocatorSet struct {
1905 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
1906 LsName string `binapi:"string[64],name=ls_name" json:"ls_name,omitempty"`
1909 func (m *LispPitrSetLocatorSet) Reset() { *m = LispPitrSetLocatorSet{} }
1910 func (*LispPitrSetLocatorSet) GetMessageName() string { return "lisp_pitr_set_locator_set" }
1911 func (*LispPitrSetLocatorSet) GetCrcString() string { return "486e2b76" }
1912 func (*LispPitrSetLocatorSet) GetMessageType() api.MessageType {
1913 return api.RequestMessage
1916 func (m *LispPitrSetLocatorSet) Size() int {
1921 size += 1 // m.IsAdd
1922 size += 64 // m.LsName
1925 func (m *LispPitrSetLocatorSet) Marshal(b []byte) ([]byte, error) {
1926 var buf *codec.Buffer
1928 buf = codec.NewBuffer(make([]byte, m.Size()))
1930 buf = codec.NewBuffer(b)
1932 buf.EncodeBool(m.IsAdd)
1933 buf.EncodeString(m.LsName, 64)
1934 return buf.Bytes(), nil
1936 func (m *LispPitrSetLocatorSet) Unmarshal(b []byte) error {
1937 buf := codec.NewBuffer(b)
1938 m.IsAdd = buf.DecodeBool()
1939 m.LsName = buf.DecodeString(64)
1943 // LispPitrSetLocatorSetReply defines message 'lisp_pitr_set_locator_set_reply'.
1944 type LispPitrSetLocatorSetReply struct {
1945 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1948 func (m *LispPitrSetLocatorSetReply) Reset() { *m = LispPitrSetLocatorSetReply{} }
1949 func (*LispPitrSetLocatorSetReply) GetMessageName() string { return "lisp_pitr_set_locator_set_reply" }
1950 func (*LispPitrSetLocatorSetReply) GetCrcString() string { return "e8d4e804" }
1951 func (*LispPitrSetLocatorSetReply) GetMessageType() api.MessageType {
1952 return api.ReplyMessage
1955 func (m *LispPitrSetLocatorSetReply) Size() int {
1960 size += 4 // m.Retval
1963 func (m *LispPitrSetLocatorSetReply) Marshal(b []byte) ([]byte, error) {
1964 var buf *codec.Buffer
1966 buf = codec.NewBuffer(make([]byte, m.Size()))
1968 buf = codec.NewBuffer(b)
1970 buf.EncodeUint32(uint32(m.Retval))
1971 return buf.Bytes(), nil
1973 func (m *LispPitrSetLocatorSetReply) Unmarshal(b []byte) error {
1974 buf := codec.NewBuffer(b)
1975 m.Retval = int32(buf.DecodeUint32())
1979 // LispRlocProbeEnableDisable defines message 'lisp_rloc_probe_enable_disable'.
1980 type LispRlocProbeEnableDisable struct {
1981 IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
1984 func (m *LispRlocProbeEnableDisable) Reset() { *m = LispRlocProbeEnableDisable{} }
1985 func (*LispRlocProbeEnableDisable) GetMessageName() string { return "lisp_rloc_probe_enable_disable" }
1986 func (*LispRlocProbeEnableDisable) GetCrcString() string { return "c264d7bf" }
1987 func (*LispRlocProbeEnableDisable) GetMessageType() api.MessageType {
1988 return api.RequestMessage
1991 func (m *LispRlocProbeEnableDisable) Size() int {
1996 size += 1 // m.IsEnable
1999 func (m *LispRlocProbeEnableDisable) Marshal(b []byte) ([]byte, error) {
2000 var buf *codec.Buffer
2002 buf = codec.NewBuffer(make([]byte, m.Size()))
2004 buf = codec.NewBuffer(b)
2006 buf.EncodeBool(m.IsEnable)
2007 return buf.Bytes(), nil
2009 func (m *LispRlocProbeEnableDisable) Unmarshal(b []byte) error {
2010 buf := codec.NewBuffer(b)
2011 m.IsEnable = buf.DecodeBool()
2015 // LispRlocProbeEnableDisableReply defines message 'lisp_rloc_probe_enable_disable_reply'.
2016 type LispRlocProbeEnableDisableReply struct {
2017 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2020 func (m *LispRlocProbeEnableDisableReply) Reset() { *m = LispRlocProbeEnableDisableReply{} }
2021 func (*LispRlocProbeEnableDisableReply) GetMessageName() string {
2022 return "lisp_rloc_probe_enable_disable_reply"
2024 func (*LispRlocProbeEnableDisableReply) GetCrcString() string { return "e8d4e804" }
2025 func (*LispRlocProbeEnableDisableReply) GetMessageType() api.MessageType {
2026 return api.ReplyMessage
2029 func (m *LispRlocProbeEnableDisableReply) Size() int {
2034 size += 4 // m.Retval
2037 func (m *LispRlocProbeEnableDisableReply) Marshal(b []byte) ([]byte, error) {
2038 var buf *codec.Buffer
2040 buf = codec.NewBuffer(make([]byte, m.Size()))
2042 buf = codec.NewBuffer(b)
2044 buf.EncodeUint32(uint32(m.Retval))
2045 return buf.Bytes(), nil
2047 func (m *LispRlocProbeEnableDisableReply) Unmarshal(b []byte) error {
2048 buf := codec.NewBuffer(b)
2049 m.Retval = int32(buf.DecodeUint32())
2053 // LispUsePetr defines message 'lisp_use_petr'.
2054 type LispUsePetr struct {
2055 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
2056 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
2059 func (m *LispUsePetr) Reset() { *m = LispUsePetr{} }
2060 func (*LispUsePetr) GetMessageName() string { return "lisp_use_petr" }
2061 func (*LispUsePetr) GetCrcString() string { return "9e141831" }
2062 func (*LispUsePetr) GetMessageType() api.MessageType {
2063 return api.RequestMessage
2066 func (m *LispUsePetr) Size() int {
2071 size += 1 // m.IPAddress.Af
2072 size += 1 * 16 // m.IPAddress.Un
2073 size += 1 // m.IsAdd
2076 func (m *LispUsePetr) Marshal(b []byte) ([]byte, error) {
2077 var buf *codec.Buffer
2079 buf = codec.NewBuffer(make([]byte, m.Size()))
2081 buf = codec.NewBuffer(b)
2083 buf.EncodeUint8(uint8(m.IPAddress.Af))
2084 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
2085 buf.EncodeBool(m.IsAdd)
2086 return buf.Bytes(), nil
2088 func (m *LispUsePetr) Unmarshal(b []byte) error {
2089 buf := codec.NewBuffer(b)
2090 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
2091 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
2092 m.IsAdd = buf.DecodeBool()
2096 // LispUsePetrReply defines message 'lisp_use_petr_reply'.
2097 type LispUsePetrReply struct {
2098 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2101 func (m *LispUsePetrReply) Reset() { *m = LispUsePetrReply{} }
2102 func (*LispUsePetrReply) GetMessageName() string { return "lisp_use_petr_reply" }
2103 func (*LispUsePetrReply) GetCrcString() string { return "e8d4e804" }
2104 func (*LispUsePetrReply) GetMessageType() api.MessageType {
2105 return api.ReplyMessage
2108 func (m *LispUsePetrReply) Size() int {
2113 size += 4 // m.Retval
2116 func (m *LispUsePetrReply) Marshal(b []byte) ([]byte, error) {
2117 var buf *codec.Buffer
2119 buf = codec.NewBuffer(make([]byte, m.Size()))
2121 buf = codec.NewBuffer(b)
2123 buf.EncodeUint32(uint32(m.Retval))
2124 return buf.Bytes(), nil
2126 func (m *LispUsePetrReply) Unmarshal(b []byte) error {
2127 buf := codec.NewBuffer(b)
2128 m.Retval = int32(buf.DecodeUint32())
2132 // ShowLispMapRegisterState defines message 'show_lisp_map_register_state'.
2133 type ShowLispMapRegisterState struct{}
2135 func (m *ShowLispMapRegisterState) Reset() { *m = ShowLispMapRegisterState{} }
2136 func (*ShowLispMapRegisterState) GetMessageName() string { return "show_lisp_map_register_state" }
2137 func (*ShowLispMapRegisterState) GetCrcString() string { return "51077d14" }
2138 func (*ShowLispMapRegisterState) GetMessageType() api.MessageType {
2139 return api.RequestMessage
2142 func (m *ShowLispMapRegisterState) Size() int {
2149 func (m *ShowLispMapRegisterState) Marshal(b []byte) ([]byte, error) {
2150 var buf *codec.Buffer
2152 buf = codec.NewBuffer(make([]byte, m.Size()))
2154 buf = codec.NewBuffer(b)
2156 return buf.Bytes(), nil
2158 func (m *ShowLispMapRegisterState) Unmarshal(b []byte) error {
2162 // ShowLispMapRegisterStateReply defines message 'show_lisp_map_register_state_reply'.
2163 type ShowLispMapRegisterStateReply struct {
2164 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2165 IsEnabled bool `binapi:"bool,name=is_enabled,default=true" json:"is_enabled,omitempty"`
2168 func (m *ShowLispMapRegisterStateReply) Reset() { *m = ShowLispMapRegisterStateReply{} }
2169 func (*ShowLispMapRegisterStateReply) GetMessageName() string {
2170 return "show_lisp_map_register_state_reply"
2172 func (*ShowLispMapRegisterStateReply) GetCrcString() string { return "e33a377b" }
2173 func (*ShowLispMapRegisterStateReply) GetMessageType() api.MessageType {
2174 return api.ReplyMessage
2177 func (m *ShowLispMapRegisterStateReply) Size() int {
2182 size += 4 // m.Retval
2183 size += 1 // m.IsEnabled
2186 func (m *ShowLispMapRegisterStateReply) Marshal(b []byte) ([]byte, error) {
2187 var buf *codec.Buffer
2189 buf = codec.NewBuffer(make([]byte, m.Size()))
2191 buf = codec.NewBuffer(b)
2193 buf.EncodeUint32(uint32(m.Retval))
2194 buf.EncodeBool(m.IsEnabled)
2195 return buf.Bytes(), nil
2197 func (m *ShowLispMapRegisterStateReply) Unmarshal(b []byte) error {
2198 buf := codec.NewBuffer(b)
2199 m.Retval = int32(buf.DecodeUint32())
2200 m.IsEnabled = buf.DecodeBool()
2204 // ShowLispMapRequestMode defines message 'show_lisp_map_request_mode'.
2205 type ShowLispMapRequestMode struct{}
2207 func (m *ShowLispMapRequestMode) Reset() { *m = ShowLispMapRequestMode{} }
2208 func (*ShowLispMapRequestMode) GetMessageName() string { return "show_lisp_map_request_mode" }
2209 func (*ShowLispMapRequestMode) GetCrcString() string { return "51077d14" }
2210 func (*ShowLispMapRequestMode) GetMessageType() api.MessageType {
2211 return api.RequestMessage
2214 func (m *ShowLispMapRequestMode) Size() int {
2221 func (m *ShowLispMapRequestMode) Marshal(b []byte) ([]byte, error) {
2222 var buf *codec.Buffer
2224 buf = codec.NewBuffer(make([]byte, m.Size()))
2226 buf = codec.NewBuffer(b)
2228 return buf.Bytes(), nil
2230 func (m *ShowLispMapRequestMode) Unmarshal(b []byte) error {
2234 // ShowLispMapRequestModeReply defines message 'show_lisp_map_request_mode_reply'.
2235 type ShowLispMapRequestModeReply struct {
2236 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2237 IsSrcDst bool `binapi:"bool,name=is_src_dst" json:"is_src_dst,omitempty"`
2240 func (m *ShowLispMapRequestModeReply) Reset() { *m = ShowLispMapRequestModeReply{} }
2241 func (*ShowLispMapRequestModeReply) GetMessageName() string {
2242 return "show_lisp_map_request_mode_reply"
2244 func (*ShowLispMapRequestModeReply) GetCrcString() string { return "5b05038e" }
2245 func (*ShowLispMapRequestModeReply) GetMessageType() api.MessageType {
2246 return api.ReplyMessage
2249 func (m *ShowLispMapRequestModeReply) Size() int {
2254 size += 4 // m.Retval
2255 size += 1 // m.IsSrcDst
2258 func (m *ShowLispMapRequestModeReply) Marshal(b []byte) ([]byte, error) {
2259 var buf *codec.Buffer
2261 buf = codec.NewBuffer(make([]byte, m.Size()))
2263 buf = codec.NewBuffer(b)
2265 buf.EncodeUint32(uint32(m.Retval))
2266 buf.EncodeBool(m.IsSrcDst)
2267 return buf.Bytes(), nil
2269 func (m *ShowLispMapRequestModeReply) Unmarshal(b []byte) error {
2270 buf := codec.NewBuffer(b)
2271 m.Retval = int32(buf.DecodeUint32())
2272 m.IsSrcDst = buf.DecodeBool()
2276 // ShowLispPitr defines message 'show_lisp_pitr'.
2277 type ShowLispPitr struct{}
2279 func (m *ShowLispPitr) Reset() { *m = ShowLispPitr{} }
2280 func (*ShowLispPitr) GetMessageName() string { return "show_lisp_pitr" }
2281 func (*ShowLispPitr) GetCrcString() string { return "51077d14" }
2282 func (*ShowLispPitr) GetMessageType() api.MessageType {
2283 return api.RequestMessage
2286 func (m *ShowLispPitr) Size() int {
2293 func (m *ShowLispPitr) Marshal(b []byte) ([]byte, error) {
2294 var buf *codec.Buffer
2296 buf = codec.NewBuffer(make([]byte, m.Size()))
2298 buf = codec.NewBuffer(b)
2300 return buf.Bytes(), nil
2302 func (m *ShowLispPitr) Unmarshal(b []byte) error {
2306 // ShowLispPitrReply defines message 'show_lisp_pitr_reply'.
2307 type ShowLispPitrReply struct {
2308 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2309 IsEnabled bool `binapi:"bool,name=is_enabled" json:"is_enabled,omitempty"`
2310 LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
2313 func (m *ShowLispPitrReply) Reset() { *m = ShowLispPitrReply{} }
2314 func (*ShowLispPitrReply) GetMessageName() string { return "show_lisp_pitr_reply" }
2315 func (*ShowLispPitrReply) GetCrcString() string { return "27aa69b1" }
2316 func (*ShowLispPitrReply) GetMessageType() api.MessageType {
2317 return api.ReplyMessage
2320 func (m *ShowLispPitrReply) Size() int {
2325 size += 4 // m.Retval
2326 size += 1 // m.IsEnabled
2327 size += 64 // m.LocatorSetName
2330 func (m *ShowLispPitrReply) Marshal(b []byte) ([]byte, error) {
2331 var buf *codec.Buffer
2333 buf = codec.NewBuffer(make([]byte, m.Size()))
2335 buf = codec.NewBuffer(b)
2337 buf.EncodeUint32(uint32(m.Retval))
2338 buf.EncodeBool(m.IsEnabled)
2339 buf.EncodeString(m.LocatorSetName, 64)
2340 return buf.Bytes(), nil
2342 func (m *ShowLispPitrReply) Unmarshal(b []byte) error {
2343 buf := codec.NewBuffer(b)
2344 m.Retval = int32(buf.DecodeUint32())
2345 m.IsEnabled = buf.DecodeBool()
2346 m.LocatorSetName = buf.DecodeString(64)
2350 // ShowLispRlocProbeState defines message 'show_lisp_rloc_probe_state'.
2351 type ShowLispRlocProbeState struct{}
2353 func (m *ShowLispRlocProbeState) Reset() { *m = ShowLispRlocProbeState{} }
2354 func (*ShowLispRlocProbeState) GetMessageName() string { return "show_lisp_rloc_probe_state" }
2355 func (*ShowLispRlocProbeState) GetCrcString() string { return "51077d14" }
2356 func (*ShowLispRlocProbeState) GetMessageType() api.MessageType {
2357 return api.RequestMessage
2360 func (m *ShowLispRlocProbeState) Size() int {
2367 func (m *ShowLispRlocProbeState) Marshal(b []byte) ([]byte, error) {
2368 var buf *codec.Buffer
2370 buf = codec.NewBuffer(make([]byte, m.Size()))
2372 buf = codec.NewBuffer(b)
2374 return buf.Bytes(), nil
2376 func (m *ShowLispRlocProbeState) Unmarshal(b []byte) error {
2380 // ShowLispRlocProbeStateReply defines message 'show_lisp_rloc_probe_state_reply'.
2381 type ShowLispRlocProbeStateReply struct {
2382 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2383 IsEnabled bool `binapi:"bool,name=is_enabled,default=true" json:"is_enabled,omitempty"`
2386 func (m *ShowLispRlocProbeStateReply) Reset() { *m = ShowLispRlocProbeStateReply{} }
2387 func (*ShowLispRlocProbeStateReply) GetMessageName() string {
2388 return "show_lisp_rloc_probe_state_reply"
2390 func (*ShowLispRlocProbeStateReply) GetCrcString() string { return "e33a377b" }
2391 func (*ShowLispRlocProbeStateReply) GetMessageType() api.MessageType {
2392 return api.ReplyMessage
2395 func (m *ShowLispRlocProbeStateReply) Size() int {
2400 size += 4 // m.Retval
2401 size += 1 // m.IsEnabled
2404 func (m *ShowLispRlocProbeStateReply) Marshal(b []byte) ([]byte, error) {
2405 var buf *codec.Buffer
2407 buf = codec.NewBuffer(make([]byte, m.Size()))
2409 buf = codec.NewBuffer(b)
2411 buf.EncodeUint32(uint32(m.Retval))
2412 buf.EncodeBool(m.IsEnabled)
2413 return buf.Bytes(), nil
2415 func (m *ShowLispRlocProbeStateReply) Unmarshal(b []byte) error {
2416 buf := codec.NewBuffer(b)
2417 m.Retval = int32(buf.DecodeUint32())
2418 m.IsEnabled = buf.DecodeBool()
2422 // ShowLispStatus defines message 'show_lisp_status'.
2423 type ShowLispStatus struct{}
2425 func (m *ShowLispStatus) Reset() { *m = ShowLispStatus{} }
2426 func (*ShowLispStatus) GetMessageName() string { return "show_lisp_status" }
2427 func (*ShowLispStatus) GetCrcString() string { return "51077d14" }
2428 func (*ShowLispStatus) GetMessageType() api.MessageType {
2429 return api.RequestMessage
2432 func (m *ShowLispStatus) Size() int {
2439 func (m *ShowLispStatus) Marshal(b []byte) ([]byte, error) {
2440 var buf *codec.Buffer
2442 buf = codec.NewBuffer(make([]byte, m.Size()))
2444 buf = codec.NewBuffer(b)
2446 return buf.Bytes(), nil
2448 func (m *ShowLispStatus) Unmarshal(b []byte) error {
2452 // ShowLispStatusReply defines message 'show_lisp_status_reply'.
2453 type ShowLispStatusReply struct {
2454 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2455 IsLispEnabled bool `binapi:"bool,name=is_lisp_enabled" json:"is_lisp_enabled,omitempty"`
2456 IsGpeEnabled bool `binapi:"bool,name=is_gpe_enabled" json:"is_gpe_enabled,omitempty"`
2459 func (m *ShowLispStatusReply) Reset() { *m = ShowLispStatusReply{} }
2460 func (*ShowLispStatusReply) GetMessageName() string { return "show_lisp_status_reply" }
2461 func (*ShowLispStatusReply) GetCrcString() string { return "9e8f10c0" }
2462 func (*ShowLispStatusReply) GetMessageType() api.MessageType {
2463 return api.ReplyMessage
2466 func (m *ShowLispStatusReply) Size() int {
2471 size += 4 // m.Retval
2472 size += 1 // m.IsLispEnabled
2473 size += 1 // m.IsGpeEnabled
2476 func (m *ShowLispStatusReply) Marshal(b []byte) ([]byte, error) {
2477 var buf *codec.Buffer
2479 buf = codec.NewBuffer(make([]byte, m.Size()))
2481 buf = codec.NewBuffer(b)
2483 buf.EncodeUint32(uint32(m.Retval))
2484 buf.EncodeBool(m.IsLispEnabled)
2485 buf.EncodeBool(m.IsGpeEnabled)
2486 return buf.Bytes(), nil
2488 func (m *ShowLispStatusReply) Unmarshal(b []byte) error {
2489 buf := codec.NewBuffer(b)
2490 m.Retval = int32(buf.DecodeUint32())
2491 m.IsLispEnabled = buf.DecodeBool()
2492 m.IsGpeEnabled = buf.DecodeBool()
2496 // ShowLispUsePetr defines message 'show_lisp_use_petr'.
2497 type ShowLispUsePetr struct{}
2499 func (m *ShowLispUsePetr) Reset() { *m = ShowLispUsePetr{} }
2500 func (*ShowLispUsePetr) GetMessageName() string { return "show_lisp_use_petr" }
2501 func (*ShowLispUsePetr) GetCrcString() string { return "51077d14" }
2502 func (*ShowLispUsePetr) GetMessageType() api.MessageType {
2503 return api.RequestMessage
2506 func (m *ShowLispUsePetr) Size() int {
2513 func (m *ShowLispUsePetr) Marshal(b []byte) ([]byte, error) {
2514 var buf *codec.Buffer
2516 buf = codec.NewBuffer(make([]byte, m.Size()))
2518 buf = codec.NewBuffer(b)
2520 return buf.Bytes(), nil
2522 func (m *ShowLispUsePetr) Unmarshal(b []byte) error {
2526 // ShowLispUsePetrReply defines message 'show_lisp_use_petr_reply'.
2527 type ShowLispUsePetrReply struct {
2528 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2529 IsPetrEnable bool `binapi:"bool,name=is_petr_enable,default=true" json:"is_petr_enable,omitempty"`
2530 IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
2533 func (m *ShowLispUsePetrReply) Reset() { *m = ShowLispUsePetrReply{} }
2534 func (*ShowLispUsePetrReply) GetMessageName() string { return "show_lisp_use_petr_reply" }
2535 func (*ShowLispUsePetrReply) GetCrcString() string { return "dcad8a81" }
2536 func (*ShowLispUsePetrReply) GetMessageType() api.MessageType {
2537 return api.ReplyMessage
2540 func (m *ShowLispUsePetrReply) Size() int {
2545 size += 4 // m.Retval
2546 size += 1 // m.IsPetrEnable
2547 size += 1 // m.IPAddress.Af
2548 size += 1 * 16 // m.IPAddress.Un
2551 func (m *ShowLispUsePetrReply) Marshal(b []byte) ([]byte, error) {
2552 var buf *codec.Buffer
2554 buf = codec.NewBuffer(make([]byte, m.Size()))
2556 buf = codec.NewBuffer(b)
2558 buf.EncodeUint32(uint32(m.Retval))
2559 buf.EncodeBool(m.IsPetrEnable)
2560 buf.EncodeUint8(uint8(m.IPAddress.Af))
2561 buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 0)
2562 return buf.Bytes(), nil
2564 func (m *ShowLispUsePetrReply) Unmarshal(b []byte) error {
2565 buf := codec.NewBuffer(b)
2566 m.Retval = int32(buf.DecodeUint32())
2567 m.IsPetrEnable = buf.DecodeBool()
2568 m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
2569 copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
2573 func init() { file_lisp_binapi_init() }
2574 func file_lisp_binapi_init() {
2575 api.RegisterMessage((*LispAddDelAdjacency)(nil), "lisp_add_del_adjacency_cf5edb61")
2576 api.RegisterMessage((*LispAddDelAdjacencyReply)(nil), "lisp_add_del_adjacency_reply_e8d4e804")
2577 api.RegisterMessage((*LispAddDelLocalEid)(nil), "lisp_add_del_local_eid_21f573bd")
2578 api.RegisterMessage((*LispAddDelLocalEidReply)(nil), "lisp_add_del_local_eid_reply_e8d4e804")
2579 api.RegisterMessage((*LispAddDelLocator)(nil), "lisp_add_del_locator_af4d8f13")
2580 api.RegisterMessage((*LispAddDelLocatorReply)(nil), "lisp_add_del_locator_reply_e8d4e804")
2581 api.RegisterMessage((*LispAddDelLocatorSet)(nil), "lisp_add_del_locator_set_6fcd6471")
2582 api.RegisterMessage((*LispAddDelLocatorSetReply)(nil), "lisp_add_del_locator_set_reply_b6666db4")
2583 api.RegisterMessage((*LispAddDelMapRequestItrRlocs)(nil), "lisp_add_del_map_request_itr_rlocs_6be88e45")
2584 api.RegisterMessage((*LispAddDelMapRequestItrRlocsReply)(nil), "lisp_add_del_map_request_itr_rlocs_reply_e8d4e804")
2585 api.RegisterMessage((*LispAddDelMapResolver)(nil), "lisp_add_del_map_resolver_6598ea7c")
2586 api.RegisterMessage((*LispAddDelMapResolverReply)(nil), "lisp_add_del_map_resolver_reply_e8d4e804")
2587 api.RegisterMessage((*LispAddDelMapServer)(nil), "lisp_add_del_map_server_6598ea7c")
2588 api.RegisterMessage((*LispAddDelMapServerReply)(nil), "lisp_add_del_map_server_reply_e8d4e804")
2589 api.RegisterMessage((*LispAddDelRemoteMapping)(nil), "lisp_add_del_remote_mapping_fae8ed77")
2590 api.RegisterMessage((*LispAddDelRemoteMappingReply)(nil), "lisp_add_del_remote_mapping_reply_e8d4e804")
2591 api.RegisterMessage((*LispAdjacenciesGet)(nil), "lisp_adjacencies_get_8d1f2fe9")
2592 api.RegisterMessage((*LispAdjacenciesGetReply)(nil), "lisp_adjacencies_get_reply_3f97bcdd")
2593 api.RegisterMessage((*LispEidTableAddDelMap)(nil), "lisp_eid_table_add_del_map_9481416b")
2594 api.RegisterMessage((*LispEidTableAddDelMapReply)(nil), "lisp_eid_table_add_del_map_reply_e8d4e804")
2595 api.RegisterMessage((*LispEidTableDetails)(nil), "lisp_eid_table_details_4bc32e3a")
2596 api.RegisterMessage((*LispEidTableDump)(nil), "lisp_eid_table_dump_b959b73b")
2597 api.RegisterMessage((*LispEidTableMapDetails)(nil), "lisp_eid_table_map_details_0b6859e2")
2598 api.RegisterMessage((*LispEidTableMapDump)(nil), "lisp_eid_table_map_dump_d6cf0c3d")
2599 api.RegisterMessage((*LispEidTableVniDetails)(nil), "lisp_eid_table_vni_details_64abc01e")
2600 api.RegisterMessage((*LispEidTableVniDump)(nil), "lisp_eid_table_vni_dump_51077d14")
2601 api.RegisterMessage((*LispEnableDisable)(nil), "lisp_enable_disable_c264d7bf")
2602 api.RegisterMessage((*LispEnableDisableReply)(nil), "lisp_enable_disable_reply_e8d4e804")
2603 api.RegisterMessage((*LispGetMapRequestItrRlocs)(nil), "lisp_get_map_request_itr_rlocs_51077d14")
2604 api.RegisterMessage((*LispGetMapRequestItrRlocsReply)(nil), "lisp_get_map_request_itr_rlocs_reply_76580f3a")
2605 api.RegisterMessage((*LispLocatorDetails)(nil), "lisp_locator_details_c0c4c2a7")
2606 api.RegisterMessage((*LispLocatorDump)(nil), "lisp_locator_dump_b954fad7")
2607 api.RegisterMessage((*LispLocatorSetDetails)(nil), "lisp_locator_set_details_5b33a105")
2608 api.RegisterMessage((*LispLocatorSetDump)(nil), "lisp_locator_set_dump_c2cb5922")
2609 api.RegisterMessage((*LispMapRegisterEnableDisable)(nil), "lisp_map_register_enable_disable_c264d7bf")
2610 api.RegisterMessage((*LispMapRegisterEnableDisableReply)(nil), "lisp_map_register_enable_disable_reply_e8d4e804")
2611 api.RegisterMessage((*LispMapRequestMode)(nil), "lisp_map_request_mode_f43c26ae")
2612 api.RegisterMessage((*LispMapRequestModeReply)(nil), "lisp_map_request_mode_reply_e8d4e804")
2613 api.RegisterMessage((*LispMapResolverDetails)(nil), "lisp_map_resolver_details_82a09deb")
2614 api.RegisterMessage((*LispMapResolverDump)(nil), "lisp_map_resolver_dump_51077d14")
2615 api.RegisterMessage((*LispMapServerDetails)(nil), "lisp_map_server_details_82a09deb")
2616 api.RegisterMessage((*LispMapServerDump)(nil), "lisp_map_server_dump_51077d14")
2617 api.RegisterMessage((*LispPitrSetLocatorSet)(nil), "lisp_pitr_set_locator_set_486e2b76")
2618 api.RegisterMessage((*LispPitrSetLocatorSetReply)(nil), "lisp_pitr_set_locator_set_reply_e8d4e804")
2619 api.RegisterMessage((*LispRlocProbeEnableDisable)(nil), "lisp_rloc_probe_enable_disable_c264d7bf")
2620 api.RegisterMessage((*LispRlocProbeEnableDisableReply)(nil), "lisp_rloc_probe_enable_disable_reply_e8d4e804")
2621 api.RegisterMessage((*LispUsePetr)(nil), "lisp_use_petr_9e141831")
2622 api.RegisterMessage((*LispUsePetrReply)(nil), "lisp_use_petr_reply_e8d4e804")
2623 api.RegisterMessage((*ShowLispMapRegisterState)(nil), "show_lisp_map_register_state_51077d14")
2624 api.RegisterMessage((*ShowLispMapRegisterStateReply)(nil), "show_lisp_map_register_state_reply_e33a377b")
2625 api.RegisterMessage((*ShowLispMapRequestMode)(nil), "show_lisp_map_request_mode_51077d14")
2626 api.RegisterMessage((*ShowLispMapRequestModeReply)(nil), "show_lisp_map_request_mode_reply_5b05038e")
2627 api.RegisterMessage((*ShowLispPitr)(nil), "show_lisp_pitr_51077d14")
2628 api.RegisterMessage((*ShowLispPitrReply)(nil), "show_lisp_pitr_reply_27aa69b1")
2629 api.RegisterMessage((*ShowLispRlocProbeState)(nil), "show_lisp_rloc_probe_state_51077d14")
2630 api.RegisterMessage((*ShowLispRlocProbeStateReply)(nil), "show_lisp_rloc_probe_state_reply_e33a377b")
2631 api.RegisterMessage((*ShowLispStatus)(nil), "show_lisp_status_51077d14")
2632 api.RegisterMessage((*ShowLispStatusReply)(nil), "show_lisp_status_reply_9e8f10c0")
2633 api.RegisterMessage((*ShowLispUsePetr)(nil), "show_lisp_use_petr_51077d14")
2634 api.RegisterMessage((*ShowLispUsePetrReply)(nil), "show_lisp_use_petr_reply_dcad8a81")
2637 // Messages returns list of all messages in this module.
2638 func AllMessages() []api.Message {
2639 return []api.Message{
2640 (*LispAddDelAdjacency)(nil),
2641 (*LispAddDelAdjacencyReply)(nil),
2642 (*LispAddDelLocalEid)(nil),
2643 (*LispAddDelLocalEidReply)(nil),
2644 (*LispAddDelLocator)(nil),
2645 (*LispAddDelLocatorReply)(nil),
2646 (*LispAddDelLocatorSet)(nil),
2647 (*LispAddDelLocatorSetReply)(nil),
2648 (*LispAddDelMapRequestItrRlocs)(nil),
2649 (*LispAddDelMapRequestItrRlocsReply)(nil),
2650 (*LispAddDelMapResolver)(nil),
2651 (*LispAddDelMapResolverReply)(nil),
2652 (*LispAddDelMapServer)(nil),
2653 (*LispAddDelMapServerReply)(nil),
2654 (*LispAddDelRemoteMapping)(nil),
2655 (*LispAddDelRemoteMappingReply)(nil),
2656 (*LispAdjacenciesGet)(nil),
2657 (*LispAdjacenciesGetReply)(nil),
2658 (*LispEidTableAddDelMap)(nil),
2659 (*LispEidTableAddDelMapReply)(nil),
2660 (*LispEidTableDetails)(nil),
2661 (*LispEidTableDump)(nil),
2662 (*LispEidTableMapDetails)(nil),
2663 (*LispEidTableMapDump)(nil),
2664 (*LispEidTableVniDetails)(nil),
2665 (*LispEidTableVniDump)(nil),
2666 (*LispEnableDisable)(nil),
2667 (*LispEnableDisableReply)(nil),
2668 (*LispGetMapRequestItrRlocs)(nil),
2669 (*LispGetMapRequestItrRlocsReply)(nil),
2670 (*LispLocatorDetails)(nil),
2671 (*LispLocatorDump)(nil),
2672 (*LispLocatorSetDetails)(nil),
2673 (*LispLocatorSetDump)(nil),
2674 (*LispMapRegisterEnableDisable)(nil),
2675 (*LispMapRegisterEnableDisableReply)(nil),
2676 (*LispMapRequestMode)(nil),
2677 (*LispMapRequestModeReply)(nil),
2678 (*LispMapResolverDetails)(nil),
2679 (*LispMapResolverDump)(nil),
2680 (*LispMapServerDetails)(nil),
2681 (*LispMapServerDump)(nil),
2682 (*LispPitrSetLocatorSet)(nil),
2683 (*LispPitrSetLocatorSetReply)(nil),
2684 (*LispRlocProbeEnableDisable)(nil),
2685 (*LispRlocProbeEnableDisableReply)(nil),
2686 (*LispUsePetr)(nil),
2687 (*LispUsePetrReply)(nil),
2688 (*ShowLispMapRegisterState)(nil),
2689 (*ShowLispMapRegisterStateReply)(nil),
2690 (*ShowLispMapRequestMode)(nil),
2691 (*ShowLispMapRequestModeReply)(nil),
2692 (*ShowLispPitr)(nil),
2693 (*ShowLispPitrReply)(nil),
2694 (*ShowLispRlocProbeState)(nil),
2695 (*ShowLispRlocProbeStateReply)(nil),
2696 (*ShowLispStatus)(nil),
2697 (*ShowLispStatusReply)(nil),
2698 (*ShowLispUsePetr)(nil),
2699 (*ShowLispUsePetrReply)(nil),