github.com/networkservicemesh/govpp@v0.0.0-20240328101142-8a444680fbba/binapi/lisp/lisp.ba.go (about)

     1  // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
     2  // versions:
     3  //  binapi-generator: v0.10.0-dev
     4  //  VPP:              23.10-rc0~170-g6f1548434
     5  // source: plugins/lisp.api.json
     6  
     7  // Package lisp contains generated bindings for API file lisp.api.
     8  //
     9  // Contents:
    10  // -  1 enum
    11  // -  1 struct
    12  // - 60 messages
    13  package lisp
    14  
    15  import (
    16  	"strconv"
    17  
    18  	_ "github.com/networkservicemesh/govpp/binapi/ethernet_types"
    19  	interface_types "github.com/networkservicemesh/govpp/binapi/interface_types"
    20  	ip_types "github.com/networkservicemesh/govpp/binapi/ip_types"
    21  	lisp_types "github.com/networkservicemesh/govpp/binapi/lisp_types"
    22  	api "go.fd.io/govpp/api"
    23  	codec "go.fd.io/govpp/codec"
    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    = "lisp"
    34  	APIVersion = "2.0.0"
    35  	VersionCrc = 0xcb04530f
    36  )
    37  
    38  // LispLocatorSetFilter defines enum 'lisp_locator_set_filter'.
    39  type LispLocatorSetFilter uint8
    40  
    41  const (
    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
    45  )
    46  
    47  var (
    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",
    52  	}
    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,
    57  	}
    58  )
    59  
    60  func (x LispLocatorSetFilter) String() string {
    61  	s, ok := LispLocatorSetFilter_name[uint8(x)]
    62  	if ok {
    63  		return s
    64  	}
    65  	return "LispLocatorSetFilter(" + strconv.Itoa(int(x)) + ")"
    66  }
    67  
    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"`
    72  }
    73  
    74  // add or delete LISP adjacency adjacency
    75  //   - is_add - add address if non-zero, else delete
    76  //   - vni - virtual network instance
    77  //   - reid - remote EID
    78  //   - leid - local EID
    79  //
    80  // LispAddDelAdjacency defines message 'lisp_add_del_adjacency'.
    81  type LispAddDelAdjacency struct {
    82  	IsAdd bool           `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
    83  	Vni   uint32         `binapi:"u32,name=vni" json:"vni,omitempty"`
    84  	Reid  lisp_types.Eid `binapi:"eid,name=reid" json:"reid,omitempty"`
    85  	Leid  lisp_types.Eid `binapi:"eid,name=leid" json:"leid,omitempty"`
    86  }
    87  
    88  func (m *LispAddDelAdjacency) Reset()               { *m = LispAddDelAdjacency{} }
    89  func (*LispAddDelAdjacency) GetMessageName() string { return "lisp_add_del_adjacency" }
    90  func (*LispAddDelAdjacency) GetCrcString() string   { return "2ce0e6f6" }
    91  func (*LispAddDelAdjacency) GetMessageType() api.MessageType {
    92  	return api.RequestMessage
    93  }
    94  
    95  func (m *LispAddDelAdjacency) Size() (size int) {
    96  	if m == nil {
    97  		return 0
    98  	}
    99  	size += 1      // m.IsAdd
   100  	size += 4      // m.Vni
   101  	size += 1      // m.Reid.Type
   102  	size += 1 * 18 // m.Reid.Address
   103  	size += 1      // m.Leid.Type
   104  	size += 1 * 18 // m.Leid.Address
   105  	return size
   106  }
   107  func (m *LispAddDelAdjacency) Marshal(b []byte) ([]byte, error) {
   108  	if b == nil {
   109  		b = make([]byte, m.Size())
   110  	}
   111  	buf := codec.NewBuffer(b)
   112  	buf.EncodeBool(m.IsAdd)
   113  	buf.EncodeUint32(m.Vni)
   114  	buf.EncodeUint8(uint8(m.Reid.Type))
   115  	buf.EncodeBytes(m.Reid.Address.XXX_UnionData[:], 18)
   116  	buf.EncodeUint8(uint8(m.Leid.Type))
   117  	buf.EncodeBytes(m.Leid.Address.XXX_UnionData[:], 18)
   118  	return buf.Bytes(), nil
   119  }
   120  func (m *LispAddDelAdjacency) Unmarshal(b []byte) error {
   121  	buf := codec.NewBuffer(b)
   122  	m.IsAdd = buf.DecodeBool()
   123  	m.Vni = buf.DecodeUint32()
   124  	m.Reid.Type = lisp_types.EidType(buf.DecodeUint8())
   125  	copy(m.Reid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
   126  	m.Leid.Type = lisp_types.EidType(buf.DecodeUint8())
   127  	copy(m.Leid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
   128  	return nil
   129  }
   130  
   131  // LispAddDelAdjacencyReply defines message 'lisp_add_del_adjacency_reply'.
   132  type LispAddDelAdjacencyReply struct {
   133  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   134  }
   135  
   136  func (m *LispAddDelAdjacencyReply) Reset()               { *m = LispAddDelAdjacencyReply{} }
   137  func (*LispAddDelAdjacencyReply) GetMessageName() string { return "lisp_add_del_adjacency_reply" }
   138  func (*LispAddDelAdjacencyReply) GetCrcString() string   { return "e8d4e804" }
   139  func (*LispAddDelAdjacencyReply) GetMessageType() api.MessageType {
   140  	return api.ReplyMessage
   141  }
   142  
   143  func (m *LispAddDelAdjacencyReply) Size() (size int) {
   144  	if m == nil {
   145  		return 0
   146  	}
   147  	size += 4 // m.Retval
   148  	return size
   149  }
   150  func (m *LispAddDelAdjacencyReply) Marshal(b []byte) ([]byte, error) {
   151  	if b == nil {
   152  		b = make([]byte, m.Size())
   153  	}
   154  	buf := codec.NewBuffer(b)
   155  	buf.EncodeInt32(m.Retval)
   156  	return buf.Bytes(), nil
   157  }
   158  func (m *LispAddDelAdjacencyReply) Unmarshal(b []byte) error {
   159  	buf := codec.NewBuffer(b)
   160  	m.Retval = buf.DecodeInt32()
   161  	return nil
   162  }
   163  
   164  // add or delete lisp eid-table
   165  //   - is_add - add address if non-zero, else delete
   166  //   - eid - endpoint identifier
   167  //   - locator_set_name - name of locator_set to add/del eid-table
   168  //   - vni - virtual network instance
   169  //   - key - secret key
   170  //
   171  // LispAddDelLocalEid defines message 'lisp_add_del_local_eid'.
   172  type LispAddDelLocalEid struct {
   173  	IsAdd          bool               `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
   174  	Eid            lisp_types.Eid     `binapi:"eid,name=eid" json:"eid,omitempty"`
   175  	LocatorSetName string             `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
   176  	Vni            uint32             `binapi:"u32,name=vni" json:"vni,omitempty"`
   177  	Key            lisp_types.HmacKey `binapi:"hmac_key,name=key" json:"key,omitempty"`
   178  }
   179  
   180  func (m *LispAddDelLocalEid) Reset()               { *m = LispAddDelLocalEid{} }
   181  func (*LispAddDelLocalEid) GetMessageName() string { return "lisp_add_del_local_eid" }
   182  func (*LispAddDelLocalEid) GetCrcString() string   { return "4e5a83a2" }
   183  func (*LispAddDelLocalEid) GetMessageType() api.MessageType {
   184  	return api.RequestMessage
   185  }
   186  
   187  func (m *LispAddDelLocalEid) Size() (size int) {
   188  	if m == nil {
   189  		return 0
   190  	}
   191  	size += 1      // m.IsAdd
   192  	size += 1      // m.Eid.Type
   193  	size += 1 * 18 // m.Eid.Address
   194  	size += 64     // m.LocatorSetName
   195  	size += 4      // m.Vni
   196  	size += 1      // m.Key.ID
   197  	size += 1 * 64 // m.Key.Key
   198  	return size
   199  }
   200  func (m *LispAddDelLocalEid) Marshal(b []byte) ([]byte, error) {
   201  	if b == nil {
   202  		b = make([]byte, m.Size())
   203  	}
   204  	buf := codec.NewBuffer(b)
   205  	buf.EncodeBool(m.IsAdd)
   206  	buf.EncodeUint8(uint8(m.Eid.Type))
   207  	buf.EncodeBytes(m.Eid.Address.XXX_UnionData[:], 18)
   208  	buf.EncodeString(m.LocatorSetName, 64)
   209  	buf.EncodeUint32(m.Vni)
   210  	buf.EncodeUint8(uint8(m.Key.ID))
   211  	buf.EncodeBytes(m.Key.Key, 64)
   212  	return buf.Bytes(), nil
   213  }
   214  func (m *LispAddDelLocalEid) Unmarshal(b []byte) error {
   215  	buf := codec.NewBuffer(b)
   216  	m.IsAdd = buf.DecodeBool()
   217  	m.Eid.Type = lisp_types.EidType(buf.DecodeUint8())
   218  	copy(m.Eid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
   219  	m.LocatorSetName = buf.DecodeString(64)
   220  	m.Vni = buf.DecodeUint32()
   221  	m.Key.ID = lisp_types.HmacKeyID(buf.DecodeUint8())
   222  	m.Key.Key = make([]byte, 64)
   223  	copy(m.Key.Key, buf.DecodeBytes(len(m.Key.Key)))
   224  	return nil
   225  }
   226  
   227  // LispAddDelLocalEidReply defines message 'lisp_add_del_local_eid_reply'.
   228  type LispAddDelLocalEidReply struct {
   229  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   230  }
   231  
   232  func (m *LispAddDelLocalEidReply) Reset()               { *m = LispAddDelLocalEidReply{} }
   233  func (*LispAddDelLocalEidReply) GetMessageName() string { return "lisp_add_del_local_eid_reply" }
   234  func (*LispAddDelLocalEidReply) GetCrcString() string   { return "e8d4e804" }
   235  func (*LispAddDelLocalEidReply) GetMessageType() api.MessageType {
   236  	return api.ReplyMessage
   237  }
   238  
   239  func (m *LispAddDelLocalEidReply) Size() (size int) {
   240  	if m == nil {
   241  		return 0
   242  	}
   243  	size += 4 // m.Retval
   244  	return size
   245  }
   246  func (m *LispAddDelLocalEidReply) Marshal(b []byte) ([]byte, error) {
   247  	if b == nil {
   248  		b = make([]byte, m.Size())
   249  	}
   250  	buf := codec.NewBuffer(b)
   251  	buf.EncodeInt32(m.Retval)
   252  	return buf.Bytes(), nil
   253  }
   254  func (m *LispAddDelLocalEidReply) Unmarshal(b []byte) error {
   255  	buf := codec.NewBuffer(b)
   256  	m.Retval = buf.DecodeInt32()
   257  	return nil
   258  }
   259  
   260  // add or delete locator for locator_set
   261  //   - is_add - add address if non-zero, else delete
   262  //   - locator_set_name - name of locator_set to add/del locator
   263  //   - sw_if_index - index of the interface
   264  //   - priority - priority of the lisp locator
   265  //   - weight - weight of the lisp locator
   266  //
   267  // LispAddDelLocator defines message 'lisp_add_del_locator'.
   268  type LispAddDelLocator struct {
   269  	IsAdd          bool                           `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
   270  	LocatorSetName string                         `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
   271  	SwIfIndex      interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   272  	Priority       uint8                          `binapi:"u8,name=priority" json:"priority,omitempty"`
   273  	Weight         uint8                          `binapi:"u8,name=weight" json:"weight,omitempty"`
   274  }
   275  
   276  func (m *LispAddDelLocator) Reset()               { *m = LispAddDelLocator{} }
   277  func (*LispAddDelLocator) GetMessageName() string { return "lisp_add_del_locator" }
   278  func (*LispAddDelLocator) GetCrcString() string   { return "af4d8f13" }
   279  func (*LispAddDelLocator) GetMessageType() api.MessageType {
   280  	return api.RequestMessage
   281  }
   282  
   283  func (m *LispAddDelLocator) Size() (size int) {
   284  	if m == nil {
   285  		return 0
   286  	}
   287  	size += 1  // m.IsAdd
   288  	size += 64 // m.LocatorSetName
   289  	size += 4  // m.SwIfIndex
   290  	size += 1  // m.Priority
   291  	size += 1  // m.Weight
   292  	return size
   293  }
   294  func (m *LispAddDelLocator) Marshal(b []byte) ([]byte, error) {
   295  	if b == nil {
   296  		b = make([]byte, m.Size())
   297  	}
   298  	buf := codec.NewBuffer(b)
   299  	buf.EncodeBool(m.IsAdd)
   300  	buf.EncodeString(m.LocatorSetName, 64)
   301  	buf.EncodeUint32(uint32(m.SwIfIndex))
   302  	buf.EncodeUint8(m.Priority)
   303  	buf.EncodeUint8(m.Weight)
   304  	return buf.Bytes(), nil
   305  }
   306  func (m *LispAddDelLocator) Unmarshal(b []byte) error {
   307  	buf := codec.NewBuffer(b)
   308  	m.IsAdd = buf.DecodeBool()
   309  	m.LocatorSetName = buf.DecodeString(64)
   310  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   311  	m.Priority = buf.DecodeUint8()
   312  	m.Weight = buf.DecodeUint8()
   313  	return nil
   314  }
   315  
   316  // LispAddDelLocatorReply defines message 'lisp_add_del_locator_reply'.
   317  type LispAddDelLocatorReply struct {
   318  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   319  }
   320  
   321  func (m *LispAddDelLocatorReply) Reset()               { *m = LispAddDelLocatorReply{} }
   322  func (*LispAddDelLocatorReply) GetMessageName() string { return "lisp_add_del_locator_reply" }
   323  func (*LispAddDelLocatorReply) GetCrcString() string   { return "e8d4e804" }
   324  func (*LispAddDelLocatorReply) GetMessageType() api.MessageType {
   325  	return api.ReplyMessage
   326  }
   327  
   328  func (m *LispAddDelLocatorReply) Size() (size int) {
   329  	if m == nil {
   330  		return 0
   331  	}
   332  	size += 4 // m.Retval
   333  	return size
   334  }
   335  func (m *LispAddDelLocatorReply) Marshal(b []byte) ([]byte, error) {
   336  	if b == nil {
   337  		b = make([]byte, m.Size())
   338  	}
   339  	buf := codec.NewBuffer(b)
   340  	buf.EncodeInt32(m.Retval)
   341  	return buf.Bytes(), nil
   342  }
   343  func (m *LispAddDelLocatorReply) Unmarshal(b []byte) error {
   344  	buf := codec.NewBuffer(b)
   345  	m.Retval = buf.DecodeInt32()
   346  	return nil
   347  }
   348  
   349  // add or delete locator_set
   350  //   - is_add - add address if non-zero, else delete
   351  //   - locator_set_name - locator name
   352  //   - locator_num - number of locators
   353  //   - locators - LISP locator records
   354  //
   355  // LispAddDelLocatorSet defines message 'lisp_add_del_locator_set'.
   356  type LispAddDelLocatorSet struct {
   357  	IsAdd          bool                      `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
   358  	LocatorSetName string                    `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
   359  	LocatorNum     uint32                    `binapi:"u32,name=locator_num" json:"-"`
   360  	Locators       []lisp_types.LocalLocator `binapi:"local_locator[locator_num],name=locators" json:"locators,omitempty"`
   361  }
   362  
   363  func (m *LispAddDelLocatorSet) Reset()               { *m = LispAddDelLocatorSet{} }
   364  func (*LispAddDelLocatorSet) GetMessageName() string { return "lisp_add_del_locator_set" }
   365  func (*LispAddDelLocatorSet) GetCrcString() string   { return "6fcd6471" }
   366  func (*LispAddDelLocatorSet) GetMessageType() api.MessageType {
   367  	return api.RequestMessage
   368  }
   369  
   370  func (m *LispAddDelLocatorSet) Size() (size int) {
   371  	if m == nil {
   372  		return 0
   373  	}
   374  	size += 1  // m.IsAdd
   375  	size += 64 // m.LocatorSetName
   376  	size += 4  // m.LocatorNum
   377  	for j1 := 0; j1 < len(m.Locators); j1++ {
   378  		var s1 lisp_types.LocalLocator
   379  		_ = s1
   380  		if j1 < len(m.Locators) {
   381  			s1 = m.Locators[j1]
   382  		}
   383  		size += 4 // s1.SwIfIndex
   384  		size += 1 // s1.Priority
   385  		size += 1 // s1.Weight
   386  	}
   387  	return size
   388  }
   389  func (m *LispAddDelLocatorSet) Marshal(b []byte) ([]byte, error) {
   390  	if b == nil {
   391  		b = make([]byte, m.Size())
   392  	}
   393  	buf := codec.NewBuffer(b)
   394  	buf.EncodeBool(m.IsAdd)
   395  	buf.EncodeString(m.LocatorSetName, 64)
   396  	buf.EncodeUint32(uint32(len(m.Locators)))
   397  	for j0 := 0; j0 < len(m.Locators); j0++ {
   398  		var v0 lisp_types.LocalLocator // Locators
   399  		if j0 < len(m.Locators) {
   400  			v0 = m.Locators[j0]
   401  		}
   402  		buf.EncodeUint32(uint32(v0.SwIfIndex))
   403  		buf.EncodeUint8(v0.Priority)
   404  		buf.EncodeUint8(v0.Weight)
   405  	}
   406  	return buf.Bytes(), nil
   407  }
   408  func (m *LispAddDelLocatorSet) Unmarshal(b []byte) error {
   409  	buf := codec.NewBuffer(b)
   410  	m.IsAdd = buf.DecodeBool()
   411  	m.LocatorSetName = buf.DecodeString(64)
   412  	m.LocatorNum = buf.DecodeUint32()
   413  	m.Locators = make([]lisp_types.LocalLocator, m.LocatorNum)
   414  	for j0 := 0; j0 < len(m.Locators); j0++ {
   415  		m.Locators[j0].SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   416  		m.Locators[j0].Priority = buf.DecodeUint8()
   417  		m.Locators[j0].Weight = buf.DecodeUint8()
   418  	}
   419  	return nil
   420  }
   421  
   422  // Reply for locator_set add/del
   423  //   - retval - return code
   424  //   - ls_index - locator set index
   425  //
   426  // LispAddDelLocatorSetReply defines message 'lisp_add_del_locator_set_reply'.
   427  type LispAddDelLocatorSetReply struct {
   428  	Retval  int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
   429  	LsIndex uint32 `binapi:"u32,name=ls_index" json:"ls_index,omitempty"`
   430  }
   431  
   432  func (m *LispAddDelLocatorSetReply) Reset()               { *m = LispAddDelLocatorSetReply{} }
   433  func (*LispAddDelLocatorSetReply) GetMessageName() string { return "lisp_add_del_locator_set_reply" }
   434  func (*LispAddDelLocatorSetReply) GetCrcString() string   { return "b6666db4" }
   435  func (*LispAddDelLocatorSetReply) GetMessageType() api.MessageType {
   436  	return api.ReplyMessage
   437  }
   438  
   439  func (m *LispAddDelLocatorSetReply) Size() (size int) {
   440  	if m == nil {
   441  		return 0
   442  	}
   443  	size += 4 // m.Retval
   444  	size += 4 // m.LsIndex
   445  	return size
   446  }
   447  func (m *LispAddDelLocatorSetReply) Marshal(b []byte) ([]byte, error) {
   448  	if b == nil {
   449  		b = make([]byte, m.Size())
   450  	}
   451  	buf := codec.NewBuffer(b)
   452  	buf.EncodeInt32(m.Retval)
   453  	buf.EncodeUint32(m.LsIndex)
   454  	return buf.Bytes(), nil
   455  }
   456  func (m *LispAddDelLocatorSetReply) Unmarshal(b []byte) error {
   457  	buf := codec.NewBuffer(b)
   458  	m.Retval = buf.DecodeInt32()
   459  	m.LsIndex = buf.DecodeUint32()
   460  	return nil
   461  }
   462  
   463  // add or delete map request itr rlocs
   464  //   - is_add - add address if non-zero, else delete
   465  //   - locator_set_name - locator set name
   466  //
   467  // LispAddDelMapRequestItrRlocs defines message 'lisp_add_del_map_request_itr_rlocs'.
   468  type LispAddDelMapRequestItrRlocs struct {
   469  	IsAdd          bool   `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
   470  	LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
   471  }
   472  
   473  func (m *LispAddDelMapRequestItrRlocs) Reset() { *m = LispAddDelMapRequestItrRlocs{} }
   474  func (*LispAddDelMapRequestItrRlocs) GetMessageName() string {
   475  	return "lisp_add_del_map_request_itr_rlocs"
   476  }
   477  func (*LispAddDelMapRequestItrRlocs) GetCrcString() string { return "6be88e45" }
   478  func (*LispAddDelMapRequestItrRlocs) GetMessageType() api.MessageType {
   479  	return api.RequestMessage
   480  }
   481  
   482  func (m *LispAddDelMapRequestItrRlocs) Size() (size int) {
   483  	if m == nil {
   484  		return 0
   485  	}
   486  	size += 1  // m.IsAdd
   487  	size += 64 // m.LocatorSetName
   488  	return size
   489  }
   490  func (m *LispAddDelMapRequestItrRlocs) Marshal(b []byte) ([]byte, error) {
   491  	if b == nil {
   492  		b = make([]byte, m.Size())
   493  	}
   494  	buf := codec.NewBuffer(b)
   495  	buf.EncodeBool(m.IsAdd)
   496  	buf.EncodeString(m.LocatorSetName, 64)
   497  	return buf.Bytes(), nil
   498  }
   499  func (m *LispAddDelMapRequestItrRlocs) Unmarshal(b []byte) error {
   500  	buf := codec.NewBuffer(b)
   501  	m.IsAdd = buf.DecodeBool()
   502  	m.LocatorSetName = buf.DecodeString(64)
   503  	return nil
   504  }
   505  
   506  // LispAddDelMapRequestItrRlocsReply defines message 'lisp_add_del_map_request_itr_rlocs_reply'.
   507  type LispAddDelMapRequestItrRlocsReply struct {
   508  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   509  }
   510  
   511  func (m *LispAddDelMapRequestItrRlocsReply) Reset() { *m = LispAddDelMapRequestItrRlocsReply{} }
   512  func (*LispAddDelMapRequestItrRlocsReply) GetMessageName() string {
   513  	return "lisp_add_del_map_request_itr_rlocs_reply"
   514  }
   515  func (*LispAddDelMapRequestItrRlocsReply) GetCrcString() string { return "e8d4e804" }
   516  func (*LispAddDelMapRequestItrRlocsReply) GetMessageType() api.MessageType {
   517  	return api.ReplyMessage
   518  }
   519  
   520  func (m *LispAddDelMapRequestItrRlocsReply) Size() (size int) {
   521  	if m == nil {
   522  		return 0
   523  	}
   524  	size += 4 // m.Retval
   525  	return size
   526  }
   527  func (m *LispAddDelMapRequestItrRlocsReply) Marshal(b []byte) ([]byte, error) {
   528  	if b == nil {
   529  		b = make([]byte, m.Size())
   530  	}
   531  	buf := codec.NewBuffer(b)
   532  	buf.EncodeInt32(m.Retval)
   533  	return buf.Bytes(), nil
   534  }
   535  func (m *LispAddDelMapRequestItrRlocsReply) Unmarshal(b []byte) error {
   536  	buf := codec.NewBuffer(b)
   537  	m.Retval = buf.DecodeInt32()
   538  	return nil
   539  }
   540  
   541  // add or delete map-resolver
   542  //   - is_add - add address if non-zero, else delete
   543  //   - ip_address - ip address
   544  //
   545  // LispAddDelMapResolver defines message 'lisp_add_del_map_resolver'.
   546  type LispAddDelMapResolver struct {
   547  	IsAdd     bool             `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
   548  	IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
   549  }
   550  
   551  func (m *LispAddDelMapResolver) Reset()               { *m = LispAddDelMapResolver{} }
   552  func (*LispAddDelMapResolver) GetMessageName() string { return "lisp_add_del_map_resolver" }
   553  func (*LispAddDelMapResolver) GetCrcString() string   { return "ce19e32d" }
   554  func (*LispAddDelMapResolver) GetMessageType() api.MessageType {
   555  	return api.RequestMessage
   556  }
   557  
   558  func (m *LispAddDelMapResolver) Size() (size int) {
   559  	if m == nil {
   560  		return 0
   561  	}
   562  	size += 1      // m.IsAdd
   563  	size += 1      // m.IPAddress.Af
   564  	size += 1 * 16 // m.IPAddress.Un
   565  	return size
   566  }
   567  func (m *LispAddDelMapResolver) Marshal(b []byte) ([]byte, error) {
   568  	if b == nil {
   569  		b = make([]byte, m.Size())
   570  	}
   571  	buf := codec.NewBuffer(b)
   572  	buf.EncodeBool(m.IsAdd)
   573  	buf.EncodeUint8(uint8(m.IPAddress.Af))
   574  	buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
   575  	return buf.Bytes(), nil
   576  }
   577  func (m *LispAddDelMapResolver) Unmarshal(b []byte) error {
   578  	buf := codec.NewBuffer(b)
   579  	m.IsAdd = buf.DecodeBool()
   580  	m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   581  	copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   582  	return nil
   583  }
   584  
   585  // LispAddDelMapResolverReply defines message 'lisp_add_del_map_resolver_reply'.
   586  type LispAddDelMapResolverReply struct {
   587  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   588  }
   589  
   590  func (m *LispAddDelMapResolverReply) Reset()               { *m = LispAddDelMapResolverReply{} }
   591  func (*LispAddDelMapResolverReply) GetMessageName() string { return "lisp_add_del_map_resolver_reply" }
   592  func (*LispAddDelMapResolverReply) GetCrcString() string   { return "e8d4e804" }
   593  func (*LispAddDelMapResolverReply) GetMessageType() api.MessageType {
   594  	return api.ReplyMessage
   595  }
   596  
   597  func (m *LispAddDelMapResolverReply) Size() (size int) {
   598  	if m == nil {
   599  		return 0
   600  	}
   601  	size += 4 // m.Retval
   602  	return size
   603  }
   604  func (m *LispAddDelMapResolverReply) Marshal(b []byte) ([]byte, error) {
   605  	if b == nil {
   606  		b = make([]byte, m.Size())
   607  	}
   608  	buf := codec.NewBuffer(b)
   609  	buf.EncodeInt32(m.Retval)
   610  	return buf.Bytes(), nil
   611  }
   612  func (m *LispAddDelMapResolverReply) Unmarshal(b []byte) error {
   613  	buf := codec.NewBuffer(b)
   614  	m.Retval = buf.DecodeInt32()
   615  	return nil
   616  }
   617  
   618  // Add/delete map server
   619  //   - is_add - add address if non-zero; delete otherwise
   620  //   - ip_address - map server IP address
   621  //
   622  // LispAddDelMapServer defines message 'lisp_add_del_map_server'.
   623  type LispAddDelMapServer struct {
   624  	IsAdd     bool             `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
   625  	IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
   626  }
   627  
   628  func (m *LispAddDelMapServer) Reset()               { *m = LispAddDelMapServer{} }
   629  func (*LispAddDelMapServer) GetMessageName() string { return "lisp_add_del_map_server" }
   630  func (*LispAddDelMapServer) GetCrcString() string   { return "ce19e32d" }
   631  func (*LispAddDelMapServer) GetMessageType() api.MessageType {
   632  	return api.RequestMessage
   633  }
   634  
   635  func (m *LispAddDelMapServer) Size() (size int) {
   636  	if m == nil {
   637  		return 0
   638  	}
   639  	size += 1      // m.IsAdd
   640  	size += 1      // m.IPAddress.Af
   641  	size += 1 * 16 // m.IPAddress.Un
   642  	return size
   643  }
   644  func (m *LispAddDelMapServer) Marshal(b []byte) ([]byte, error) {
   645  	if b == nil {
   646  		b = make([]byte, m.Size())
   647  	}
   648  	buf := codec.NewBuffer(b)
   649  	buf.EncodeBool(m.IsAdd)
   650  	buf.EncodeUint8(uint8(m.IPAddress.Af))
   651  	buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
   652  	return buf.Bytes(), nil
   653  }
   654  func (m *LispAddDelMapServer) Unmarshal(b []byte) error {
   655  	buf := codec.NewBuffer(b)
   656  	m.IsAdd = buf.DecodeBool()
   657  	m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   658  	copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   659  	return nil
   660  }
   661  
   662  // LispAddDelMapServerReply defines message 'lisp_add_del_map_server_reply'.
   663  type LispAddDelMapServerReply struct {
   664  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   665  }
   666  
   667  func (m *LispAddDelMapServerReply) Reset()               { *m = LispAddDelMapServerReply{} }
   668  func (*LispAddDelMapServerReply) GetMessageName() string { return "lisp_add_del_map_server_reply" }
   669  func (*LispAddDelMapServerReply) GetCrcString() string   { return "e8d4e804" }
   670  func (*LispAddDelMapServerReply) GetMessageType() api.MessageType {
   671  	return api.ReplyMessage
   672  }
   673  
   674  func (m *LispAddDelMapServerReply) Size() (size int) {
   675  	if m == nil {
   676  		return 0
   677  	}
   678  	size += 4 // m.Retval
   679  	return size
   680  }
   681  func (m *LispAddDelMapServerReply) Marshal(b []byte) ([]byte, error) {
   682  	if b == nil {
   683  		b = make([]byte, m.Size())
   684  	}
   685  	buf := codec.NewBuffer(b)
   686  	buf.EncodeInt32(m.Retval)
   687  	return buf.Bytes(), nil
   688  }
   689  func (m *LispAddDelMapServerReply) Unmarshal(b []byte) error {
   690  	buf := codec.NewBuffer(b)
   691  	m.Retval = buf.DecodeInt32()
   692  	return nil
   693  }
   694  
   695  // add or delete remote static mapping
   696  //   - is_add - add address if non-zero, else delete
   697  //   - is_src_dst - flag indicating src/dst based routing policy
   698  //   - del_all - if set, delete all remote mappings
   699  //   - vni - virtual network instance
   700  //   - action - negative map-reply action
   701  //   - deid - dst EID
   702  //   - seid - src EID, valid only if is_src_dst is enabled
   703  //   - rloc_num - number of remote locators
   704  //   - rlocs - remote locator records
   705  //
   706  // LispAddDelRemoteMapping defines message 'lisp_add_del_remote_mapping'.
   707  type LispAddDelRemoteMapping struct {
   708  	IsAdd    bool                       `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
   709  	IsSrcDst bool                       `binapi:"bool,name=is_src_dst" json:"is_src_dst,omitempty"`
   710  	DelAll   bool                       `binapi:"bool,name=del_all" json:"del_all,omitempty"`
   711  	Vni      uint32                     `binapi:"u32,name=vni" json:"vni,omitempty"`
   712  	Action   uint8                      `binapi:"u8,name=action" json:"action,omitempty"`
   713  	Deid     lisp_types.Eid             `binapi:"eid,name=deid" json:"deid,omitempty"`
   714  	Seid     lisp_types.Eid             `binapi:"eid,name=seid" json:"seid,omitempty"`
   715  	RlocNum  uint32                     `binapi:"u32,name=rloc_num" json:"-"`
   716  	Rlocs    []lisp_types.RemoteLocator `binapi:"remote_locator[rloc_num],name=rlocs" json:"rlocs,omitempty"`
   717  }
   718  
   719  func (m *LispAddDelRemoteMapping) Reset()               { *m = LispAddDelRemoteMapping{} }
   720  func (*LispAddDelRemoteMapping) GetMessageName() string { return "lisp_add_del_remote_mapping" }
   721  func (*LispAddDelRemoteMapping) GetCrcString() string   { return "6d5c789e" }
   722  func (*LispAddDelRemoteMapping) GetMessageType() api.MessageType {
   723  	return api.RequestMessage
   724  }
   725  
   726  func (m *LispAddDelRemoteMapping) Size() (size int) {
   727  	if m == nil {
   728  		return 0
   729  	}
   730  	size += 1      // m.IsAdd
   731  	size += 1      // m.IsSrcDst
   732  	size += 1      // m.DelAll
   733  	size += 4      // m.Vni
   734  	size += 1      // m.Action
   735  	size += 1      // m.Deid.Type
   736  	size += 1 * 18 // m.Deid.Address
   737  	size += 1      // m.Seid.Type
   738  	size += 1 * 18 // m.Seid.Address
   739  	size += 4      // m.RlocNum
   740  	for j1 := 0; j1 < len(m.Rlocs); j1++ {
   741  		var s1 lisp_types.RemoteLocator
   742  		_ = s1
   743  		if j1 < len(m.Rlocs) {
   744  			s1 = m.Rlocs[j1]
   745  		}
   746  		size += 1      // s1.Priority
   747  		size += 1      // s1.Weight
   748  		size += 1      // s1.IPAddress.Af
   749  		size += 1 * 16 // s1.IPAddress.Un
   750  	}
   751  	return size
   752  }
   753  func (m *LispAddDelRemoteMapping) Marshal(b []byte) ([]byte, error) {
   754  	if b == nil {
   755  		b = make([]byte, m.Size())
   756  	}
   757  	buf := codec.NewBuffer(b)
   758  	buf.EncodeBool(m.IsAdd)
   759  	buf.EncodeBool(m.IsSrcDst)
   760  	buf.EncodeBool(m.DelAll)
   761  	buf.EncodeUint32(m.Vni)
   762  	buf.EncodeUint8(m.Action)
   763  	buf.EncodeUint8(uint8(m.Deid.Type))
   764  	buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 18)
   765  	buf.EncodeUint8(uint8(m.Seid.Type))
   766  	buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 18)
   767  	buf.EncodeUint32(uint32(len(m.Rlocs)))
   768  	for j0 := 0; j0 < len(m.Rlocs); j0++ {
   769  		var v0 lisp_types.RemoteLocator // Rlocs
   770  		if j0 < len(m.Rlocs) {
   771  			v0 = m.Rlocs[j0]
   772  		}
   773  		buf.EncodeUint8(v0.Priority)
   774  		buf.EncodeUint8(v0.Weight)
   775  		buf.EncodeUint8(uint8(v0.IPAddress.Af))
   776  		buf.EncodeBytes(v0.IPAddress.Un.XXX_UnionData[:], 16)
   777  	}
   778  	return buf.Bytes(), nil
   779  }
   780  func (m *LispAddDelRemoteMapping) Unmarshal(b []byte) error {
   781  	buf := codec.NewBuffer(b)
   782  	m.IsAdd = buf.DecodeBool()
   783  	m.IsSrcDst = buf.DecodeBool()
   784  	m.DelAll = buf.DecodeBool()
   785  	m.Vni = buf.DecodeUint32()
   786  	m.Action = buf.DecodeUint8()
   787  	m.Deid.Type = lisp_types.EidType(buf.DecodeUint8())
   788  	copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
   789  	m.Seid.Type = lisp_types.EidType(buf.DecodeUint8())
   790  	copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
   791  	m.RlocNum = buf.DecodeUint32()
   792  	m.Rlocs = make([]lisp_types.RemoteLocator, m.RlocNum)
   793  	for j0 := 0; j0 < len(m.Rlocs); j0++ {
   794  		m.Rlocs[j0].Priority = buf.DecodeUint8()
   795  		m.Rlocs[j0].Weight = buf.DecodeUint8()
   796  		m.Rlocs[j0].IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   797  		copy(m.Rlocs[j0].IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   798  	}
   799  	return nil
   800  }
   801  
   802  // LispAddDelRemoteMappingReply defines message 'lisp_add_del_remote_mapping_reply'.
   803  type LispAddDelRemoteMappingReply struct {
   804  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   805  }
   806  
   807  func (m *LispAddDelRemoteMappingReply) Reset() { *m = LispAddDelRemoteMappingReply{} }
   808  func (*LispAddDelRemoteMappingReply) GetMessageName() string {
   809  	return "lisp_add_del_remote_mapping_reply"
   810  }
   811  func (*LispAddDelRemoteMappingReply) GetCrcString() string { return "e8d4e804" }
   812  func (*LispAddDelRemoteMappingReply) GetMessageType() api.MessageType {
   813  	return api.ReplyMessage
   814  }
   815  
   816  func (m *LispAddDelRemoteMappingReply) Size() (size int) {
   817  	if m == nil {
   818  		return 0
   819  	}
   820  	size += 4 // m.Retval
   821  	return size
   822  }
   823  func (m *LispAddDelRemoteMappingReply) Marshal(b []byte) ([]byte, error) {
   824  	if b == nil {
   825  		b = make([]byte, m.Size())
   826  	}
   827  	buf := codec.NewBuffer(b)
   828  	buf.EncodeInt32(m.Retval)
   829  	return buf.Bytes(), nil
   830  }
   831  func (m *LispAddDelRemoteMappingReply) Unmarshal(b []byte) error {
   832  	buf := codec.NewBuffer(b)
   833  	m.Retval = buf.DecodeInt32()
   834  	return nil
   835  }
   836  
   837  // Request for LISP adjacencies
   838  //   - vni - filter adjacencies by VNI
   839  //
   840  // LispAdjacenciesGet defines message 'lisp_adjacencies_get'.
   841  type LispAdjacenciesGet struct {
   842  	Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
   843  }
   844  
   845  func (m *LispAdjacenciesGet) Reset()               { *m = LispAdjacenciesGet{} }
   846  func (*LispAdjacenciesGet) GetMessageName() string { return "lisp_adjacencies_get" }
   847  func (*LispAdjacenciesGet) GetCrcString() string   { return "8d1f2fe9" }
   848  func (*LispAdjacenciesGet) GetMessageType() api.MessageType {
   849  	return api.RequestMessage
   850  }
   851  
   852  func (m *LispAdjacenciesGet) Size() (size int) {
   853  	if m == nil {
   854  		return 0
   855  	}
   856  	size += 4 // m.Vni
   857  	return size
   858  }
   859  func (m *LispAdjacenciesGet) Marshal(b []byte) ([]byte, error) {
   860  	if b == nil {
   861  		b = make([]byte, m.Size())
   862  	}
   863  	buf := codec.NewBuffer(b)
   864  	buf.EncodeUint32(m.Vni)
   865  	return buf.Bytes(), nil
   866  }
   867  func (m *LispAdjacenciesGet) Unmarshal(b []byte) error {
   868  	buf := codec.NewBuffer(b)
   869  	m.Vni = buf.DecodeUint32()
   870  	return nil
   871  }
   872  
   873  // LISP adjacency reply
   874  //   - count - number of adjacencies
   875  //   - adjacencies - array of adjacencies
   876  //
   877  // LispAdjacenciesGetReply defines message 'lisp_adjacencies_get_reply'.
   878  type LispAdjacenciesGetReply struct {
   879  	Retval      int32           `binapi:"i32,name=retval" json:"retval,omitempty"`
   880  	Count       uint32          `binapi:"u32,name=count" json:"-"`
   881  	Adjacencies []LispAdjacency `binapi:"lisp_adjacency[count],name=adjacencies" json:"adjacencies,omitempty"`
   882  }
   883  
   884  func (m *LispAdjacenciesGetReply) Reset()               { *m = LispAdjacenciesGetReply{} }
   885  func (*LispAdjacenciesGetReply) GetMessageName() string { return "lisp_adjacencies_get_reply" }
   886  func (*LispAdjacenciesGetReply) GetCrcString() string   { return "807257bf" }
   887  func (*LispAdjacenciesGetReply) GetMessageType() api.MessageType {
   888  	return api.ReplyMessage
   889  }
   890  
   891  func (m *LispAdjacenciesGetReply) Size() (size int) {
   892  	if m == nil {
   893  		return 0
   894  	}
   895  	size += 4 // m.Retval
   896  	size += 4 // m.Count
   897  	for j1 := 0; j1 < len(m.Adjacencies); j1++ {
   898  		var s1 LispAdjacency
   899  		_ = s1
   900  		if j1 < len(m.Adjacencies) {
   901  			s1 = m.Adjacencies[j1]
   902  		}
   903  		size += 1      // s1.Reid.Type
   904  		size += 1 * 18 // s1.Reid.Address
   905  		size += 1      // s1.Leid.Type
   906  		size += 1 * 18 // s1.Leid.Address
   907  	}
   908  	return size
   909  }
   910  func (m *LispAdjacenciesGetReply) Marshal(b []byte) ([]byte, error) {
   911  	if b == nil {
   912  		b = make([]byte, m.Size())
   913  	}
   914  	buf := codec.NewBuffer(b)
   915  	buf.EncodeInt32(m.Retval)
   916  	buf.EncodeUint32(uint32(len(m.Adjacencies)))
   917  	for j0 := 0; j0 < len(m.Adjacencies); j0++ {
   918  		var v0 LispAdjacency // Adjacencies
   919  		if j0 < len(m.Adjacencies) {
   920  			v0 = m.Adjacencies[j0]
   921  		}
   922  		buf.EncodeUint8(uint8(v0.Reid.Type))
   923  		buf.EncodeBytes(v0.Reid.Address.XXX_UnionData[:], 18)
   924  		buf.EncodeUint8(uint8(v0.Leid.Type))
   925  		buf.EncodeBytes(v0.Leid.Address.XXX_UnionData[:], 18)
   926  	}
   927  	return buf.Bytes(), nil
   928  }
   929  func (m *LispAdjacenciesGetReply) Unmarshal(b []byte) error {
   930  	buf := codec.NewBuffer(b)
   931  	m.Retval = buf.DecodeInt32()
   932  	m.Count = buf.DecodeUint32()
   933  	m.Adjacencies = make([]LispAdjacency, m.Count)
   934  	for j0 := 0; j0 < len(m.Adjacencies); j0++ {
   935  		m.Adjacencies[j0].Reid.Type = lisp_types.EidType(buf.DecodeUint8())
   936  		copy(m.Adjacencies[j0].Reid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
   937  		m.Adjacencies[j0].Leid.Type = lisp_types.EidType(buf.DecodeUint8())
   938  		copy(m.Adjacencies[j0].Leid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
   939  	}
   940  	return nil
   941  }
   942  
   943  // map/unmap vni/bd_index to vrf
   944  //   - is_add - add or delete mapping
   945  //   - dp_table - virtual network id/bridge domain index
   946  //   - vrf - vrf
   947  //
   948  // LispEidTableAddDelMap defines message 'lisp_eid_table_add_del_map'.
   949  type LispEidTableAddDelMap struct {
   950  	IsAdd   bool   `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
   951  	Vni     uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
   952  	DpTable uint32 `binapi:"u32,name=dp_table" json:"dp_table,omitempty"`
   953  	IsL2    bool   `binapi:"bool,name=is_l2" json:"is_l2,omitempty"`
   954  }
   955  
   956  func (m *LispEidTableAddDelMap) Reset()               { *m = LispEidTableAddDelMap{} }
   957  func (*LispEidTableAddDelMap) GetMessageName() string { return "lisp_eid_table_add_del_map" }
   958  func (*LispEidTableAddDelMap) GetCrcString() string   { return "9481416b" }
   959  func (*LispEidTableAddDelMap) GetMessageType() api.MessageType {
   960  	return api.RequestMessage
   961  }
   962  
   963  func (m *LispEidTableAddDelMap) Size() (size int) {
   964  	if m == nil {
   965  		return 0
   966  	}
   967  	size += 1 // m.IsAdd
   968  	size += 4 // m.Vni
   969  	size += 4 // m.DpTable
   970  	size += 1 // m.IsL2
   971  	return size
   972  }
   973  func (m *LispEidTableAddDelMap) Marshal(b []byte) ([]byte, error) {
   974  	if b == nil {
   975  		b = make([]byte, m.Size())
   976  	}
   977  	buf := codec.NewBuffer(b)
   978  	buf.EncodeBool(m.IsAdd)
   979  	buf.EncodeUint32(m.Vni)
   980  	buf.EncodeUint32(m.DpTable)
   981  	buf.EncodeBool(m.IsL2)
   982  	return buf.Bytes(), nil
   983  }
   984  func (m *LispEidTableAddDelMap) Unmarshal(b []byte) error {
   985  	buf := codec.NewBuffer(b)
   986  	m.IsAdd = buf.DecodeBool()
   987  	m.Vni = buf.DecodeUint32()
   988  	m.DpTable = buf.DecodeUint32()
   989  	m.IsL2 = buf.DecodeBool()
   990  	return nil
   991  }
   992  
   993  // LispEidTableAddDelMapReply defines message 'lisp_eid_table_add_del_map_reply'.
   994  type LispEidTableAddDelMapReply struct {
   995  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   996  }
   997  
   998  func (m *LispEidTableAddDelMapReply) Reset()               { *m = LispEidTableAddDelMapReply{} }
   999  func (*LispEidTableAddDelMapReply) GetMessageName() string { return "lisp_eid_table_add_del_map_reply" }
  1000  func (*LispEidTableAddDelMapReply) GetCrcString() string   { return "e8d4e804" }
  1001  func (*LispEidTableAddDelMapReply) GetMessageType() api.MessageType {
  1002  	return api.ReplyMessage
  1003  }
  1004  
  1005  func (m *LispEidTableAddDelMapReply) Size() (size int) {
  1006  	if m == nil {
  1007  		return 0
  1008  	}
  1009  	size += 4 // m.Retval
  1010  	return size
  1011  }
  1012  func (m *LispEidTableAddDelMapReply) Marshal(b []byte) ([]byte, error) {
  1013  	if b == nil {
  1014  		b = make([]byte, m.Size())
  1015  	}
  1016  	buf := codec.NewBuffer(b)
  1017  	buf.EncodeInt32(m.Retval)
  1018  	return buf.Bytes(), nil
  1019  }
  1020  func (m *LispEidTableAddDelMapReply) Unmarshal(b []byte) error {
  1021  	buf := codec.NewBuffer(b)
  1022  	m.Retval = buf.DecodeInt32()
  1023  	return nil
  1024  }
  1025  
  1026  // Dump lisp eid-table
  1027  //   - locator_set_index - index of locator_set, if ~0 then the mapping
  1028  //     is negative
  1029  //   - action - negative map request action
  1030  //   - is_local - local if non-zero, else remote
  1031  //   - is_src_dst - EID is type of source/destination
  1032  //   - deid - dst EID
  1033  //   - seid - src EID
  1034  //   - vni - virtual network instance
  1035  //   - ttl - time to live
  1036  //   - authoritative - authoritative
  1037  //   - key_id
  1038  //     HMAC_NO_KEY           0
  1039  //     HMAC_SHA_1_96         1
  1040  //     HMAC_SHA_256_128      2
  1041  //   - key - secret key
  1042  //
  1043  // LispEidTableDetails defines message 'lisp_eid_table_details'.
  1044  type LispEidTableDetails struct {
  1045  	LocatorSetIndex uint32             `binapi:"u32,name=locator_set_index" json:"locator_set_index,omitempty"`
  1046  	Action          uint8              `binapi:"u8,name=action" json:"action,omitempty"`
  1047  	IsLocal         bool               `binapi:"bool,name=is_local" json:"is_local,omitempty"`
  1048  	IsSrcDst        bool               `binapi:"bool,name=is_src_dst" json:"is_src_dst,omitempty"`
  1049  	Vni             uint32             `binapi:"u32,name=vni" json:"vni,omitempty"`
  1050  	Deid            lisp_types.Eid     `binapi:"eid,name=deid" json:"deid,omitempty"`
  1051  	Seid            lisp_types.Eid     `binapi:"eid,name=seid" json:"seid,omitempty"`
  1052  	TTL             uint32             `binapi:"u32,name=ttl" json:"ttl,omitempty"`
  1053  	Authoritative   uint8              `binapi:"u8,name=authoritative" json:"authoritative,omitempty"`
  1054  	Key             lisp_types.HmacKey `binapi:"hmac_key,name=key" json:"key,omitempty"`
  1055  }
  1056  
  1057  func (m *LispEidTableDetails) Reset()               { *m = LispEidTableDetails{} }
  1058  func (*LispEidTableDetails) GetMessageName() string { return "lisp_eid_table_details" }
  1059  func (*LispEidTableDetails) GetCrcString() string   { return "1c29f792" }
  1060  func (*LispEidTableDetails) GetMessageType() api.MessageType {
  1061  	return api.ReplyMessage
  1062  }
  1063  
  1064  func (m *LispEidTableDetails) Size() (size int) {
  1065  	if m == nil {
  1066  		return 0
  1067  	}
  1068  	size += 4      // m.LocatorSetIndex
  1069  	size += 1      // m.Action
  1070  	size += 1      // m.IsLocal
  1071  	size += 1      // m.IsSrcDst
  1072  	size += 4      // m.Vni
  1073  	size += 1      // m.Deid.Type
  1074  	size += 1 * 18 // m.Deid.Address
  1075  	size += 1      // m.Seid.Type
  1076  	size += 1 * 18 // m.Seid.Address
  1077  	size += 4      // m.TTL
  1078  	size += 1      // m.Authoritative
  1079  	size += 1      // m.Key.ID
  1080  	size += 1 * 64 // m.Key.Key
  1081  	return size
  1082  }
  1083  func (m *LispEidTableDetails) Marshal(b []byte) ([]byte, error) {
  1084  	if b == nil {
  1085  		b = make([]byte, m.Size())
  1086  	}
  1087  	buf := codec.NewBuffer(b)
  1088  	buf.EncodeUint32(m.LocatorSetIndex)
  1089  	buf.EncodeUint8(m.Action)
  1090  	buf.EncodeBool(m.IsLocal)
  1091  	buf.EncodeBool(m.IsSrcDst)
  1092  	buf.EncodeUint32(m.Vni)
  1093  	buf.EncodeUint8(uint8(m.Deid.Type))
  1094  	buf.EncodeBytes(m.Deid.Address.XXX_UnionData[:], 18)
  1095  	buf.EncodeUint8(uint8(m.Seid.Type))
  1096  	buf.EncodeBytes(m.Seid.Address.XXX_UnionData[:], 18)
  1097  	buf.EncodeUint32(m.TTL)
  1098  	buf.EncodeUint8(m.Authoritative)
  1099  	buf.EncodeUint8(uint8(m.Key.ID))
  1100  	buf.EncodeBytes(m.Key.Key, 64)
  1101  	return buf.Bytes(), nil
  1102  }
  1103  func (m *LispEidTableDetails) Unmarshal(b []byte) error {
  1104  	buf := codec.NewBuffer(b)
  1105  	m.LocatorSetIndex = buf.DecodeUint32()
  1106  	m.Action = buf.DecodeUint8()
  1107  	m.IsLocal = buf.DecodeBool()
  1108  	m.IsSrcDst = buf.DecodeBool()
  1109  	m.Vni = buf.DecodeUint32()
  1110  	m.Deid.Type = lisp_types.EidType(buf.DecodeUint8())
  1111  	copy(m.Deid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
  1112  	m.Seid.Type = lisp_types.EidType(buf.DecodeUint8())
  1113  	copy(m.Seid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
  1114  	m.TTL = buf.DecodeUint32()
  1115  	m.Authoritative = buf.DecodeUint8()
  1116  	m.Key.ID = lisp_types.HmacKeyID(buf.DecodeUint8())
  1117  	m.Key.Key = make([]byte, 64)
  1118  	copy(m.Key.Key, buf.DecodeBytes(len(m.Key.Key)))
  1119  	return nil
  1120  }
  1121  
  1122  // Request for eid table summary status
  1123  //   - eid_set - if non-zero request info about specific mapping
  1124  //   - vni - virtual network instance; valid only if eid_set != 0
  1125  //   - prefix_length - prefix length if EID is IP address;
  1126  //     valid only if eid_set != 0
  1127  //   - eid - endpoint identifier
  1128  //   - filter - filter type;
  1129  //     Support values:
  1130  //     0: all eid
  1131  //     1: local eid
  1132  //     2: remote eid
  1133  //
  1134  // LispEidTableDump defines message 'lisp_eid_table_dump'.
  1135  type LispEidTableDump struct {
  1136  	EidSet       uint8                `binapi:"u8,name=eid_set" json:"eid_set,omitempty"`
  1137  	PrefixLength uint8                `binapi:"u8,name=prefix_length" json:"prefix_length,omitempty"`
  1138  	Vni          uint32               `binapi:"u32,name=vni" json:"vni,omitempty"`
  1139  	Eid          lisp_types.Eid       `binapi:"eid,name=eid" json:"eid,omitempty"`
  1140  	Filter       LispLocatorSetFilter `binapi:"lisp_locator_set_filter,name=filter" json:"filter,omitempty"`
  1141  }
  1142  
  1143  func (m *LispEidTableDump) Reset()               { *m = LispEidTableDump{} }
  1144  func (*LispEidTableDump) GetMessageName() string { return "lisp_eid_table_dump" }
  1145  func (*LispEidTableDump) GetCrcString() string   { return "629468b5" }
  1146  func (*LispEidTableDump) GetMessageType() api.MessageType {
  1147  	return api.RequestMessage
  1148  }
  1149  
  1150  func (m *LispEidTableDump) Size() (size int) {
  1151  	if m == nil {
  1152  		return 0
  1153  	}
  1154  	size += 1      // m.EidSet
  1155  	size += 1      // m.PrefixLength
  1156  	size += 4      // m.Vni
  1157  	size += 1      // m.Eid.Type
  1158  	size += 1 * 18 // m.Eid.Address
  1159  	size += 1      // m.Filter
  1160  	return size
  1161  }
  1162  func (m *LispEidTableDump) Marshal(b []byte) ([]byte, error) {
  1163  	if b == nil {
  1164  		b = make([]byte, m.Size())
  1165  	}
  1166  	buf := codec.NewBuffer(b)
  1167  	buf.EncodeUint8(m.EidSet)
  1168  	buf.EncodeUint8(m.PrefixLength)
  1169  	buf.EncodeUint32(m.Vni)
  1170  	buf.EncodeUint8(uint8(m.Eid.Type))
  1171  	buf.EncodeBytes(m.Eid.Address.XXX_UnionData[:], 18)
  1172  	buf.EncodeUint8(uint8(m.Filter))
  1173  	return buf.Bytes(), nil
  1174  }
  1175  func (m *LispEidTableDump) Unmarshal(b []byte) error {
  1176  	buf := codec.NewBuffer(b)
  1177  	m.EidSet = buf.DecodeUint8()
  1178  	m.PrefixLength = buf.DecodeUint8()
  1179  	m.Vni = buf.DecodeUint32()
  1180  	m.Eid.Type = lisp_types.EidType(buf.DecodeUint8())
  1181  	copy(m.Eid.Address.XXX_UnionData[:], buf.DecodeBytes(18))
  1182  	m.Filter = LispLocatorSetFilter(buf.DecodeUint8())
  1183  	return nil
  1184  }
  1185  
  1186  // Shows relationship between vni and vrf/bd
  1187  //   - dp_table - VRF index or bridge domain index
  1188  //   - vni - virtual network instance
  1189  //
  1190  // LispEidTableMapDetails defines message 'lisp_eid_table_map_details'.
  1191  type LispEidTableMapDetails struct {
  1192  	Vni     uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
  1193  	DpTable uint32 `binapi:"u32,name=dp_table" json:"dp_table,omitempty"`
  1194  }
  1195  
  1196  func (m *LispEidTableMapDetails) Reset()               { *m = LispEidTableMapDetails{} }
  1197  func (*LispEidTableMapDetails) GetMessageName() string { return "lisp_eid_table_map_details" }
  1198  func (*LispEidTableMapDetails) GetCrcString() string   { return "0b6859e2" }
  1199  func (*LispEidTableMapDetails) GetMessageType() api.MessageType {
  1200  	return api.ReplyMessage
  1201  }
  1202  
  1203  func (m *LispEidTableMapDetails) Size() (size int) {
  1204  	if m == nil {
  1205  		return 0
  1206  	}
  1207  	size += 4 // m.Vni
  1208  	size += 4 // m.DpTable
  1209  	return size
  1210  }
  1211  func (m *LispEidTableMapDetails) Marshal(b []byte) ([]byte, error) {
  1212  	if b == nil {
  1213  		b = make([]byte, m.Size())
  1214  	}
  1215  	buf := codec.NewBuffer(b)
  1216  	buf.EncodeUint32(m.Vni)
  1217  	buf.EncodeUint32(m.DpTable)
  1218  	return buf.Bytes(), nil
  1219  }
  1220  func (m *LispEidTableMapDetails) Unmarshal(b []byte) error {
  1221  	buf := codec.NewBuffer(b)
  1222  	m.Vni = buf.DecodeUint32()
  1223  	m.DpTable = buf.DecodeUint32()
  1224  	return nil
  1225  }
  1226  
  1227  // Request for lisp_eid_table_map_details
  1228  //   - is_l2 - if set dump vni/bd mappings else vni/vrf
  1229  //
  1230  // LispEidTableMapDump defines message 'lisp_eid_table_map_dump'.
  1231  type LispEidTableMapDump struct {
  1232  	IsL2 bool `binapi:"bool,name=is_l2" json:"is_l2,omitempty"`
  1233  }
  1234  
  1235  func (m *LispEidTableMapDump) Reset()               { *m = LispEidTableMapDump{} }
  1236  func (*LispEidTableMapDump) GetMessageName() string { return "lisp_eid_table_map_dump" }
  1237  func (*LispEidTableMapDump) GetCrcString() string   { return "d6cf0c3d" }
  1238  func (*LispEidTableMapDump) GetMessageType() api.MessageType {
  1239  	return api.RequestMessage
  1240  }
  1241  
  1242  func (m *LispEidTableMapDump) Size() (size int) {
  1243  	if m == nil {
  1244  		return 0
  1245  	}
  1246  	size += 1 // m.IsL2
  1247  	return size
  1248  }
  1249  func (m *LispEidTableMapDump) Marshal(b []byte) ([]byte, error) {
  1250  	if b == nil {
  1251  		b = make([]byte, m.Size())
  1252  	}
  1253  	buf := codec.NewBuffer(b)
  1254  	buf.EncodeBool(m.IsL2)
  1255  	return buf.Bytes(), nil
  1256  }
  1257  func (m *LispEidTableMapDump) Unmarshal(b []byte) error {
  1258  	buf := codec.NewBuffer(b)
  1259  	m.IsL2 = buf.DecodeBool()
  1260  	return nil
  1261  }
  1262  
  1263  // reply to lisp_eid_table_vni_dump
  1264  //   - vni - virtual network instance
  1265  //
  1266  // LispEidTableVniDetails defines message 'lisp_eid_table_vni_details'.
  1267  type LispEidTableVniDetails struct {
  1268  	Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
  1269  }
  1270  
  1271  func (m *LispEidTableVniDetails) Reset()               { *m = LispEidTableVniDetails{} }
  1272  func (*LispEidTableVniDetails) GetMessageName() string { return "lisp_eid_table_vni_details" }
  1273  func (*LispEidTableVniDetails) GetCrcString() string   { return "64abc01e" }
  1274  func (*LispEidTableVniDetails) GetMessageType() api.MessageType {
  1275  	return api.ReplyMessage
  1276  }
  1277  
  1278  func (m *LispEidTableVniDetails) Size() (size int) {
  1279  	if m == nil {
  1280  		return 0
  1281  	}
  1282  	size += 4 // m.Vni
  1283  	return size
  1284  }
  1285  func (m *LispEidTableVniDetails) Marshal(b []byte) ([]byte, error) {
  1286  	if b == nil {
  1287  		b = make([]byte, m.Size())
  1288  	}
  1289  	buf := codec.NewBuffer(b)
  1290  	buf.EncodeUint32(m.Vni)
  1291  	return buf.Bytes(), nil
  1292  }
  1293  func (m *LispEidTableVniDetails) Unmarshal(b []byte) error {
  1294  	buf := codec.NewBuffer(b)
  1295  	m.Vni = buf.DecodeUint32()
  1296  	return nil
  1297  }
  1298  
  1299  // Dumps all VNIs used in mappings
  1300  // LispEidTableVniDump defines message 'lisp_eid_table_vni_dump'.
  1301  type LispEidTableVniDump struct{}
  1302  
  1303  func (m *LispEidTableVniDump) Reset()               { *m = LispEidTableVniDump{} }
  1304  func (*LispEidTableVniDump) GetMessageName() string { return "lisp_eid_table_vni_dump" }
  1305  func (*LispEidTableVniDump) GetCrcString() string   { return "51077d14" }
  1306  func (*LispEidTableVniDump) GetMessageType() api.MessageType {
  1307  	return api.RequestMessage
  1308  }
  1309  
  1310  func (m *LispEidTableVniDump) Size() (size int) {
  1311  	if m == nil {
  1312  		return 0
  1313  	}
  1314  	return size
  1315  }
  1316  func (m *LispEidTableVniDump) Marshal(b []byte) ([]byte, error) {
  1317  	if b == nil {
  1318  		b = make([]byte, m.Size())
  1319  	}
  1320  	buf := codec.NewBuffer(b)
  1321  	return buf.Bytes(), nil
  1322  }
  1323  func (m *LispEidTableVniDump) Unmarshal(b []byte) error {
  1324  	return nil
  1325  }
  1326  
  1327  // enable or disable LISP feature
  1328  //   - is_en - enable protocol if non-zero, else disable
  1329  //
  1330  // LispEnableDisable defines message 'lisp_enable_disable'.
  1331  type LispEnableDisable struct {
  1332  	IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
  1333  }
  1334  
  1335  func (m *LispEnableDisable) Reset()               { *m = LispEnableDisable{} }
  1336  func (*LispEnableDisable) GetMessageName() string { return "lisp_enable_disable" }
  1337  func (*LispEnableDisable) GetCrcString() string   { return "c264d7bf" }
  1338  func (*LispEnableDisable) GetMessageType() api.MessageType {
  1339  	return api.RequestMessage
  1340  }
  1341  
  1342  func (m *LispEnableDisable) Size() (size int) {
  1343  	if m == nil {
  1344  		return 0
  1345  	}
  1346  	size += 1 // m.IsEnable
  1347  	return size
  1348  }
  1349  func (m *LispEnableDisable) Marshal(b []byte) ([]byte, error) {
  1350  	if b == nil {
  1351  		b = make([]byte, m.Size())
  1352  	}
  1353  	buf := codec.NewBuffer(b)
  1354  	buf.EncodeBool(m.IsEnable)
  1355  	return buf.Bytes(), nil
  1356  }
  1357  func (m *LispEnableDisable) Unmarshal(b []byte) error {
  1358  	buf := codec.NewBuffer(b)
  1359  	m.IsEnable = buf.DecodeBool()
  1360  	return nil
  1361  }
  1362  
  1363  // LispEnableDisableReply defines message 'lisp_enable_disable_reply'.
  1364  type LispEnableDisableReply struct {
  1365  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1366  }
  1367  
  1368  func (m *LispEnableDisableReply) Reset()               { *m = LispEnableDisableReply{} }
  1369  func (*LispEnableDisableReply) GetMessageName() string { return "lisp_enable_disable_reply" }
  1370  func (*LispEnableDisableReply) GetCrcString() string   { return "e8d4e804" }
  1371  func (*LispEnableDisableReply) GetMessageType() api.MessageType {
  1372  	return api.ReplyMessage
  1373  }
  1374  
  1375  func (m *LispEnableDisableReply) Size() (size int) {
  1376  	if m == nil {
  1377  		return 0
  1378  	}
  1379  	size += 4 // m.Retval
  1380  	return size
  1381  }
  1382  func (m *LispEnableDisableReply) Marshal(b []byte) ([]byte, error) {
  1383  	if b == nil {
  1384  		b = make([]byte, m.Size())
  1385  	}
  1386  	buf := codec.NewBuffer(b)
  1387  	buf.EncodeInt32(m.Retval)
  1388  	return buf.Bytes(), nil
  1389  }
  1390  func (m *LispEnableDisableReply) Unmarshal(b []byte) error {
  1391  	buf := codec.NewBuffer(b)
  1392  	m.Retval = buf.DecodeInt32()
  1393  	return nil
  1394  }
  1395  
  1396  // Get LISP map request itr rlocs status
  1397  //   - locator_set_name - name of the locator_set
  1398  //
  1399  // LispGetMapRequestItrRlocs defines message 'lisp_get_map_request_itr_rlocs'.
  1400  type LispGetMapRequestItrRlocs struct{}
  1401  
  1402  func (m *LispGetMapRequestItrRlocs) Reset()               { *m = LispGetMapRequestItrRlocs{} }
  1403  func (*LispGetMapRequestItrRlocs) GetMessageName() string { return "lisp_get_map_request_itr_rlocs" }
  1404  func (*LispGetMapRequestItrRlocs) GetCrcString() string   { return "51077d14" }
  1405  func (*LispGetMapRequestItrRlocs) GetMessageType() api.MessageType {
  1406  	return api.RequestMessage
  1407  }
  1408  
  1409  func (m *LispGetMapRequestItrRlocs) Size() (size int) {
  1410  	if m == nil {
  1411  		return 0
  1412  	}
  1413  	return size
  1414  }
  1415  func (m *LispGetMapRequestItrRlocs) Marshal(b []byte) ([]byte, error) {
  1416  	if b == nil {
  1417  		b = make([]byte, m.Size())
  1418  	}
  1419  	buf := codec.NewBuffer(b)
  1420  	return buf.Bytes(), nil
  1421  }
  1422  func (m *LispGetMapRequestItrRlocs) Unmarshal(b []byte) error {
  1423  	return nil
  1424  }
  1425  
  1426  // Request for map request itr rlocs summary status
  1427  // LispGetMapRequestItrRlocsReply defines message 'lisp_get_map_request_itr_rlocs_reply'.
  1428  type LispGetMapRequestItrRlocsReply struct {
  1429  	Retval         int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  1430  	LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
  1431  }
  1432  
  1433  func (m *LispGetMapRequestItrRlocsReply) Reset() { *m = LispGetMapRequestItrRlocsReply{} }
  1434  func (*LispGetMapRequestItrRlocsReply) GetMessageName() string {
  1435  	return "lisp_get_map_request_itr_rlocs_reply"
  1436  }
  1437  func (*LispGetMapRequestItrRlocsReply) GetCrcString() string { return "76580f3a" }
  1438  func (*LispGetMapRequestItrRlocsReply) GetMessageType() api.MessageType {
  1439  	return api.ReplyMessage
  1440  }
  1441  
  1442  func (m *LispGetMapRequestItrRlocsReply) Size() (size int) {
  1443  	if m == nil {
  1444  		return 0
  1445  	}
  1446  	size += 4  // m.Retval
  1447  	size += 64 // m.LocatorSetName
  1448  	return size
  1449  }
  1450  func (m *LispGetMapRequestItrRlocsReply) Marshal(b []byte) ([]byte, error) {
  1451  	if b == nil {
  1452  		b = make([]byte, m.Size())
  1453  	}
  1454  	buf := codec.NewBuffer(b)
  1455  	buf.EncodeInt32(m.Retval)
  1456  	buf.EncodeString(m.LocatorSetName, 64)
  1457  	return buf.Bytes(), nil
  1458  }
  1459  func (m *LispGetMapRequestItrRlocsReply) Unmarshal(b []byte) error {
  1460  	buf := codec.NewBuffer(b)
  1461  	m.Retval = buf.DecodeInt32()
  1462  	m.LocatorSetName = buf.DecodeString(64)
  1463  	return nil
  1464  }
  1465  
  1466  // LISP locator_set status
  1467  //   - local - if is set, then locator is local
  1468  //   - locator_set_name - name of the locator_set
  1469  //   - sw_if_index - sw_if_index of the locator
  1470  //   - ip_address - ip address
  1471  //   - priority - locator priority
  1472  //   - weight - locator weight
  1473  //
  1474  // LispLocatorDetails defines message 'lisp_locator_details'.
  1475  type LispLocatorDetails struct {
  1476  	Local     uint8                          `binapi:"u8,name=local" json:"local,omitempty"`
  1477  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1478  	IPAddress ip_types.Address               `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
  1479  	Priority  uint8                          `binapi:"u8,name=priority" json:"priority,omitempty"`
  1480  	Weight    uint8                          `binapi:"u8,name=weight" json:"weight,omitempty"`
  1481  }
  1482  
  1483  func (m *LispLocatorDetails) Reset()               { *m = LispLocatorDetails{} }
  1484  func (*LispLocatorDetails) GetMessageName() string { return "lisp_locator_details" }
  1485  func (*LispLocatorDetails) GetCrcString() string   { return "2c620ffe" }
  1486  func (*LispLocatorDetails) GetMessageType() api.MessageType {
  1487  	return api.ReplyMessage
  1488  }
  1489  
  1490  func (m *LispLocatorDetails) Size() (size int) {
  1491  	if m == nil {
  1492  		return 0
  1493  	}
  1494  	size += 1      // m.Local
  1495  	size += 4      // m.SwIfIndex
  1496  	size += 1      // m.IPAddress.Af
  1497  	size += 1 * 16 // m.IPAddress.Un
  1498  	size += 1      // m.Priority
  1499  	size += 1      // m.Weight
  1500  	return size
  1501  }
  1502  func (m *LispLocatorDetails) Marshal(b []byte) ([]byte, error) {
  1503  	if b == nil {
  1504  		b = make([]byte, m.Size())
  1505  	}
  1506  	buf := codec.NewBuffer(b)
  1507  	buf.EncodeUint8(m.Local)
  1508  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1509  	buf.EncodeUint8(uint8(m.IPAddress.Af))
  1510  	buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
  1511  	buf.EncodeUint8(m.Priority)
  1512  	buf.EncodeUint8(m.Weight)
  1513  	return buf.Bytes(), nil
  1514  }
  1515  func (m *LispLocatorDetails) Unmarshal(b []byte) error {
  1516  	buf := codec.NewBuffer(b)
  1517  	m.Local = buf.DecodeUint8()
  1518  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1519  	m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
  1520  	copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
  1521  	m.Priority = buf.DecodeUint8()
  1522  	m.Weight = buf.DecodeUint8()
  1523  	return nil
  1524  }
  1525  
  1526  // Request for map lisp locator status
  1527  //   - locator_set_index - index of locator_set
  1528  //   - ls_name - locator set name
  1529  //   - is_index_set - flag indicating whether ls_name or ls_index is set
  1530  //
  1531  // LispLocatorDump defines message 'lisp_locator_dump'.
  1532  type LispLocatorDump struct {
  1533  	LsIndex    uint32 `binapi:"u32,name=ls_index" json:"ls_index,omitempty"`
  1534  	LsName     string `binapi:"string[64],name=ls_name" json:"ls_name,omitempty"`
  1535  	IsIndexSet uint8  `binapi:"u8,name=is_index_set" json:"is_index_set,omitempty"`
  1536  }
  1537  
  1538  func (m *LispLocatorDump) Reset()               { *m = LispLocatorDump{} }
  1539  func (*LispLocatorDump) GetMessageName() string { return "lisp_locator_dump" }
  1540  func (*LispLocatorDump) GetCrcString() string   { return "b954fad7" }
  1541  func (*LispLocatorDump) GetMessageType() api.MessageType {
  1542  	return api.RequestMessage
  1543  }
  1544  
  1545  func (m *LispLocatorDump) Size() (size int) {
  1546  	if m == nil {
  1547  		return 0
  1548  	}
  1549  	size += 4  // m.LsIndex
  1550  	size += 64 // m.LsName
  1551  	size += 1  // m.IsIndexSet
  1552  	return size
  1553  }
  1554  func (m *LispLocatorDump) Marshal(b []byte) ([]byte, error) {
  1555  	if b == nil {
  1556  		b = make([]byte, m.Size())
  1557  	}
  1558  	buf := codec.NewBuffer(b)
  1559  	buf.EncodeUint32(m.LsIndex)
  1560  	buf.EncodeString(m.LsName, 64)
  1561  	buf.EncodeUint8(m.IsIndexSet)
  1562  	return buf.Bytes(), nil
  1563  }
  1564  func (m *LispLocatorDump) Unmarshal(b []byte) error {
  1565  	buf := codec.NewBuffer(b)
  1566  	m.LsIndex = buf.DecodeUint32()
  1567  	m.LsName = buf.DecodeString(64)
  1568  	m.IsIndexSet = buf.DecodeUint8()
  1569  	return nil
  1570  }
  1571  
  1572  // LISP locator_set status
  1573  //   - ls_index - locator set index
  1574  //   - ls_name - name of the locator set
  1575  //
  1576  // LispLocatorSetDetails defines message 'lisp_locator_set_details'.
  1577  type LispLocatorSetDetails struct {
  1578  	LsIndex uint32 `binapi:"u32,name=ls_index" json:"ls_index,omitempty"`
  1579  	LsName  string `binapi:"string[64],name=ls_name" json:"ls_name,omitempty"`
  1580  }
  1581  
  1582  func (m *LispLocatorSetDetails) Reset()               { *m = LispLocatorSetDetails{} }
  1583  func (*LispLocatorSetDetails) GetMessageName() string { return "lisp_locator_set_details" }
  1584  func (*LispLocatorSetDetails) GetCrcString() string   { return "5b33a105" }
  1585  func (*LispLocatorSetDetails) GetMessageType() api.MessageType {
  1586  	return api.ReplyMessage
  1587  }
  1588  
  1589  func (m *LispLocatorSetDetails) Size() (size int) {
  1590  	if m == nil {
  1591  		return 0
  1592  	}
  1593  	size += 4  // m.LsIndex
  1594  	size += 64 // m.LsName
  1595  	return size
  1596  }
  1597  func (m *LispLocatorSetDetails) Marshal(b []byte) ([]byte, error) {
  1598  	if b == nil {
  1599  		b = make([]byte, m.Size())
  1600  	}
  1601  	buf := codec.NewBuffer(b)
  1602  	buf.EncodeUint32(m.LsIndex)
  1603  	buf.EncodeString(m.LsName, 64)
  1604  	return buf.Bytes(), nil
  1605  }
  1606  func (m *LispLocatorSetDetails) Unmarshal(b []byte) error {
  1607  	buf := codec.NewBuffer(b)
  1608  	m.LsIndex = buf.DecodeUint32()
  1609  	m.LsName = buf.DecodeString(64)
  1610  	return nil
  1611  }
  1612  
  1613  // Request for locator_set summary status
  1614  //   - filter - filter type
  1615  //
  1616  // LispLocatorSetDump defines message 'lisp_locator_set_dump'.
  1617  type LispLocatorSetDump struct {
  1618  	Filter LispLocatorSetFilter `binapi:"lisp_locator_set_filter,name=filter" json:"filter,omitempty"`
  1619  }
  1620  
  1621  func (m *LispLocatorSetDump) Reset()               { *m = LispLocatorSetDump{} }
  1622  func (*LispLocatorSetDump) GetMessageName() string { return "lisp_locator_set_dump" }
  1623  func (*LispLocatorSetDump) GetCrcString() string   { return "c2cb5922" }
  1624  func (*LispLocatorSetDump) GetMessageType() api.MessageType {
  1625  	return api.RequestMessage
  1626  }
  1627  
  1628  func (m *LispLocatorSetDump) Size() (size int) {
  1629  	if m == nil {
  1630  		return 0
  1631  	}
  1632  	size += 1 // m.Filter
  1633  	return size
  1634  }
  1635  func (m *LispLocatorSetDump) Marshal(b []byte) ([]byte, error) {
  1636  	if b == nil {
  1637  		b = make([]byte, m.Size())
  1638  	}
  1639  	buf := codec.NewBuffer(b)
  1640  	buf.EncodeUint8(uint8(m.Filter))
  1641  	return buf.Bytes(), nil
  1642  }
  1643  func (m *LispLocatorSetDump) Unmarshal(b []byte) error {
  1644  	buf := codec.NewBuffer(b)
  1645  	m.Filter = LispLocatorSetFilter(buf.DecodeUint8())
  1646  	return nil
  1647  }
  1648  
  1649  // enable/disable LISP map-register
  1650  //   - is_enable - enable if non-zero; disable otherwise
  1651  //
  1652  // LispMapRegisterEnableDisable defines message 'lisp_map_register_enable_disable'.
  1653  type LispMapRegisterEnableDisable struct {
  1654  	IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
  1655  }
  1656  
  1657  func (m *LispMapRegisterEnableDisable) Reset() { *m = LispMapRegisterEnableDisable{} }
  1658  func (*LispMapRegisterEnableDisable) GetMessageName() string {
  1659  	return "lisp_map_register_enable_disable"
  1660  }
  1661  func (*LispMapRegisterEnableDisable) GetCrcString() string { return "c264d7bf" }
  1662  func (*LispMapRegisterEnableDisable) GetMessageType() api.MessageType {
  1663  	return api.RequestMessage
  1664  }
  1665  
  1666  func (m *LispMapRegisterEnableDisable) Size() (size int) {
  1667  	if m == nil {
  1668  		return 0
  1669  	}
  1670  	size += 1 // m.IsEnable
  1671  	return size
  1672  }
  1673  func (m *LispMapRegisterEnableDisable) Marshal(b []byte) ([]byte, error) {
  1674  	if b == nil {
  1675  		b = make([]byte, m.Size())
  1676  	}
  1677  	buf := codec.NewBuffer(b)
  1678  	buf.EncodeBool(m.IsEnable)
  1679  	return buf.Bytes(), nil
  1680  }
  1681  func (m *LispMapRegisterEnableDisable) Unmarshal(b []byte) error {
  1682  	buf := codec.NewBuffer(b)
  1683  	m.IsEnable = buf.DecodeBool()
  1684  	return nil
  1685  }
  1686  
  1687  // LispMapRegisterEnableDisableReply defines message 'lisp_map_register_enable_disable_reply'.
  1688  type LispMapRegisterEnableDisableReply struct {
  1689  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1690  }
  1691  
  1692  func (m *LispMapRegisterEnableDisableReply) Reset() { *m = LispMapRegisterEnableDisableReply{} }
  1693  func (*LispMapRegisterEnableDisableReply) GetMessageName() string {
  1694  	return "lisp_map_register_enable_disable_reply"
  1695  }
  1696  func (*LispMapRegisterEnableDisableReply) GetCrcString() string { return "e8d4e804" }
  1697  func (*LispMapRegisterEnableDisableReply) GetMessageType() api.MessageType {
  1698  	return api.ReplyMessage
  1699  }
  1700  
  1701  func (m *LispMapRegisterEnableDisableReply) Size() (size int) {
  1702  	if m == nil {
  1703  		return 0
  1704  	}
  1705  	size += 4 // m.Retval
  1706  	return size
  1707  }
  1708  func (m *LispMapRegisterEnableDisableReply) Marshal(b []byte) ([]byte, error) {
  1709  	if b == nil {
  1710  		b = make([]byte, m.Size())
  1711  	}
  1712  	buf := codec.NewBuffer(b)
  1713  	buf.EncodeInt32(m.Retval)
  1714  	return buf.Bytes(), nil
  1715  }
  1716  func (m *LispMapRegisterEnableDisableReply) Unmarshal(b []byte) error {
  1717  	buf := codec.NewBuffer(b)
  1718  	m.Retval = buf.DecodeInt32()
  1719  	return nil
  1720  }
  1721  
  1722  // set LISP map-request mode. Based on configuration VPP will send
  1723  //
  1724  //	  src/dest or just normal destination map requests.
  1725  //	- is_src_dst - if non-zero source/destination else destination only
  1726  //
  1727  // LispMapRequestMode defines message 'lisp_map_request_mode'.
  1728  type LispMapRequestMode struct {
  1729  	IsSrcDst bool `binapi:"bool,name=is_src_dst" json:"is_src_dst,omitempty"`
  1730  }
  1731  
  1732  func (m *LispMapRequestMode) Reset()               { *m = LispMapRequestMode{} }
  1733  func (*LispMapRequestMode) GetMessageName() string { return "lisp_map_request_mode" }
  1734  func (*LispMapRequestMode) GetCrcString() string   { return "f43c26ae" }
  1735  func (*LispMapRequestMode) GetMessageType() api.MessageType {
  1736  	return api.RequestMessage
  1737  }
  1738  
  1739  func (m *LispMapRequestMode) Size() (size int) {
  1740  	if m == nil {
  1741  		return 0
  1742  	}
  1743  	size += 1 // m.IsSrcDst
  1744  	return size
  1745  }
  1746  func (m *LispMapRequestMode) Marshal(b []byte) ([]byte, error) {
  1747  	if b == nil {
  1748  		b = make([]byte, m.Size())
  1749  	}
  1750  	buf := codec.NewBuffer(b)
  1751  	buf.EncodeBool(m.IsSrcDst)
  1752  	return buf.Bytes(), nil
  1753  }
  1754  func (m *LispMapRequestMode) Unmarshal(b []byte) error {
  1755  	buf := codec.NewBuffer(b)
  1756  	m.IsSrcDst = buf.DecodeBool()
  1757  	return nil
  1758  }
  1759  
  1760  // LispMapRequestModeReply defines message 'lisp_map_request_mode_reply'.
  1761  type LispMapRequestModeReply struct {
  1762  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1763  }
  1764  
  1765  func (m *LispMapRequestModeReply) Reset()               { *m = LispMapRequestModeReply{} }
  1766  func (*LispMapRequestModeReply) GetMessageName() string { return "lisp_map_request_mode_reply" }
  1767  func (*LispMapRequestModeReply) GetCrcString() string   { return "e8d4e804" }
  1768  func (*LispMapRequestModeReply) GetMessageType() api.MessageType {
  1769  	return api.ReplyMessage
  1770  }
  1771  
  1772  func (m *LispMapRequestModeReply) Size() (size int) {
  1773  	if m == nil {
  1774  		return 0
  1775  	}
  1776  	size += 4 // m.Retval
  1777  	return size
  1778  }
  1779  func (m *LispMapRequestModeReply) Marshal(b []byte) ([]byte, error) {
  1780  	if b == nil {
  1781  		b = make([]byte, m.Size())
  1782  	}
  1783  	buf := codec.NewBuffer(b)
  1784  	buf.EncodeInt32(m.Retval)
  1785  	return buf.Bytes(), nil
  1786  }
  1787  func (m *LispMapRequestModeReply) Unmarshal(b []byte) error {
  1788  	buf := codec.NewBuffer(b)
  1789  	m.Retval = buf.DecodeInt32()
  1790  	return nil
  1791  }
  1792  
  1793  // LISP map resolver status
  1794  //   - ip_address - array of address bytes
  1795  //
  1796  // LispMapResolverDetails defines message 'lisp_map_resolver_details'.
  1797  type LispMapResolverDetails struct {
  1798  	IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
  1799  }
  1800  
  1801  func (m *LispMapResolverDetails) Reset()               { *m = LispMapResolverDetails{} }
  1802  func (*LispMapResolverDetails) GetMessageName() string { return "lisp_map_resolver_details" }
  1803  func (*LispMapResolverDetails) GetCrcString() string   { return "3e78fc57" }
  1804  func (*LispMapResolverDetails) GetMessageType() api.MessageType {
  1805  	return api.ReplyMessage
  1806  }
  1807  
  1808  func (m *LispMapResolverDetails) Size() (size int) {
  1809  	if m == nil {
  1810  		return 0
  1811  	}
  1812  	size += 1      // m.IPAddress.Af
  1813  	size += 1 * 16 // m.IPAddress.Un
  1814  	return size
  1815  }
  1816  func (m *LispMapResolverDetails) Marshal(b []byte) ([]byte, error) {
  1817  	if b == nil {
  1818  		b = make([]byte, m.Size())
  1819  	}
  1820  	buf := codec.NewBuffer(b)
  1821  	buf.EncodeUint8(uint8(m.IPAddress.Af))
  1822  	buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
  1823  	return buf.Bytes(), nil
  1824  }
  1825  func (m *LispMapResolverDetails) Unmarshal(b []byte) error {
  1826  	buf := codec.NewBuffer(b)
  1827  	m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
  1828  	copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
  1829  	return nil
  1830  }
  1831  
  1832  // Request for map resolver summary status
  1833  // LispMapResolverDump defines message 'lisp_map_resolver_dump'.
  1834  type LispMapResolverDump struct{}
  1835  
  1836  func (m *LispMapResolverDump) Reset()               { *m = LispMapResolverDump{} }
  1837  func (*LispMapResolverDump) GetMessageName() string { return "lisp_map_resolver_dump" }
  1838  func (*LispMapResolverDump) GetCrcString() string   { return "51077d14" }
  1839  func (*LispMapResolverDump) GetMessageType() api.MessageType {
  1840  	return api.RequestMessage
  1841  }
  1842  
  1843  func (m *LispMapResolverDump) Size() (size int) {
  1844  	if m == nil {
  1845  		return 0
  1846  	}
  1847  	return size
  1848  }
  1849  func (m *LispMapResolverDump) Marshal(b []byte) ([]byte, error) {
  1850  	if b == nil {
  1851  		b = make([]byte, m.Size())
  1852  	}
  1853  	buf := codec.NewBuffer(b)
  1854  	return buf.Bytes(), nil
  1855  }
  1856  func (m *LispMapResolverDump) Unmarshal(b []byte) error {
  1857  	return nil
  1858  }
  1859  
  1860  // LISP map server details
  1861  //   - ip_address - array of address bytes
  1862  //
  1863  // LispMapServerDetails defines message 'lisp_map_server_details'.
  1864  type LispMapServerDetails struct {
  1865  	IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
  1866  }
  1867  
  1868  func (m *LispMapServerDetails) Reset()               { *m = LispMapServerDetails{} }
  1869  func (*LispMapServerDetails) GetMessageName() string { return "lisp_map_server_details" }
  1870  func (*LispMapServerDetails) GetCrcString() string   { return "3e78fc57" }
  1871  func (*LispMapServerDetails) GetMessageType() api.MessageType {
  1872  	return api.ReplyMessage
  1873  }
  1874  
  1875  func (m *LispMapServerDetails) Size() (size int) {
  1876  	if m == nil {
  1877  		return 0
  1878  	}
  1879  	size += 1      // m.IPAddress.Af
  1880  	size += 1 * 16 // m.IPAddress.Un
  1881  	return size
  1882  }
  1883  func (m *LispMapServerDetails) Marshal(b []byte) ([]byte, error) {
  1884  	if b == nil {
  1885  		b = make([]byte, m.Size())
  1886  	}
  1887  	buf := codec.NewBuffer(b)
  1888  	buf.EncodeUint8(uint8(m.IPAddress.Af))
  1889  	buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
  1890  	return buf.Bytes(), nil
  1891  }
  1892  func (m *LispMapServerDetails) Unmarshal(b []byte) error {
  1893  	buf := codec.NewBuffer(b)
  1894  	m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
  1895  	copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
  1896  	return nil
  1897  }
  1898  
  1899  // Request for map server summary status
  1900  // LispMapServerDump defines message 'lisp_map_server_dump'.
  1901  type LispMapServerDump struct{}
  1902  
  1903  func (m *LispMapServerDump) Reset()               { *m = LispMapServerDump{} }
  1904  func (*LispMapServerDump) GetMessageName() string { return "lisp_map_server_dump" }
  1905  func (*LispMapServerDump) GetCrcString() string   { return "51077d14" }
  1906  func (*LispMapServerDump) GetMessageType() api.MessageType {
  1907  	return api.RequestMessage
  1908  }
  1909  
  1910  func (m *LispMapServerDump) Size() (size int) {
  1911  	if m == nil {
  1912  		return 0
  1913  	}
  1914  	return size
  1915  }
  1916  func (m *LispMapServerDump) Marshal(b []byte) ([]byte, error) {
  1917  	if b == nil {
  1918  		b = make([]byte, m.Size())
  1919  	}
  1920  	buf := codec.NewBuffer(b)
  1921  	return buf.Bytes(), nil
  1922  }
  1923  func (m *LispMapServerDump) Unmarshal(b []byte) error {
  1924  	return nil
  1925  }
  1926  
  1927  // configure or disable LISP PITR node
  1928  //   - ls_name - locator set name
  1929  //   - is_add - add locator set if non-zero, else disable pitr
  1930  //
  1931  // LispPitrSetLocatorSet defines message 'lisp_pitr_set_locator_set'.
  1932  type LispPitrSetLocatorSet struct {
  1933  	IsAdd  bool   `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
  1934  	LsName string `binapi:"string[64],name=ls_name" json:"ls_name,omitempty"`
  1935  }
  1936  
  1937  func (m *LispPitrSetLocatorSet) Reset()               { *m = LispPitrSetLocatorSet{} }
  1938  func (*LispPitrSetLocatorSet) GetMessageName() string { return "lisp_pitr_set_locator_set" }
  1939  func (*LispPitrSetLocatorSet) GetCrcString() string   { return "486e2b76" }
  1940  func (*LispPitrSetLocatorSet) GetMessageType() api.MessageType {
  1941  	return api.RequestMessage
  1942  }
  1943  
  1944  func (m *LispPitrSetLocatorSet) Size() (size int) {
  1945  	if m == nil {
  1946  		return 0
  1947  	}
  1948  	size += 1  // m.IsAdd
  1949  	size += 64 // m.LsName
  1950  	return size
  1951  }
  1952  func (m *LispPitrSetLocatorSet) Marshal(b []byte) ([]byte, error) {
  1953  	if b == nil {
  1954  		b = make([]byte, m.Size())
  1955  	}
  1956  	buf := codec.NewBuffer(b)
  1957  	buf.EncodeBool(m.IsAdd)
  1958  	buf.EncodeString(m.LsName, 64)
  1959  	return buf.Bytes(), nil
  1960  }
  1961  func (m *LispPitrSetLocatorSet) Unmarshal(b []byte) error {
  1962  	buf := codec.NewBuffer(b)
  1963  	m.IsAdd = buf.DecodeBool()
  1964  	m.LsName = buf.DecodeString(64)
  1965  	return nil
  1966  }
  1967  
  1968  // LispPitrSetLocatorSetReply defines message 'lisp_pitr_set_locator_set_reply'.
  1969  type LispPitrSetLocatorSetReply struct {
  1970  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1971  }
  1972  
  1973  func (m *LispPitrSetLocatorSetReply) Reset()               { *m = LispPitrSetLocatorSetReply{} }
  1974  func (*LispPitrSetLocatorSetReply) GetMessageName() string { return "lisp_pitr_set_locator_set_reply" }
  1975  func (*LispPitrSetLocatorSetReply) GetCrcString() string   { return "e8d4e804" }
  1976  func (*LispPitrSetLocatorSetReply) GetMessageType() api.MessageType {
  1977  	return api.ReplyMessage
  1978  }
  1979  
  1980  func (m *LispPitrSetLocatorSetReply) Size() (size int) {
  1981  	if m == nil {
  1982  		return 0
  1983  	}
  1984  	size += 4 // m.Retval
  1985  	return size
  1986  }
  1987  func (m *LispPitrSetLocatorSetReply) Marshal(b []byte) ([]byte, error) {
  1988  	if b == nil {
  1989  		b = make([]byte, m.Size())
  1990  	}
  1991  	buf := codec.NewBuffer(b)
  1992  	buf.EncodeInt32(m.Retval)
  1993  	return buf.Bytes(), nil
  1994  }
  1995  func (m *LispPitrSetLocatorSetReply) Unmarshal(b []byte) error {
  1996  	buf := codec.NewBuffer(b)
  1997  	m.Retval = buf.DecodeInt32()
  1998  	return nil
  1999  }
  2000  
  2001  // enable/disable LISP RLOC probing
  2002  //   - is_enable - enable if non-zero; disable otherwise
  2003  //
  2004  // LispRlocProbeEnableDisable defines message 'lisp_rloc_probe_enable_disable'.
  2005  type LispRlocProbeEnableDisable struct {
  2006  	IsEnable bool `binapi:"bool,name=is_enable,default=true" json:"is_enable,omitempty"`
  2007  }
  2008  
  2009  func (m *LispRlocProbeEnableDisable) Reset()               { *m = LispRlocProbeEnableDisable{} }
  2010  func (*LispRlocProbeEnableDisable) GetMessageName() string { return "lisp_rloc_probe_enable_disable" }
  2011  func (*LispRlocProbeEnableDisable) GetCrcString() string   { return "c264d7bf" }
  2012  func (*LispRlocProbeEnableDisable) GetMessageType() api.MessageType {
  2013  	return api.RequestMessage
  2014  }
  2015  
  2016  func (m *LispRlocProbeEnableDisable) Size() (size int) {
  2017  	if m == nil {
  2018  		return 0
  2019  	}
  2020  	size += 1 // m.IsEnable
  2021  	return size
  2022  }
  2023  func (m *LispRlocProbeEnableDisable) Marshal(b []byte) ([]byte, error) {
  2024  	if b == nil {
  2025  		b = make([]byte, m.Size())
  2026  	}
  2027  	buf := codec.NewBuffer(b)
  2028  	buf.EncodeBool(m.IsEnable)
  2029  	return buf.Bytes(), nil
  2030  }
  2031  func (m *LispRlocProbeEnableDisable) Unmarshal(b []byte) error {
  2032  	buf := codec.NewBuffer(b)
  2033  	m.IsEnable = buf.DecodeBool()
  2034  	return nil
  2035  }
  2036  
  2037  // LispRlocProbeEnableDisableReply defines message 'lisp_rloc_probe_enable_disable_reply'.
  2038  type LispRlocProbeEnableDisableReply struct {
  2039  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2040  }
  2041  
  2042  func (m *LispRlocProbeEnableDisableReply) Reset() { *m = LispRlocProbeEnableDisableReply{} }
  2043  func (*LispRlocProbeEnableDisableReply) GetMessageName() string {
  2044  	return "lisp_rloc_probe_enable_disable_reply"
  2045  }
  2046  func (*LispRlocProbeEnableDisableReply) GetCrcString() string { return "e8d4e804" }
  2047  func (*LispRlocProbeEnableDisableReply) GetMessageType() api.MessageType {
  2048  	return api.ReplyMessage
  2049  }
  2050  
  2051  func (m *LispRlocProbeEnableDisableReply) Size() (size int) {
  2052  	if m == nil {
  2053  		return 0
  2054  	}
  2055  	size += 4 // m.Retval
  2056  	return size
  2057  }
  2058  func (m *LispRlocProbeEnableDisableReply) Marshal(b []byte) ([]byte, error) {
  2059  	if b == nil {
  2060  		b = make([]byte, m.Size())
  2061  	}
  2062  	buf := codec.NewBuffer(b)
  2063  	buf.EncodeInt32(m.Retval)
  2064  	return buf.Bytes(), nil
  2065  }
  2066  func (m *LispRlocProbeEnableDisableReply) Unmarshal(b []byte) error {
  2067  	buf := codec.NewBuffer(b)
  2068  	m.Retval = buf.DecodeInt32()
  2069  	return nil
  2070  }
  2071  
  2072  // configure or disable use of PETR
  2073  //   - ip_address - PETR IP address
  2074  //   - is_add - add locator set if non-zero, else disable pitr
  2075  //
  2076  // LispUsePetr defines message 'lisp_use_petr'.
  2077  type LispUsePetr struct {
  2078  	IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
  2079  	IsAdd     bool             `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
  2080  }
  2081  
  2082  func (m *LispUsePetr) Reset()               { *m = LispUsePetr{} }
  2083  func (*LispUsePetr) GetMessageName() string { return "lisp_use_petr" }
  2084  func (*LispUsePetr) GetCrcString() string   { return "d87dbad9" }
  2085  func (*LispUsePetr) GetMessageType() api.MessageType {
  2086  	return api.RequestMessage
  2087  }
  2088  
  2089  func (m *LispUsePetr) Size() (size int) {
  2090  	if m == nil {
  2091  		return 0
  2092  	}
  2093  	size += 1      // m.IPAddress.Af
  2094  	size += 1 * 16 // m.IPAddress.Un
  2095  	size += 1      // m.IsAdd
  2096  	return size
  2097  }
  2098  func (m *LispUsePetr) Marshal(b []byte) ([]byte, error) {
  2099  	if b == nil {
  2100  		b = make([]byte, m.Size())
  2101  	}
  2102  	buf := codec.NewBuffer(b)
  2103  	buf.EncodeUint8(uint8(m.IPAddress.Af))
  2104  	buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
  2105  	buf.EncodeBool(m.IsAdd)
  2106  	return buf.Bytes(), nil
  2107  }
  2108  func (m *LispUsePetr) Unmarshal(b []byte) error {
  2109  	buf := codec.NewBuffer(b)
  2110  	m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
  2111  	copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
  2112  	m.IsAdd = buf.DecodeBool()
  2113  	return nil
  2114  }
  2115  
  2116  // LispUsePetrReply defines message 'lisp_use_petr_reply'.
  2117  type LispUsePetrReply struct {
  2118  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2119  }
  2120  
  2121  func (m *LispUsePetrReply) Reset()               { *m = LispUsePetrReply{} }
  2122  func (*LispUsePetrReply) GetMessageName() string { return "lisp_use_petr_reply" }
  2123  func (*LispUsePetrReply) GetCrcString() string   { return "e8d4e804" }
  2124  func (*LispUsePetrReply) GetMessageType() api.MessageType {
  2125  	return api.ReplyMessage
  2126  }
  2127  
  2128  func (m *LispUsePetrReply) Size() (size int) {
  2129  	if m == nil {
  2130  		return 0
  2131  	}
  2132  	size += 4 // m.Retval
  2133  	return size
  2134  }
  2135  func (m *LispUsePetrReply) Marshal(b []byte) ([]byte, error) {
  2136  	if b == nil {
  2137  		b = make([]byte, m.Size())
  2138  	}
  2139  	buf := codec.NewBuffer(b)
  2140  	buf.EncodeInt32(m.Retval)
  2141  	return buf.Bytes(), nil
  2142  }
  2143  func (m *LispUsePetrReply) Unmarshal(b []byte) error {
  2144  	buf := codec.NewBuffer(b)
  2145  	m.Retval = buf.DecodeInt32()
  2146  	return nil
  2147  }
  2148  
  2149  // Get state of LISP map-register
  2150  // ShowLispMapRegisterState defines message 'show_lisp_map_register_state'.
  2151  type ShowLispMapRegisterState struct{}
  2152  
  2153  func (m *ShowLispMapRegisterState) Reset()               { *m = ShowLispMapRegisterState{} }
  2154  func (*ShowLispMapRegisterState) GetMessageName() string { return "show_lisp_map_register_state" }
  2155  func (*ShowLispMapRegisterState) GetCrcString() string   { return "51077d14" }
  2156  func (*ShowLispMapRegisterState) GetMessageType() api.MessageType {
  2157  	return api.RequestMessage
  2158  }
  2159  
  2160  func (m *ShowLispMapRegisterState) Size() (size int) {
  2161  	if m == nil {
  2162  		return 0
  2163  	}
  2164  	return size
  2165  }
  2166  func (m *ShowLispMapRegisterState) Marshal(b []byte) ([]byte, error) {
  2167  	if b == nil {
  2168  		b = make([]byte, m.Size())
  2169  	}
  2170  	buf := codec.NewBuffer(b)
  2171  	return buf.Bytes(), nil
  2172  }
  2173  func (m *ShowLispMapRegisterState) Unmarshal(b []byte) error {
  2174  	return nil
  2175  }
  2176  
  2177  // Reply for show_lisp_map_register_state
  2178  //   - retval - return code
  2179  //
  2180  // ShowLispMapRegisterStateReply defines message 'show_lisp_map_register_state_reply'.
  2181  type ShowLispMapRegisterStateReply struct {
  2182  	Retval    int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2183  	IsEnabled bool  `binapi:"bool,name=is_enabled" json:"is_enabled,omitempty"`
  2184  }
  2185  
  2186  func (m *ShowLispMapRegisterStateReply) Reset() { *m = ShowLispMapRegisterStateReply{} }
  2187  func (*ShowLispMapRegisterStateReply) GetMessageName() string {
  2188  	return "show_lisp_map_register_state_reply"
  2189  }
  2190  func (*ShowLispMapRegisterStateReply) GetCrcString() string { return "e33a377b" }
  2191  func (*ShowLispMapRegisterStateReply) GetMessageType() api.MessageType {
  2192  	return api.ReplyMessage
  2193  }
  2194  
  2195  func (m *ShowLispMapRegisterStateReply) Size() (size int) {
  2196  	if m == nil {
  2197  		return 0
  2198  	}
  2199  	size += 4 // m.Retval
  2200  	size += 1 // m.IsEnabled
  2201  	return size
  2202  }
  2203  func (m *ShowLispMapRegisterStateReply) Marshal(b []byte) ([]byte, error) {
  2204  	if b == nil {
  2205  		b = make([]byte, m.Size())
  2206  	}
  2207  	buf := codec.NewBuffer(b)
  2208  	buf.EncodeInt32(m.Retval)
  2209  	buf.EncodeBool(m.IsEnabled)
  2210  	return buf.Bytes(), nil
  2211  }
  2212  func (m *ShowLispMapRegisterStateReply) Unmarshal(b []byte) error {
  2213  	buf := codec.NewBuffer(b)
  2214  	m.Retval = buf.DecodeInt32()
  2215  	m.IsEnabled = buf.DecodeBool()
  2216  	return nil
  2217  }
  2218  
  2219  // Request for LISP map-request mode
  2220  // ShowLispMapRequestMode defines message 'show_lisp_map_request_mode'.
  2221  type ShowLispMapRequestMode struct{}
  2222  
  2223  func (m *ShowLispMapRequestMode) Reset()               { *m = ShowLispMapRequestMode{} }
  2224  func (*ShowLispMapRequestMode) GetMessageName() string { return "show_lisp_map_request_mode" }
  2225  func (*ShowLispMapRequestMode) GetCrcString() string   { return "51077d14" }
  2226  func (*ShowLispMapRequestMode) GetMessageType() api.MessageType {
  2227  	return api.RequestMessage
  2228  }
  2229  
  2230  func (m *ShowLispMapRequestMode) Size() (size int) {
  2231  	if m == nil {
  2232  		return 0
  2233  	}
  2234  	return size
  2235  }
  2236  func (m *ShowLispMapRequestMode) Marshal(b []byte) ([]byte, error) {
  2237  	if b == nil {
  2238  		b = make([]byte, m.Size())
  2239  	}
  2240  	buf := codec.NewBuffer(b)
  2241  	return buf.Bytes(), nil
  2242  }
  2243  func (m *ShowLispMapRequestMode) Unmarshal(b []byte) error {
  2244  	return nil
  2245  }
  2246  
  2247  // Reply for show_lisp_map_request_mode
  2248  //   - retval - return code
  2249  //   - is_src_dst - if non-zero source/destination else destination only
  2250  //
  2251  // ShowLispMapRequestModeReply defines message 'show_lisp_map_request_mode_reply'.
  2252  type ShowLispMapRequestModeReply struct {
  2253  	Retval   int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2254  	IsSrcDst bool  `binapi:"bool,name=is_src_dst" json:"is_src_dst,omitempty"`
  2255  }
  2256  
  2257  func (m *ShowLispMapRequestModeReply) Reset() { *m = ShowLispMapRequestModeReply{} }
  2258  func (*ShowLispMapRequestModeReply) GetMessageName() string {
  2259  	return "show_lisp_map_request_mode_reply"
  2260  }
  2261  func (*ShowLispMapRequestModeReply) GetCrcString() string { return "5b05038e" }
  2262  func (*ShowLispMapRequestModeReply) GetMessageType() api.MessageType {
  2263  	return api.ReplyMessage
  2264  }
  2265  
  2266  func (m *ShowLispMapRequestModeReply) Size() (size int) {
  2267  	if m == nil {
  2268  		return 0
  2269  	}
  2270  	size += 4 // m.Retval
  2271  	size += 1 // m.IsSrcDst
  2272  	return size
  2273  }
  2274  func (m *ShowLispMapRequestModeReply) Marshal(b []byte) ([]byte, error) {
  2275  	if b == nil {
  2276  		b = make([]byte, m.Size())
  2277  	}
  2278  	buf := codec.NewBuffer(b)
  2279  	buf.EncodeInt32(m.Retval)
  2280  	buf.EncodeBool(m.IsSrcDst)
  2281  	return buf.Bytes(), nil
  2282  }
  2283  func (m *ShowLispMapRequestModeReply) Unmarshal(b []byte) error {
  2284  	buf := codec.NewBuffer(b)
  2285  	m.Retval = buf.DecodeInt32()
  2286  	m.IsSrcDst = buf.DecodeBool()
  2287  	return nil
  2288  }
  2289  
  2290  // Request for lisp pitr status
  2291  // ShowLispPitr defines message 'show_lisp_pitr'.
  2292  type ShowLispPitr struct{}
  2293  
  2294  func (m *ShowLispPitr) Reset()               { *m = ShowLispPitr{} }
  2295  func (*ShowLispPitr) GetMessageName() string { return "show_lisp_pitr" }
  2296  func (*ShowLispPitr) GetCrcString() string   { return "51077d14" }
  2297  func (*ShowLispPitr) GetMessageType() api.MessageType {
  2298  	return api.RequestMessage
  2299  }
  2300  
  2301  func (m *ShowLispPitr) Size() (size int) {
  2302  	if m == nil {
  2303  		return 0
  2304  	}
  2305  	return size
  2306  }
  2307  func (m *ShowLispPitr) Marshal(b []byte) ([]byte, error) {
  2308  	if b == nil {
  2309  		b = make([]byte, m.Size())
  2310  	}
  2311  	buf := codec.NewBuffer(b)
  2312  	return buf.Bytes(), nil
  2313  }
  2314  func (m *ShowLispPitr) Unmarshal(b []byte) error {
  2315  	return nil
  2316  }
  2317  
  2318  // Status of lisp pitr, enable or disable
  2319  //   - status - lisp pitr enable if non-zero, else disable
  2320  //   - locator_set_name -  name of the locator_set
  2321  //
  2322  // ShowLispPitrReply defines message 'show_lisp_pitr_reply'.
  2323  type ShowLispPitrReply struct {
  2324  	Retval         int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  2325  	IsEnabled      bool   `binapi:"bool,name=is_enabled" json:"is_enabled,omitempty"`
  2326  	LocatorSetName string `binapi:"string[64],name=locator_set_name" json:"locator_set_name,omitempty"`
  2327  }
  2328  
  2329  func (m *ShowLispPitrReply) Reset()               { *m = ShowLispPitrReply{} }
  2330  func (*ShowLispPitrReply) GetMessageName() string { return "show_lisp_pitr_reply" }
  2331  func (*ShowLispPitrReply) GetCrcString() string   { return "27aa69b1" }
  2332  func (*ShowLispPitrReply) GetMessageType() api.MessageType {
  2333  	return api.ReplyMessage
  2334  }
  2335  
  2336  func (m *ShowLispPitrReply) Size() (size int) {
  2337  	if m == nil {
  2338  		return 0
  2339  	}
  2340  	size += 4  // m.Retval
  2341  	size += 1  // m.IsEnabled
  2342  	size += 64 // m.LocatorSetName
  2343  	return size
  2344  }
  2345  func (m *ShowLispPitrReply) Marshal(b []byte) ([]byte, error) {
  2346  	if b == nil {
  2347  		b = make([]byte, m.Size())
  2348  	}
  2349  	buf := codec.NewBuffer(b)
  2350  	buf.EncodeInt32(m.Retval)
  2351  	buf.EncodeBool(m.IsEnabled)
  2352  	buf.EncodeString(m.LocatorSetName, 64)
  2353  	return buf.Bytes(), nil
  2354  }
  2355  func (m *ShowLispPitrReply) Unmarshal(b []byte) error {
  2356  	buf := codec.NewBuffer(b)
  2357  	m.Retval = buf.DecodeInt32()
  2358  	m.IsEnabled = buf.DecodeBool()
  2359  	m.LocatorSetName = buf.DecodeString(64)
  2360  	return nil
  2361  }
  2362  
  2363  // Get state of LISP RLOC probing
  2364  // ShowLispRlocProbeState defines message 'show_lisp_rloc_probe_state'.
  2365  type ShowLispRlocProbeState struct{}
  2366  
  2367  func (m *ShowLispRlocProbeState) Reset()               { *m = ShowLispRlocProbeState{} }
  2368  func (*ShowLispRlocProbeState) GetMessageName() string { return "show_lisp_rloc_probe_state" }
  2369  func (*ShowLispRlocProbeState) GetCrcString() string   { return "51077d14" }
  2370  func (*ShowLispRlocProbeState) GetMessageType() api.MessageType {
  2371  	return api.RequestMessage
  2372  }
  2373  
  2374  func (m *ShowLispRlocProbeState) Size() (size int) {
  2375  	if m == nil {
  2376  		return 0
  2377  	}
  2378  	return size
  2379  }
  2380  func (m *ShowLispRlocProbeState) Marshal(b []byte) ([]byte, error) {
  2381  	if b == nil {
  2382  		b = make([]byte, m.Size())
  2383  	}
  2384  	buf := codec.NewBuffer(b)
  2385  	return buf.Bytes(), nil
  2386  }
  2387  func (m *ShowLispRlocProbeState) Unmarshal(b []byte) error {
  2388  	return nil
  2389  }
  2390  
  2391  // Reply for show_lisp_rloc_probe_state
  2392  //   - retval - return code
  2393  //   - is_enabled - state of RLOC probing
  2394  //
  2395  // ShowLispRlocProbeStateReply defines message 'show_lisp_rloc_probe_state_reply'.
  2396  type ShowLispRlocProbeStateReply struct {
  2397  	Retval    int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2398  	IsEnabled bool  `binapi:"bool,name=is_enabled" json:"is_enabled,omitempty"`
  2399  }
  2400  
  2401  func (m *ShowLispRlocProbeStateReply) Reset() { *m = ShowLispRlocProbeStateReply{} }
  2402  func (*ShowLispRlocProbeStateReply) GetMessageName() string {
  2403  	return "show_lisp_rloc_probe_state_reply"
  2404  }
  2405  func (*ShowLispRlocProbeStateReply) GetCrcString() string { return "e33a377b" }
  2406  func (*ShowLispRlocProbeStateReply) GetMessageType() api.MessageType {
  2407  	return api.ReplyMessage
  2408  }
  2409  
  2410  func (m *ShowLispRlocProbeStateReply) Size() (size int) {
  2411  	if m == nil {
  2412  		return 0
  2413  	}
  2414  	size += 4 // m.Retval
  2415  	size += 1 // m.IsEnabled
  2416  	return size
  2417  }
  2418  func (m *ShowLispRlocProbeStateReply) Marshal(b []byte) ([]byte, error) {
  2419  	if b == nil {
  2420  		b = make([]byte, m.Size())
  2421  	}
  2422  	buf := codec.NewBuffer(b)
  2423  	buf.EncodeInt32(m.Retval)
  2424  	buf.EncodeBool(m.IsEnabled)
  2425  	return buf.Bytes(), nil
  2426  }
  2427  func (m *ShowLispRlocProbeStateReply) Unmarshal(b []byte) error {
  2428  	buf := codec.NewBuffer(b)
  2429  	m.Retval = buf.DecodeInt32()
  2430  	m.IsEnabled = buf.DecodeBool()
  2431  	return nil
  2432  }
  2433  
  2434  // Request for lisp-gpe protocol status
  2435  // ShowLispStatus defines message 'show_lisp_status'.
  2436  type ShowLispStatus struct{}
  2437  
  2438  func (m *ShowLispStatus) Reset()               { *m = ShowLispStatus{} }
  2439  func (*ShowLispStatus) GetMessageName() string { return "show_lisp_status" }
  2440  func (*ShowLispStatus) GetCrcString() string   { return "51077d14" }
  2441  func (*ShowLispStatus) GetMessageType() api.MessageType {
  2442  	return api.RequestMessage
  2443  }
  2444  
  2445  func (m *ShowLispStatus) Size() (size int) {
  2446  	if m == nil {
  2447  		return 0
  2448  	}
  2449  	return size
  2450  }
  2451  func (m *ShowLispStatus) Marshal(b []byte) ([]byte, error) {
  2452  	if b == nil {
  2453  		b = make([]byte, m.Size())
  2454  	}
  2455  	buf := codec.NewBuffer(b)
  2456  	return buf.Bytes(), nil
  2457  }
  2458  func (m *ShowLispStatus) Unmarshal(b []byte) error {
  2459  	return nil
  2460  }
  2461  
  2462  // Status of lisp, enable or disable
  2463  //   - feature_status - lisp enable if non-zero, else disable
  2464  //   - gpe_status - lisp enable if non-zero, else disable
  2465  //
  2466  // ShowLispStatusReply defines message 'show_lisp_status_reply'.
  2467  type ShowLispStatusReply struct {
  2468  	Retval        int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2469  	IsLispEnabled bool  `binapi:"bool,name=is_lisp_enabled" json:"is_lisp_enabled,omitempty"`
  2470  	IsGpeEnabled  bool  `binapi:"bool,name=is_gpe_enabled" json:"is_gpe_enabled,omitempty"`
  2471  }
  2472  
  2473  func (m *ShowLispStatusReply) Reset()               { *m = ShowLispStatusReply{} }
  2474  func (*ShowLispStatusReply) GetMessageName() string { return "show_lisp_status_reply" }
  2475  func (*ShowLispStatusReply) GetCrcString() string   { return "9e8f10c0" }
  2476  func (*ShowLispStatusReply) GetMessageType() api.MessageType {
  2477  	return api.ReplyMessage
  2478  }
  2479  
  2480  func (m *ShowLispStatusReply) Size() (size int) {
  2481  	if m == nil {
  2482  		return 0
  2483  	}
  2484  	size += 4 // m.Retval
  2485  	size += 1 // m.IsLispEnabled
  2486  	size += 1 // m.IsGpeEnabled
  2487  	return size
  2488  }
  2489  func (m *ShowLispStatusReply) Marshal(b []byte) ([]byte, error) {
  2490  	if b == nil {
  2491  		b = make([]byte, m.Size())
  2492  	}
  2493  	buf := codec.NewBuffer(b)
  2494  	buf.EncodeInt32(m.Retval)
  2495  	buf.EncodeBool(m.IsLispEnabled)
  2496  	buf.EncodeBool(m.IsGpeEnabled)
  2497  	return buf.Bytes(), nil
  2498  }
  2499  func (m *ShowLispStatusReply) Unmarshal(b []byte) error {
  2500  	buf := codec.NewBuffer(b)
  2501  	m.Retval = buf.DecodeInt32()
  2502  	m.IsLispEnabled = buf.DecodeBool()
  2503  	m.IsGpeEnabled = buf.DecodeBool()
  2504  	return nil
  2505  }
  2506  
  2507  // Request for LISP PETR status
  2508  // ShowLispUsePetr defines message 'show_lisp_use_petr'.
  2509  type ShowLispUsePetr struct{}
  2510  
  2511  func (m *ShowLispUsePetr) Reset()               { *m = ShowLispUsePetr{} }
  2512  func (*ShowLispUsePetr) GetMessageName() string { return "show_lisp_use_petr" }
  2513  func (*ShowLispUsePetr) GetCrcString() string   { return "51077d14" }
  2514  func (*ShowLispUsePetr) GetMessageType() api.MessageType {
  2515  	return api.RequestMessage
  2516  }
  2517  
  2518  func (m *ShowLispUsePetr) Size() (size int) {
  2519  	if m == nil {
  2520  		return 0
  2521  	}
  2522  	return size
  2523  }
  2524  func (m *ShowLispUsePetr) Marshal(b []byte) ([]byte, error) {
  2525  	if b == nil {
  2526  		b = make([]byte, m.Size())
  2527  	}
  2528  	buf := codec.NewBuffer(b)
  2529  	return buf.Bytes(), nil
  2530  }
  2531  func (m *ShowLispUsePetr) Unmarshal(b []byte) error {
  2532  	return nil
  2533  }
  2534  
  2535  // LISP PETR status, enable or disable
  2536  //   - status - LISP PETR enable if non-zero, else disable
  2537  //   - address - PETR IP address
  2538  //
  2539  // ShowLispUsePetrReply defines message 'show_lisp_use_petr_reply'.
  2540  type ShowLispUsePetrReply struct {
  2541  	Retval       int32            `binapi:"i32,name=retval" json:"retval,omitempty"`
  2542  	IsPetrEnable bool             `binapi:"bool,name=is_petr_enable" json:"is_petr_enable,omitempty"`
  2543  	IPAddress    ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
  2544  }
  2545  
  2546  func (m *ShowLispUsePetrReply) Reset()               { *m = ShowLispUsePetrReply{} }
  2547  func (*ShowLispUsePetrReply) GetMessageName() string { return "show_lisp_use_petr_reply" }
  2548  func (*ShowLispUsePetrReply) GetCrcString() string   { return "22b9a4b0" }
  2549  func (*ShowLispUsePetrReply) GetMessageType() api.MessageType {
  2550  	return api.ReplyMessage
  2551  }
  2552  
  2553  func (m *ShowLispUsePetrReply) Size() (size int) {
  2554  	if m == nil {
  2555  		return 0
  2556  	}
  2557  	size += 4      // m.Retval
  2558  	size += 1      // m.IsPetrEnable
  2559  	size += 1      // m.IPAddress.Af
  2560  	size += 1 * 16 // m.IPAddress.Un
  2561  	return size
  2562  }
  2563  func (m *ShowLispUsePetrReply) Marshal(b []byte) ([]byte, error) {
  2564  	if b == nil {
  2565  		b = make([]byte, m.Size())
  2566  	}
  2567  	buf := codec.NewBuffer(b)
  2568  	buf.EncodeInt32(m.Retval)
  2569  	buf.EncodeBool(m.IsPetrEnable)
  2570  	buf.EncodeUint8(uint8(m.IPAddress.Af))
  2571  	buf.EncodeBytes(m.IPAddress.Un.XXX_UnionData[:], 16)
  2572  	return buf.Bytes(), nil
  2573  }
  2574  func (m *ShowLispUsePetrReply) Unmarshal(b []byte) error {
  2575  	buf := codec.NewBuffer(b)
  2576  	m.Retval = buf.DecodeInt32()
  2577  	m.IsPetrEnable = buf.DecodeBool()
  2578  	m.IPAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
  2579  	copy(m.IPAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
  2580  	return nil
  2581  }
  2582  
  2583  func init() { file_lisp_binapi_init() }
  2584  func file_lisp_binapi_init() {
  2585  	api.RegisterMessage((*LispAddDelAdjacency)(nil), "lisp_add_del_adjacency_2ce0e6f6")
  2586  	api.RegisterMessage((*LispAddDelAdjacencyReply)(nil), "lisp_add_del_adjacency_reply_e8d4e804")
  2587  	api.RegisterMessage((*LispAddDelLocalEid)(nil), "lisp_add_del_local_eid_4e5a83a2")
  2588  	api.RegisterMessage((*LispAddDelLocalEidReply)(nil), "lisp_add_del_local_eid_reply_e8d4e804")
  2589  	api.RegisterMessage((*LispAddDelLocator)(nil), "lisp_add_del_locator_af4d8f13")
  2590  	api.RegisterMessage((*LispAddDelLocatorReply)(nil), "lisp_add_del_locator_reply_e8d4e804")
  2591  	api.RegisterMessage((*LispAddDelLocatorSet)(nil), "lisp_add_del_locator_set_6fcd6471")
  2592  	api.RegisterMessage((*LispAddDelLocatorSetReply)(nil), "lisp_add_del_locator_set_reply_b6666db4")
  2593  	api.RegisterMessage((*LispAddDelMapRequestItrRlocs)(nil), "lisp_add_del_map_request_itr_rlocs_6be88e45")
  2594  	api.RegisterMessage((*LispAddDelMapRequestItrRlocsReply)(nil), "lisp_add_del_map_request_itr_rlocs_reply_e8d4e804")
  2595  	api.RegisterMessage((*LispAddDelMapResolver)(nil), "lisp_add_del_map_resolver_ce19e32d")
  2596  	api.RegisterMessage((*LispAddDelMapResolverReply)(nil), "lisp_add_del_map_resolver_reply_e8d4e804")
  2597  	api.RegisterMessage((*LispAddDelMapServer)(nil), "lisp_add_del_map_server_ce19e32d")
  2598  	api.RegisterMessage((*LispAddDelMapServerReply)(nil), "lisp_add_del_map_server_reply_e8d4e804")
  2599  	api.RegisterMessage((*LispAddDelRemoteMapping)(nil), "lisp_add_del_remote_mapping_6d5c789e")
  2600  	api.RegisterMessage((*LispAddDelRemoteMappingReply)(nil), "lisp_add_del_remote_mapping_reply_e8d4e804")
  2601  	api.RegisterMessage((*LispAdjacenciesGet)(nil), "lisp_adjacencies_get_8d1f2fe9")
  2602  	api.RegisterMessage((*LispAdjacenciesGetReply)(nil), "lisp_adjacencies_get_reply_807257bf")
  2603  	api.RegisterMessage((*LispEidTableAddDelMap)(nil), "lisp_eid_table_add_del_map_9481416b")
  2604  	api.RegisterMessage((*LispEidTableAddDelMapReply)(nil), "lisp_eid_table_add_del_map_reply_e8d4e804")
  2605  	api.RegisterMessage((*LispEidTableDetails)(nil), "lisp_eid_table_details_1c29f792")
  2606  	api.RegisterMessage((*LispEidTableDump)(nil), "lisp_eid_table_dump_629468b5")
  2607  	api.RegisterMessage((*LispEidTableMapDetails)(nil), "lisp_eid_table_map_details_0b6859e2")
  2608  	api.RegisterMessage((*LispEidTableMapDump)(nil), "lisp_eid_table_map_dump_d6cf0c3d")
  2609  	api.RegisterMessage((*LispEidTableVniDetails)(nil), "lisp_eid_table_vni_details_64abc01e")
  2610  	api.RegisterMessage((*LispEidTableVniDump)(nil), "lisp_eid_table_vni_dump_51077d14")
  2611  	api.RegisterMessage((*LispEnableDisable)(nil), "lisp_enable_disable_c264d7bf")
  2612  	api.RegisterMessage((*LispEnableDisableReply)(nil), "lisp_enable_disable_reply_e8d4e804")
  2613  	api.RegisterMessage((*LispGetMapRequestItrRlocs)(nil), "lisp_get_map_request_itr_rlocs_51077d14")
  2614  	api.RegisterMessage((*LispGetMapRequestItrRlocsReply)(nil), "lisp_get_map_request_itr_rlocs_reply_76580f3a")
  2615  	api.RegisterMessage((*LispLocatorDetails)(nil), "lisp_locator_details_2c620ffe")
  2616  	api.RegisterMessage((*LispLocatorDump)(nil), "lisp_locator_dump_b954fad7")
  2617  	api.RegisterMessage((*LispLocatorSetDetails)(nil), "lisp_locator_set_details_5b33a105")
  2618  	api.RegisterMessage((*LispLocatorSetDump)(nil), "lisp_locator_set_dump_c2cb5922")
  2619  	api.RegisterMessage((*LispMapRegisterEnableDisable)(nil), "lisp_map_register_enable_disable_c264d7bf")
  2620  	api.RegisterMessage((*LispMapRegisterEnableDisableReply)(nil), "lisp_map_register_enable_disable_reply_e8d4e804")
  2621  	api.RegisterMessage((*LispMapRequestMode)(nil), "lisp_map_request_mode_f43c26ae")
  2622  	api.RegisterMessage((*LispMapRequestModeReply)(nil), "lisp_map_request_mode_reply_e8d4e804")
  2623  	api.RegisterMessage((*LispMapResolverDetails)(nil), "lisp_map_resolver_details_3e78fc57")
  2624  	api.RegisterMessage((*LispMapResolverDump)(nil), "lisp_map_resolver_dump_51077d14")
  2625  	api.RegisterMessage((*LispMapServerDetails)(nil), "lisp_map_server_details_3e78fc57")
  2626  	api.RegisterMessage((*LispMapServerDump)(nil), "lisp_map_server_dump_51077d14")
  2627  	api.RegisterMessage((*LispPitrSetLocatorSet)(nil), "lisp_pitr_set_locator_set_486e2b76")
  2628  	api.RegisterMessage((*LispPitrSetLocatorSetReply)(nil), "lisp_pitr_set_locator_set_reply_e8d4e804")
  2629  	api.RegisterMessage((*LispRlocProbeEnableDisable)(nil), "lisp_rloc_probe_enable_disable_c264d7bf")
  2630  	api.RegisterMessage((*LispRlocProbeEnableDisableReply)(nil), "lisp_rloc_probe_enable_disable_reply_e8d4e804")
  2631  	api.RegisterMessage((*LispUsePetr)(nil), "lisp_use_petr_d87dbad9")
  2632  	api.RegisterMessage((*LispUsePetrReply)(nil), "lisp_use_petr_reply_e8d4e804")
  2633  	api.RegisterMessage((*ShowLispMapRegisterState)(nil), "show_lisp_map_register_state_51077d14")
  2634  	api.RegisterMessage((*ShowLispMapRegisterStateReply)(nil), "show_lisp_map_register_state_reply_e33a377b")
  2635  	api.RegisterMessage((*ShowLispMapRequestMode)(nil), "show_lisp_map_request_mode_51077d14")
  2636  	api.RegisterMessage((*ShowLispMapRequestModeReply)(nil), "show_lisp_map_request_mode_reply_5b05038e")
  2637  	api.RegisterMessage((*ShowLispPitr)(nil), "show_lisp_pitr_51077d14")
  2638  	api.RegisterMessage((*ShowLispPitrReply)(nil), "show_lisp_pitr_reply_27aa69b1")
  2639  	api.RegisterMessage((*ShowLispRlocProbeState)(nil), "show_lisp_rloc_probe_state_51077d14")
  2640  	api.RegisterMessage((*ShowLispRlocProbeStateReply)(nil), "show_lisp_rloc_probe_state_reply_e33a377b")
  2641  	api.RegisterMessage((*ShowLispStatus)(nil), "show_lisp_status_51077d14")
  2642  	api.RegisterMessage((*ShowLispStatusReply)(nil), "show_lisp_status_reply_9e8f10c0")
  2643  	api.RegisterMessage((*ShowLispUsePetr)(nil), "show_lisp_use_petr_51077d14")
  2644  	api.RegisterMessage((*ShowLispUsePetrReply)(nil), "show_lisp_use_petr_reply_22b9a4b0")
  2645  }
  2646  
  2647  // Messages returns list of all messages in this module.
  2648  func AllMessages() []api.Message {
  2649  	return []api.Message{
  2650  		(*LispAddDelAdjacency)(nil),
  2651  		(*LispAddDelAdjacencyReply)(nil),
  2652  		(*LispAddDelLocalEid)(nil),
  2653  		(*LispAddDelLocalEidReply)(nil),
  2654  		(*LispAddDelLocator)(nil),
  2655  		(*LispAddDelLocatorReply)(nil),
  2656  		(*LispAddDelLocatorSet)(nil),
  2657  		(*LispAddDelLocatorSetReply)(nil),
  2658  		(*LispAddDelMapRequestItrRlocs)(nil),
  2659  		(*LispAddDelMapRequestItrRlocsReply)(nil),
  2660  		(*LispAddDelMapResolver)(nil),
  2661  		(*LispAddDelMapResolverReply)(nil),
  2662  		(*LispAddDelMapServer)(nil),
  2663  		(*LispAddDelMapServerReply)(nil),
  2664  		(*LispAddDelRemoteMapping)(nil),
  2665  		(*LispAddDelRemoteMappingReply)(nil),
  2666  		(*LispAdjacenciesGet)(nil),
  2667  		(*LispAdjacenciesGetReply)(nil),
  2668  		(*LispEidTableAddDelMap)(nil),
  2669  		(*LispEidTableAddDelMapReply)(nil),
  2670  		(*LispEidTableDetails)(nil),
  2671  		(*LispEidTableDump)(nil),
  2672  		(*LispEidTableMapDetails)(nil),
  2673  		(*LispEidTableMapDump)(nil),
  2674  		(*LispEidTableVniDetails)(nil),
  2675  		(*LispEidTableVniDump)(nil),
  2676  		(*LispEnableDisable)(nil),
  2677  		(*LispEnableDisableReply)(nil),
  2678  		(*LispGetMapRequestItrRlocs)(nil),
  2679  		(*LispGetMapRequestItrRlocsReply)(nil),
  2680  		(*LispLocatorDetails)(nil),
  2681  		(*LispLocatorDump)(nil),
  2682  		(*LispLocatorSetDetails)(nil),
  2683  		(*LispLocatorSetDump)(nil),
  2684  		(*LispMapRegisterEnableDisable)(nil),
  2685  		(*LispMapRegisterEnableDisableReply)(nil),
  2686  		(*LispMapRequestMode)(nil),
  2687  		(*LispMapRequestModeReply)(nil),
  2688  		(*LispMapResolverDetails)(nil),
  2689  		(*LispMapResolverDump)(nil),
  2690  		(*LispMapServerDetails)(nil),
  2691  		(*LispMapServerDump)(nil),
  2692  		(*LispPitrSetLocatorSet)(nil),
  2693  		(*LispPitrSetLocatorSetReply)(nil),
  2694  		(*LispRlocProbeEnableDisable)(nil),
  2695  		(*LispRlocProbeEnableDisableReply)(nil),
  2696  		(*LispUsePetr)(nil),
  2697  		(*LispUsePetrReply)(nil),
  2698  		(*ShowLispMapRegisterState)(nil),
  2699  		(*ShowLispMapRegisterStateReply)(nil),
  2700  		(*ShowLispMapRequestMode)(nil),
  2701  		(*ShowLispMapRequestModeReply)(nil),
  2702  		(*ShowLispPitr)(nil),
  2703  		(*ShowLispPitrReply)(nil),
  2704  		(*ShowLispRlocProbeState)(nil),
  2705  		(*ShowLispRlocProbeStateReply)(nil),
  2706  		(*ShowLispStatus)(nil),
  2707  		(*ShowLispStatusReply)(nil),
  2708  		(*ShowLispUsePetr)(nil),
  2709  		(*ShowLispUsePetrReply)(nil),
  2710  	}
  2711  }