github.com/networkservicemesh/govpp@v0.0.0-20240328101142-8a444680fbba/binapi/ipfix_export/ipfix_export.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: core/ipfix_export.api.json
     6  
     7  // Package ipfix_export contains generated bindings for API file ipfix_export.api.
     8  //
     9  // Contents:
    10  // - 19 messages
    11  package ipfix_export
    12  
    13  import (
    14  	ip_types "github.com/networkservicemesh/govpp/binapi/ip_types"
    15  	api "go.fd.io/govpp/api"
    16  	codec "go.fd.io/govpp/codec"
    17  )
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the GoVPP api package it is being compiled against.
    21  // A compilation error at this line likely means your copy of the
    22  // GoVPP api package needs to be updated.
    23  const _ = api.GoVppAPIPackageIsVersion2
    24  
    25  const (
    26  	APIFile    = "ipfix_export"
    27  	APIVersion = "2.0.3"
    28  	VersionCrc = 0x63e0810a
    29  )
    30  
    31  // Ipfix meter details in response to the get_meters command
    32  //   - name The name of the ipfix meter
    33  //
    34  // IpfixAllExporterDetails defines message 'ipfix_all_exporter_details'.
    35  type IpfixAllExporterDetails struct {
    36  	CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"`
    37  	CollectorPort    uint16           `binapi:"u16,name=collector_port" json:"collector_port,omitempty"`
    38  	SrcAddress       ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"`
    39  	VrfID            uint32           `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
    40  	PathMtu          uint32           `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
    41  	TemplateInterval uint32           `binapi:"u32,name=template_interval" json:"template_interval,omitempty"`
    42  	UDPChecksum      bool             `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"`
    43  }
    44  
    45  func (m *IpfixAllExporterDetails) Reset()               { *m = IpfixAllExporterDetails{} }
    46  func (*IpfixAllExporterDetails) GetMessageName() string { return "ipfix_all_exporter_details" }
    47  func (*IpfixAllExporterDetails) GetCrcString() string   { return "0dedbfe4" }
    48  func (*IpfixAllExporterDetails) GetMessageType() api.MessageType {
    49  	return api.ReplyMessage
    50  }
    51  
    52  func (m *IpfixAllExporterDetails) Size() (size int) {
    53  	if m == nil {
    54  		return 0
    55  	}
    56  	size += 1      // m.CollectorAddress.Af
    57  	size += 1 * 16 // m.CollectorAddress.Un
    58  	size += 2      // m.CollectorPort
    59  	size += 1      // m.SrcAddress.Af
    60  	size += 1 * 16 // m.SrcAddress.Un
    61  	size += 4      // m.VrfID
    62  	size += 4      // m.PathMtu
    63  	size += 4      // m.TemplateInterval
    64  	size += 1      // m.UDPChecksum
    65  	return size
    66  }
    67  func (m *IpfixAllExporterDetails) Marshal(b []byte) ([]byte, error) {
    68  	if b == nil {
    69  		b = make([]byte, m.Size())
    70  	}
    71  	buf := codec.NewBuffer(b)
    72  	buf.EncodeUint8(uint8(m.CollectorAddress.Af))
    73  	buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16)
    74  	buf.EncodeUint16(m.CollectorPort)
    75  	buf.EncodeUint8(uint8(m.SrcAddress.Af))
    76  	buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
    77  	buf.EncodeUint32(m.VrfID)
    78  	buf.EncodeUint32(m.PathMtu)
    79  	buf.EncodeUint32(m.TemplateInterval)
    80  	buf.EncodeBool(m.UDPChecksum)
    81  	return buf.Bytes(), nil
    82  }
    83  func (m *IpfixAllExporterDetails) Unmarshal(b []byte) error {
    84  	buf := codec.NewBuffer(b)
    85  	m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
    86  	copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
    87  	m.CollectorPort = buf.DecodeUint16()
    88  	m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
    89  	copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
    90  	m.VrfID = buf.DecodeUint32()
    91  	m.PathMtu = buf.DecodeUint32()
    92  	m.TemplateInterval = buf.DecodeUint32()
    93  	m.UDPChecksum = buf.DecodeBool()
    94  	return nil
    95  }
    96  
    97  // IpfixAllExporterGet defines message 'ipfix_all_exporter_get'.
    98  type IpfixAllExporterGet struct {
    99  	Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
   100  }
   101  
   102  func (m *IpfixAllExporterGet) Reset()               { *m = IpfixAllExporterGet{} }
   103  func (*IpfixAllExporterGet) GetMessageName() string { return "ipfix_all_exporter_get" }
   104  func (*IpfixAllExporterGet) GetCrcString() string   { return "f75ba505" }
   105  func (*IpfixAllExporterGet) GetMessageType() api.MessageType {
   106  	return api.RequestMessage
   107  }
   108  
   109  func (m *IpfixAllExporterGet) Size() (size int) {
   110  	if m == nil {
   111  		return 0
   112  	}
   113  	size += 4 // m.Cursor
   114  	return size
   115  }
   116  func (m *IpfixAllExporterGet) Marshal(b []byte) ([]byte, error) {
   117  	if b == nil {
   118  		b = make([]byte, m.Size())
   119  	}
   120  	buf := codec.NewBuffer(b)
   121  	buf.EncodeUint32(m.Cursor)
   122  	return buf.Bytes(), nil
   123  }
   124  func (m *IpfixAllExporterGet) Unmarshal(b []byte) error {
   125  	buf := codec.NewBuffer(b)
   126  	m.Cursor = buf.DecodeUint32()
   127  	return nil
   128  }
   129  
   130  // IpfixAllExporterGetReply defines message 'ipfix_all_exporter_get_reply'.
   131  type IpfixAllExporterGetReply struct {
   132  	Retval int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
   133  	Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
   134  }
   135  
   136  func (m *IpfixAllExporterGetReply) Reset()               { *m = IpfixAllExporterGetReply{} }
   137  func (*IpfixAllExporterGetReply) GetMessageName() string { return "ipfix_all_exporter_get_reply" }
   138  func (*IpfixAllExporterGetReply) GetCrcString() string   { return "53b48f5d" }
   139  func (*IpfixAllExporterGetReply) GetMessageType() api.MessageType {
   140  	return api.ReplyMessage
   141  }
   142  
   143  func (m *IpfixAllExporterGetReply) Size() (size int) {
   144  	if m == nil {
   145  		return 0
   146  	}
   147  	size += 4 // m.Retval
   148  	size += 4 // m.Cursor
   149  	return size
   150  }
   151  func (m *IpfixAllExporterGetReply) Marshal(b []byte) ([]byte, error) {
   152  	if b == nil {
   153  		b = make([]byte, m.Size())
   154  	}
   155  	buf := codec.NewBuffer(b)
   156  	buf.EncodeInt32(m.Retval)
   157  	buf.EncodeUint32(m.Cursor)
   158  	return buf.Bytes(), nil
   159  }
   160  func (m *IpfixAllExporterGetReply) Unmarshal(b []byte) error {
   161  	buf := codec.NewBuffer(b)
   162  	m.Retval = buf.DecodeInt32()
   163  	m.Cursor = buf.DecodeUint32()
   164  	return nil
   165  }
   166  
   167  // Reply to IPFIX classify stream dump request
   168  //   - domain_id - domain ID reported in IPFIX messages for classify stream
   169  //   - src_port - source port of UDP session for classify stream
   170  //
   171  // IpfixClassifyStreamDetails defines message 'ipfix_classify_stream_details'.
   172  type IpfixClassifyStreamDetails struct {
   173  	DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"`
   174  	SrcPort  uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"`
   175  }
   176  
   177  func (m *IpfixClassifyStreamDetails) Reset()               { *m = IpfixClassifyStreamDetails{} }
   178  func (*IpfixClassifyStreamDetails) GetMessageName() string { return "ipfix_classify_stream_details" }
   179  func (*IpfixClassifyStreamDetails) GetCrcString() string   { return "2903539d" }
   180  func (*IpfixClassifyStreamDetails) GetMessageType() api.MessageType {
   181  	return api.ReplyMessage
   182  }
   183  
   184  func (m *IpfixClassifyStreamDetails) Size() (size int) {
   185  	if m == nil {
   186  		return 0
   187  	}
   188  	size += 4 // m.DomainID
   189  	size += 2 // m.SrcPort
   190  	return size
   191  }
   192  func (m *IpfixClassifyStreamDetails) Marshal(b []byte) ([]byte, error) {
   193  	if b == nil {
   194  		b = make([]byte, m.Size())
   195  	}
   196  	buf := codec.NewBuffer(b)
   197  	buf.EncodeUint32(m.DomainID)
   198  	buf.EncodeUint16(m.SrcPort)
   199  	return buf.Bytes(), nil
   200  }
   201  func (m *IpfixClassifyStreamDetails) Unmarshal(b []byte) error {
   202  	buf := codec.NewBuffer(b)
   203  	m.DomainID = buf.DecodeUint32()
   204  	m.SrcPort = buf.DecodeUint16()
   205  	return nil
   206  }
   207  
   208  // IPFIX classify stream dump request
   209  // IpfixClassifyStreamDump defines message 'ipfix_classify_stream_dump'.
   210  type IpfixClassifyStreamDump struct{}
   211  
   212  func (m *IpfixClassifyStreamDump) Reset()               { *m = IpfixClassifyStreamDump{} }
   213  func (*IpfixClassifyStreamDump) GetMessageName() string { return "ipfix_classify_stream_dump" }
   214  func (*IpfixClassifyStreamDump) GetCrcString() string   { return "51077d14" }
   215  func (*IpfixClassifyStreamDump) GetMessageType() api.MessageType {
   216  	return api.RequestMessage
   217  }
   218  
   219  func (m *IpfixClassifyStreamDump) Size() (size int) {
   220  	if m == nil {
   221  		return 0
   222  	}
   223  	return size
   224  }
   225  func (m *IpfixClassifyStreamDump) Marshal(b []byte) ([]byte, error) {
   226  	if b == nil {
   227  		b = make([]byte, m.Size())
   228  	}
   229  	buf := codec.NewBuffer(b)
   230  	return buf.Bytes(), nil
   231  }
   232  func (m *IpfixClassifyStreamDump) Unmarshal(b []byte) error {
   233  	return nil
   234  }
   235  
   236  // IPFIX add or delete classifier table request
   237  //   - table_id - classifier table ID
   238  //   - ip_version - version of IP used in the classifier table
   239  //   - transport_protocol - transport protocol used in the classifier table or 255 for unspecified
   240  //
   241  // IpfixClassifyTableAddDel defines message 'ipfix_classify_table_add_del'.
   242  type IpfixClassifyTableAddDel struct {
   243  	TableID           uint32                 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
   244  	IPVersion         ip_types.AddressFamily `binapi:"address_family,name=ip_version" json:"ip_version,omitempty"`
   245  	TransportProtocol ip_types.IPProto       `binapi:"ip_proto,name=transport_protocol" json:"transport_protocol,omitempty"`
   246  	IsAdd             bool                   `binapi:"bool,name=is_add" json:"is_add,omitempty"`
   247  }
   248  
   249  func (m *IpfixClassifyTableAddDel) Reset()               { *m = IpfixClassifyTableAddDel{} }
   250  func (*IpfixClassifyTableAddDel) GetMessageName() string { return "ipfix_classify_table_add_del" }
   251  func (*IpfixClassifyTableAddDel) GetCrcString() string   { return "3e449bb9" }
   252  func (*IpfixClassifyTableAddDel) GetMessageType() api.MessageType {
   253  	return api.RequestMessage
   254  }
   255  
   256  func (m *IpfixClassifyTableAddDel) Size() (size int) {
   257  	if m == nil {
   258  		return 0
   259  	}
   260  	size += 4 // m.TableID
   261  	size += 1 // m.IPVersion
   262  	size += 1 // m.TransportProtocol
   263  	size += 1 // m.IsAdd
   264  	return size
   265  }
   266  func (m *IpfixClassifyTableAddDel) Marshal(b []byte) ([]byte, error) {
   267  	if b == nil {
   268  		b = make([]byte, m.Size())
   269  	}
   270  	buf := codec.NewBuffer(b)
   271  	buf.EncodeUint32(m.TableID)
   272  	buf.EncodeUint8(uint8(m.IPVersion))
   273  	buf.EncodeUint8(uint8(m.TransportProtocol))
   274  	buf.EncodeBool(m.IsAdd)
   275  	return buf.Bytes(), nil
   276  }
   277  func (m *IpfixClassifyTableAddDel) Unmarshal(b []byte) error {
   278  	buf := codec.NewBuffer(b)
   279  	m.TableID = buf.DecodeUint32()
   280  	m.IPVersion = ip_types.AddressFamily(buf.DecodeUint8())
   281  	m.TransportProtocol = ip_types.IPProto(buf.DecodeUint8())
   282  	m.IsAdd = buf.DecodeBool()
   283  	return nil
   284  }
   285  
   286  // IpfixClassifyTableAddDelReply defines message 'ipfix_classify_table_add_del_reply'.
   287  type IpfixClassifyTableAddDelReply struct {
   288  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   289  }
   290  
   291  func (m *IpfixClassifyTableAddDelReply) Reset() { *m = IpfixClassifyTableAddDelReply{} }
   292  func (*IpfixClassifyTableAddDelReply) GetMessageName() string {
   293  	return "ipfix_classify_table_add_del_reply"
   294  }
   295  func (*IpfixClassifyTableAddDelReply) GetCrcString() string { return "e8d4e804" }
   296  func (*IpfixClassifyTableAddDelReply) GetMessageType() api.MessageType {
   297  	return api.ReplyMessage
   298  }
   299  
   300  func (m *IpfixClassifyTableAddDelReply) Size() (size int) {
   301  	if m == nil {
   302  		return 0
   303  	}
   304  	size += 4 // m.Retval
   305  	return size
   306  }
   307  func (m *IpfixClassifyTableAddDelReply) Marshal(b []byte) ([]byte, error) {
   308  	if b == nil {
   309  		b = make([]byte, m.Size())
   310  	}
   311  	buf := codec.NewBuffer(b)
   312  	buf.EncodeInt32(m.Retval)
   313  	return buf.Bytes(), nil
   314  }
   315  func (m *IpfixClassifyTableAddDelReply) Unmarshal(b []byte) error {
   316  	buf := codec.NewBuffer(b)
   317  	m.Retval = buf.DecodeInt32()
   318  	return nil
   319  }
   320  
   321  // Reply to IPFIX classify tables dump request
   322  //   - table_id - classifier table ID
   323  //   - ip_version - version of IP used in the classifier table
   324  //   - transport_protocol - transport protocol used in the classifier table or 255 for unspecified
   325  //
   326  // IpfixClassifyTableDetails defines message 'ipfix_classify_table_details'.
   327  type IpfixClassifyTableDetails struct {
   328  	TableID           uint32                 `binapi:"u32,name=table_id" json:"table_id,omitempty"`
   329  	IPVersion         ip_types.AddressFamily `binapi:"address_family,name=ip_version" json:"ip_version,omitempty"`
   330  	TransportProtocol ip_types.IPProto       `binapi:"ip_proto,name=transport_protocol" json:"transport_protocol,omitempty"`
   331  }
   332  
   333  func (m *IpfixClassifyTableDetails) Reset()               { *m = IpfixClassifyTableDetails{} }
   334  func (*IpfixClassifyTableDetails) GetMessageName() string { return "ipfix_classify_table_details" }
   335  func (*IpfixClassifyTableDetails) GetCrcString() string   { return "1af8c28c" }
   336  func (*IpfixClassifyTableDetails) GetMessageType() api.MessageType {
   337  	return api.ReplyMessage
   338  }
   339  
   340  func (m *IpfixClassifyTableDetails) Size() (size int) {
   341  	if m == nil {
   342  		return 0
   343  	}
   344  	size += 4 // m.TableID
   345  	size += 1 // m.IPVersion
   346  	size += 1 // m.TransportProtocol
   347  	return size
   348  }
   349  func (m *IpfixClassifyTableDetails) Marshal(b []byte) ([]byte, error) {
   350  	if b == nil {
   351  		b = make([]byte, m.Size())
   352  	}
   353  	buf := codec.NewBuffer(b)
   354  	buf.EncodeUint32(m.TableID)
   355  	buf.EncodeUint8(uint8(m.IPVersion))
   356  	buf.EncodeUint8(uint8(m.TransportProtocol))
   357  	return buf.Bytes(), nil
   358  }
   359  func (m *IpfixClassifyTableDetails) Unmarshal(b []byte) error {
   360  	buf := codec.NewBuffer(b)
   361  	m.TableID = buf.DecodeUint32()
   362  	m.IPVersion = ip_types.AddressFamily(buf.DecodeUint8())
   363  	m.TransportProtocol = ip_types.IPProto(buf.DecodeUint8())
   364  	return nil
   365  }
   366  
   367  // IPFIX classify tables dump request
   368  // IpfixClassifyTableDump defines message 'ipfix_classify_table_dump'.
   369  type IpfixClassifyTableDump struct{}
   370  
   371  func (m *IpfixClassifyTableDump) Reset()               { *m = IpfixClassifyTableDump{} }
   372  func (*IpfixClassifyTableDump) GetMessageName() string { return "ipfix_classify_table_dump" }
   373  func (*IpfixClassifyTableDump) GetCrcString() string   { return "51077d14" }
   374  func (*IpfixClassifyTableDump) GetMessageType() api.MessageType {
   375  	return api.RequestMessage
   376  }
   377  
   378  func (m *IpfixClassifyTableDump) Size() (size int) {
   379  	if m == nil {
   380  		return 0
   381  	}
   382  	return size
   383  }
   384  func (m *IpfixClassifyTableDump) Marshal(b []byte) ([]byte, error) {
   385  	if b == nil {
   386  		b = make([]byte, m.Size())
   387  	}
   388  	buf := codec.NewBuffer(b)
   389  	return buf.Bytes(), nil
   390  }
   391  func (m *IpfixClassifyTableDump) Unmarshal(b []byte) error {
   392  	return nil
   393  }
   394  
   395  // Configure IPFIX exporter within the exporting process.
   396  //
   397  //	The exporting process can contain multiple independent exporters,
   398  //	each of which have their own state.  The collector_address is the key
   399  //	field that identifies a unique exporter. The already existing API
   400  //	'set_ipfix_exporter' is used to modify a single exporter (which will
   401  //	always have stat index 0).  If more than one exporter is required then
   402  //	they can be created and deleted using this API.
   403  //	- is_create - True for create, False for delete
   404  //	- collector_address - address of IPFIX collector
   405  //	- collector_port - port of IPFIX collector
   406  //	- src_address - address of IPFIX exporter
   407  //	- vrf_id - VRF / fib table ID
   408  //	- path_mtu - Path MTU between exporter and collector
   409  //	- template_interval - number of seconds after which to resend template
   410  //	- udp_checksum - UDP checksum calculation enable flag
   411  //
   412  // IpfixExporterCreateDelete defines message 'ipfix_exporter_create_delete'.
   413  type IpfixExporterCreateDelete struct {
   414  	IsCreate         bool             `binapi:"bool,name=is_create" json:"is_create,omitempty"`
   415  	CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"`
   416  	CollectorPort    uint16           `binapi:"u16,name=collector_port" json:"collector_port,omitempty"`
   417  	SrcAddress       ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"`
   418  	VrfID            uint32           `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   419  	PathMtu          uint32           `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
   420  	TemplateInterval uint32           `binapi:"u32,name=template_interval" json:"template_interval,omitempty"`
   421  	UDPChecksum      bool             `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"`
   422  }
   423  
   424  func (m *IpfixExporterCreateDelete) Reset()               { *m = IpfixExporterCreateDelete{} }
   425  func (*IpfixExporterCreateDelete) GetMessageName() string { return "ipfix_exporter_create_delete" }
   426  func (*IpfixExporterCreateDelete) GetCrcString() string   { return "0753a768" }
   427  func (*IpfixExporterCreateDelete) GetMessageType() api.MessageType {
   428  	return api.RequestMessage
   429  }
   430  
   431  func (m *IpfixExporterCreateDelete) Size() (size int) {
   432  	if m == nil {
   433  		return 0
   434  	}
   435  	size += 1      // m.IsCreate
   436  	size += 1      // m.CollectorAddress.Af
   437  	size += 1 * 16 // m.CollectorAddress.Un
   438  	size += 2      // m.CollectorPort
   439  	size += 1      // m.SrcAddress.Af
   440  	size += 1 * 16 // m.SrcAddress.Un
   441  	size += 4      // m.VrfID
   442  	size += 4      // m.PathMtu
   443  	size += 4      // m.TemplateInterval
   444  	size += 1      // m.UDPChecksum
   445  	return size
   446  }
   447  func (m *IpfixExporterCreateDelete) Marshal(b []byte) ([]byte, error) {
   448  	if b == nil {
   449  		b = make([]byte, m.Size())
   450  	}
   451  	buf := codec.NewBuffer(b)
   452  	buf.EncodeBool(m.IsCreate)
   453  	buf.EncodeUint8(uint8(m.CollectorAddress.Af))
   454  	buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16)
   455  	buf.EncodeUint16(m.CollectorPort)
   456  	buf.EncodeUint8(uint8(m.SrcAddress.Af))
   457  	buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
   458  	buf.EncodeUint32(m.VrfID)
   459  	buf.EncodeUint32(m.PathMtu)
   460  	buf.EncodeUint32(m.TemplateInterval)
   461  	buf.EncodeBool(m.UDPChecksum)
   462  	return buf.Bytes(), nil
   463  }
   464  func (m *IpfixExporterCreateDelete) Unmarshal(b []byte) error {
   465  	buf := codec.NewBuffer(b)
   466  	m.IsCreate = buf.DecodeBool()
   467  	m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   468  	copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   469  	m.CollectorPort = buf.DecodeUint16()
   470  	m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   471  	copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   472  	m.VrfID = buf.DecodeUint32()
   473  	m.PathMtu = buf.DecodeUint32()
   474  	m.TemplateInterval = buf.DecodeUint32()
   475  	m.UDPChecksum = buf.DecodeBool()
   476  	return nil
   477  }
   478  
   479  // IpfixExporterCreateDeleteReply defines message 'ipfix_exporter_create_delete_reply'.
   480  type IpfixExporterCreateDeleteReply struct {
   481  	Retval    int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
   482  	StatIndex uint32 `binapi:"u32,name=stat_index" json:"stat_index,omitempty"`
   483  }
   484  
   485  func (m *IpfixExporterCreateDeleteReply) Reset() { *m = IpfixExporterCreateDeleteReply{} }
   486  func (*IpfixExporterCreateDeleteReply) GetMessageName() string {
   487  	return "ipfix_exporter_create_delete_reply"
   488  }
   489  func (*IpfixExporterCreateDeleteReply) GetCrcString() string { return "9ffac24b" }
   490  func (*IpfixExporterCreateDeleteReply) GetMessageType() api.MessageType {
   491  	return api.ReplyMessage
   492  }
   493  
   494  func (m *IpfixExporterCreateDeleteReply) Size() (size int) {
   495  	if m == nil {
   496  		return 0
   497  	}
   498  	size += 4 // m.Retval
   499  	size += 4 // m.StatIndex
   500  	return size
   501  }
   502  func (m *IpfixExporterCreateDeleteReply) Marshal(b []byte) ([]byte, error) {
   503  	if b == nil {
   504  		b = make([]byte, m.Size())
   505  	}
   506  	buf := codec.NewBuffer(b)
   507  	buf.EncodeInt32(m.Retval)
   508  	buf.EncodeUint32(m.StatIndex)
   509  	return buf.Bytes(), nil
   510  }
   511  func (m *IpfixExporterCreateDeleteReply) Unmarshal(b []byte) error {
   512  	buf := codec.NewBuffer(b)
   513  	m.Retval = buf.DecodeInt32()
   514  	m.StatIndex = buf.DecodeUint32()
   515  	return nil
   516  }
   517  
   518  // Reply to IPFIX exporter dump request
   519  //   - collector_address - address of IPFIX collector
   520  //   - collector_port - port of IPFIX collector
   521  //   - src_address - address of IPFIX exporter
   522  //   - fib_index - fib table index
   523  //   - path_mtu - Path MTU between exporter and collector
   524  //   - template_interval - number of seconds after which to resend template
   525  //   - udp_checksum - UDP checksum calculation enable flag
   526  //
   527  // IpfixExporterDetails defines message 'ipfix_exporter_details'.
   528  type IpfixExporterDetails struct {
   529  	CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"`
   530  	CollectorPort    uint16           `binapi:"u16,name=collector_port" json:"collector_port,omitempty"`
   531  	SrcAddress       ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"`
   532  	VrfID            uint32           `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   533  	PathMtu          uint32           `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
   534  	TemplateInterval uint32           `binapi:"u32,name=template_interval" json:"template_interval,omitempty"`
   535  	UDPChecksum      bool             `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"`
   536  }
   537  
   538  func (m *IpfixExporterDetails) Reset()               { *m = IpfixExporterDetails{} }
   539  func (*IpfixExporterDetails) GetMessageName() string { return "ipfix_exporter_details" }
   540  func (*IpfixExporterDetails) GetCrcString() string   { return "0dedbfe4" }
   541  func (*IpfixExporterDetails) GetMessageType() api.MessageType {
   542  	return api.ReplyMessage
   543  }
   544  
   545  func (m *IpfixExporterDetails) Size() (size int) {
   546  	if m == nil {
   547  		return 0
   548  	}
   549  	size += 1      // m.CollectorAddress.Af
   550  	size += 1 * 16 // m.CollectorAddress.Un
   551  	size += 2      // m.CollectorPort
   552  	size += 1      // m.SrcAddress.Af
   553  	size += 1 * 16 // m.SrcAddress.Un
   554  	size += 4      // m.VrfID
   555  	size += 4      // m.PathMtu
   556  	size += 4      // m.TemplateInterval
   557  	size += 1      // m.UDPChecksum
   558  	return size
   559  }
   560  func (m *IpfixExporterDetails) Marshal(b []byte) ([]byte, error) {
   561  	if b == nil {
   562  		b = make([]byte, m.Size())
   563  	}
   564  	buf := codec.NewBuffer(b)
   565  	buf.EncodeUint8(uint8(m.CollectorAddress.Af))
   566  	buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16)
   567  	buf.EncodeUint16(m.CollectorPort)
   568  	buf.EncodeUint8(uint8(m.SrcAddress.Af))
   569  	buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
   570  	buf.EncodeUint32(m.VrfID)
   571  	buf.EncodeUint32(m.PathMtu)
   572  	buf.EncodeUint32(m.TemplateInterval)
   573  	buf.EncodeBool(m.UDPChecksum)
   574  	return buf.Bytes(), nil
   575  }
   576  func (m *IpfixExporterDetails) Unmarshal(b []byte) error {
   577  	buf := codec.NewBuffer(b)
   578  	m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   579  	copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   580  	m.CollectorPort = buf.DecodeUint16()
   581  	m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   582  	copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   583  	m.VrfID = buf.DecodeUint32()
   584  	m.PathMtu = buf.DecodeUint32()
   585  	m.TemplateInterval = buf.DecodeUint32()
   586  	m.UDPChecksum = buf.DecodeBool()
   587  	return nil
   588  }
   589  
   590  // IPFIX exporter dump request
   591  // IpfixExporterDump defines message 'ipfix_exporter_dump'.
   592  type IpfixExporterDump struct{}
   593  
   594  func (m *IpfixExporterDump) Reset()               { *m = IpfixExporterDump{} }
   595  func (*IpfixExporterDump) GetMessageName() string { return "ipfix_exporter_dump" }
   596  func (*IpfixExporterDump) GetCrcString() string   { return "51077d14" }
   597  func (*IpfixExporterDump) GetMessageType() api.MessageType {
   598  	return api.RequestMessage
   599  }
   600  
   601  func (m *IpfixExporterDump) Size() (size int) {
   602  	if m == nil {
   603  		return 0
   604  	}
   605  	return size
   606  }
   607  func (m *IpfixExporterDump) Marshal(b []byte) ([]byte, error) {
   608  	if b == nil {
   609  		b = make([]byte, m.Size())
   610  	}
   611  	buf := codec.NewBuffer(b)
   612  	return buf.Bytes(), nil
   613  }
   614  func (m *IpfixExporterDump) Unmarshal(b []byte) error {
   615  	return nil
   616  }
   617  
   618  // IpfixFlush defines message 'ipfix_flush'.
   619  type IpfixFlush struct{}
   620  
   621  func (m *IpfixFlush) Reset()               { *m = IpfixFlush{} }
   622  func (*IpfixFlush) GetMessageName() string { return "ipfix_flush" }
   623  func (*IpfixFlush) GetCrcString() string   { return "51077d14" }
   624  func (*IpfixFlush) GetMessageType() api.MessageType {
   625  	return api.RequestMessage
   626  }
   627  
   628  func (m *IpfixFlush) Size() (size int) {
   629  	if m == nil {
   630  		return 0
   631  	}
   632  	return size
   633  }
   634  func (m *IpfixFlush) Marshal(b []byte) ([]byte, error) {
   635  	if b == nil {
   636  		b = make([]byte, m.Size())
   637  	}
   638  	buf := codec.NewBuffer(b)
   639  	return buf.Bytes(), nil
   640  }
   641  func (m *IpfixFlush) Unmarshal(b []byte) error {
   642  	return nil
   643  }
   644  
   645  // IpfixFlushReply defines message 'ipfix_flush_reply'.
   646  type IpfixFlushReply struct {
   647  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   648  }
   649  
   650  func (m *IpfixFlushReply) Reset()               { *m = IpfixFlushReply{} }
   651  func (*IpfixFlushReply) GetMessageName() string { return "ipfix_flush_reply" }
   652  func (*IpfixFlushReply) GetCrcString() string   { return "e8d4e804" }
   653  func (*IpfixFlushReply) GetMessageType() api.MessageType {
   654  	return api.ReplyMessage
   655  }
   656  
   657  func (m *IpfixFlushReply) Size() (size int) {
   658  	if m == nil {
   659  		return 0
   660  	}
   661  	size += 4 // m.Retval
   662  	return size
   663  }
   664  func (m *IpfixFlushReply) Marshal(b []byte) ([]byte, error) {
   665  	if b == nil {
   666  		b = make([]byte, m.Size())
   667  	}
   668  	buf := codec.NewBuffer(b)
   669  	buf.EncodeInt32(m.Retval)
   670  	return buf.Bytes(), nil
   671  }
   672  func (m *IpfixFlushReply) Unmarshal(b []byte) error {
   673  	buf := codec.NewBuffer(b)
   674  	m.Retval = buf.DecodeInt32()
   675  	return nil
   676  }
   677  
   678  // IPFIX classify stream configure request
   679  //   - domain_id - domain ID reported in IPFIX messages for classify stream
   680  //   - src_port - source port of UDP session for classify stream
   681  //
   682  // SetIpfixClassifyStream defines message 'set_ipfix_classify_stream'.
   683  type SetIpfixClassifyStream struct {
   684  	DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"`
   685  	SrcPort  uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"`
   686  }
   687  
   688  func (m *SetIpfixClassifyStream) Reset()               { *m = SetIpfixClassifyStream{} }
   689  func (*SetIpfixClassifyStream) GetMessageName() string { return "set_ipfix_classify_stream" }
   690  func (*SetIpfixClassifyStream) GetCrcString() string   { return "c9cbe053" }
   691  func (*SetIpfixClassifyStream) GetMessageType() api.MessageType {
   692  	return api.RequestMessage
   693  }
   694  
   695  func (m *SetIpfixClassifyStream) Size() (size int) {
   696  	if m == nil {
   697  		return 0
   698  	}
   699  	size += 4 // m.DomainID
   700  	size += 2 // m.SrcPort
   701  	return size
   702  }
   703  func (m *SetIpfixClassifyStream) Marshal(b []byte) ([]byte, error) {
   704  	if b == nil {
   705  		b = make([]byte, m.Size())
   706  	}
   707  	buf := codec.NewBuffer(b)
   708  	buf.EncodeUint32(m.DomainID)
   709  	buf.EncodeUint16(m.SrcPort)
   710  	return buf.Bytes(), nil
   711  }
   712  func (m *SetIpfixClassifyStream) Unmarshal(b []byte) error {
   713  	buf := codec.NewBuffer(b)
   714  	m.DomainID = buf.DecodeUint32()
   715  	m.SrcPort = buf.DecodeUint16()
   716  	return nil
   717  }
   718  
   719  // SetIpfixClassifyStreamReply defines message 'set_ipfix_classify_stream_reply'.
   720  type SetIpfixClassifyStreamReply struct {
   721  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   722  }
   723  
   724  func (m *SetIpfixClassifyStreamReply) Reset()               { *m = SetIpfixClassifyStreamReply{} }
   725  func (*SetIpfixClassifyStreamReply) GetMessageName() string { return "set_ipfix_classify_stream_reply" }
   726  func (*SetIpfixClassifyStreamReply) GetCrcString() string   { return "e8d4e804" }
   727  func (*SetIpfixClassifyStreamReply) GetMessageType() api.MessageType {
   728  	return api.ReplyMessage
   729  }
   730  
   731  func (m *SetIpfixClassifyStreamReply) Size() (size int) {
   732  	if m == nil {
   733  		return 0
   734  	}
   735  	size += 4 // m.Retval
   736  	return size
   737  }
   738  func (m *SetIpfixClassifyStreamReply) Marshal(b []byte) ([]byte, error) {
   739  	if b == nil {
   740  		b = make([]byte, m.Size())
   741  	}
   742  	buf := codec.NewBuffer(b)
   743  	buf.EncodeInt32(m.Retval)
   744  	return buf.Bytes(), nil
   745  }
   746  func (m *SetIpfixClassifyStreamReply) Unmarshal(b []byte) error {
   747  	buf := codec.NewBuffer(b)
   748  	m.Retval = buf.DecodeInt32()
   749  	return nil
   750  }
   751  
   752  // Configure IPFIX exporter process request
   753  //   - collector_address - address of IPFIX collector
   754  //   - collector_port - port of IPFIX collector
   755  //   - src_address - address of IPFIX exporter
   756  //   - vrf_id - VRF / fib table ID
   757  //   - path_mtu - Path MTU between exporter and collector
   758  //   - template_interval - number of seconds after which to resend template
   759  //   - udp_checksum - UDP checksum calculation enable flag
   760  //
   761  // SetIpfixExporter defines message 'set_ipfix_exporter'.
   762  type SetIpfixExporter struct {
   763  	CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"`
   764  	CollectorPort    uint16           `binapi:"u16,name=collector_port" json:"collector_port,omitempty"`
   765  	SrcAddress       ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"`
   766  	VrfID            uint32           `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   767  	PathMtu          uint32           `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
   768  	TemplateInterval uint32           `binapi:"u32,name=template_interval" json:"template_interval,omitempty"`
   769  	UDPChecksum      bool             `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"`
   770  }
   771  
   772  func (m *SetIpfixExporter) Reset()               { *m = SetIpfixExporter{} }
   773  func (*SetIpfixExporter) GetMessageName() string { return "set_ipfix_exporter" }
   774  func (*SetIpfixExporter) GetCrcString() string   { return "5530c8a0" }
   775  func (*SetIpfixExporter) GetMessageType() api.MessageType {
   776  	return api.RequestMessage
   777  }
   778  
   779  func (m *SetIpfixExporter) Size() (size int) {
   780  	if m == nil {
   781  		return 0
   782  	}
   783  	size += 1      // m.CollectorAddress.Af
   784  	size += 1 * 16 // m.CollectorAddress.Un
   785  	size += 2      // m.CollectorPort
   786  	size += 1      // m.SrcAddress.Af
   787  	size += 1 * 16 // m.SrcAddress.Un
   788  	size += 4      // m.VrfID
   789  	size += 4      // m.PathMtu
   790  	size += 4      // m.TemplateInterval
   791  	size += 1      // m.UDPChecksum
   792  	return size
   793  }
   794  func (m *SetIpfixExporter) Marshal(b []byte) ([]byte, error) {
   795  	if b == nil {
   796  		b = make([]byte, m.Size())
   797  	}
   798  	buf := codec.NewBuffer(b)
   799  	buf.EncodeUint8(uint8(m.CollectorAddress.Af))
   800  	buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16)
   801  	buf.EncodeUint16(m.CollectorPort)
   802  	buf.EncodeUint8(uint8(m.SrcAddress.Af))
   803  	buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
   804  	buf.EncodeUint32(m.VrfID)
   805  	buf.EncodeUint32(m.PathMtu)
   806  	buf.EncodeUint32(m.TemplateInterval)
   807  	buf.EncodeBool(m.UDPChecksum)
   808  	return buf.Bytes(), nil
   809  }
   810  func (m *SetIpfixExporter) Unmarshal(b []byte) error {
   811  	buf := codec.NewBuffer(b)
   812  	m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   813  	copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   814  	m.CollectorPort = buf.DecodeUint16()
   815  	m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
   816  	copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
   817  	m.VrfID = buf.DecodeUint32()
   818  	m.PathMtu = buf.DecodeUint32()
   819  	m.TemplateInterval = buf.DecodeUint32()
   820  	m.UDPChecksum = buf.DecodeBool()
   821  	return nil
   822  }
   823  
   824  // SetIpfixExporterReply defines message 'set_ipfix_exporter_reply'.
   825  type SetIpfixExporterReply struct {
   826  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   827  }
   828  
   829  func (m *SetIpfixExporterReply) Reset()               { *m = SetIpfixExporterReply{} }
   830  func (*SetIpfixExporterReply) GetMessageName() string { return "set_ipfix_exporter_reply" }
   831  func (*SetIpfixExporterReply) GetCrcString() string   { return "e8d4e804" }
   832  func (*SetIpfixExporterReply) GetMessageType() api.MessageType {
   833  	return api.ReplyMessage
   834  }
   835  
   836  func (m *SetIpfixExporterReply) Size() (size int) {
   837  	if m == nil {
   838  		return 0
   839  	}
   840  	size += 4 // m.Retval
   841  	return size
   842  }
   843  func (m *SetIpfixExporterReply) Marshal(b []byte) ([]byte, error) {
   844  	if b == nil {
   845  		b = make([]byte, m.Size())
   846  	}
   847  	buf := codec.NewBuffer(b)
   848  	buf.EncodeInt32(m.Retval)
   849  	return buf.Bytes(), nil
   850  }
   851  func (m *SetIpfixExporterReply) Unmarshal(b []byte) error {
   852  	buf := codec.NewBuffer(b)
   853  	m.Retval = buf.DecodeInt32()
   854  	return nil
   855  }
   856  
   857  func init() { file_ipfix_export_binapi_init() }
   858  func file_ipfix_export_binapi_init() {
   859  	api.RegisterMessage((*IpfixAllExporterDetails)(nil), "ipfix_all_exporter_details_0dedbfe4")
   860  	api.RegisterMessage((*IpfixAllExporterGet)(nil), "ipfix_all_exporter_get_f75ba505")
   861  	api.RegisterMessage((*IpfixAllExporterGetReply)(nil), "ipfix_all_exporter_get_reply_53b48f5d")
   862  	api.RegisterMessage((*IpfixClassifyStreamDetails)(nil), "ipfix_classify_stream_details_2903539d")
   863  	api.RegisterMessage((*IpfixClassifyStreamDump)(nil), "ipfix_classify_stream_dump_51077d14")
   864  	api.RegisterMessage((*IpfixClassifyTableAddDel)(nil), "ipfix_classify_table_add_del_3e449bb9")
   865  	api.RegisterMessage((*IpfixClassifyTableAddDelReply)(nil), "ipfix_classify_table_add_del_reply_e8d4e804")
   866  	api.RegisterMessage((*IpfixClassifyTableDetails)(nil), "ipfix_classify_table_details_1af8c28c")
   867  	api.RegisterMessage((*IpfixClassifyTableDump)(nil), "ipfix_classify_table_dump_51077d14")
   868  	api.RegisterMessage((*IpfixExporterCreateDelete)(nil), "ipfix_exporter_create_delete_0753a768")
   869  	api.RegisterMessage((*IpfixExporterCreateDeleteReply)(nil), "ipfix_exporter_create_delete_reply_9ffac24b")
   870  	api.RegisterMessage((*IpfixExporterDetails)(nil), "ipfix_exporter_details_0dedbfe4")
   871  	api.RegisterMessage((*IpfixExporterDump)(nil), "ipfix_exporter_dump_51077d14")
   872  	api.RegisterMessage((*IpfixFlush)(nil), "ipfix_flush_51077d14")
   873  	api.RegisterMessage((*IpfixFlushReply)(nil), "ipfix_flush_reply_e8d4e804")
   874  	api.RegisterMessage((*SetIpfixClassifyStream)(nil), "set_ipfix_classify_stream_c9cbe053")
   875  	api.RegisterMessage((*SetIpfixClassifyStreamReply)(nil), "set_ipfix_classify_stream_reply_e8d4e804")
   876  	api.RegisterMessage((*SetIpfixExporter)(nil), "set_ipfix_exporter_5530c8a0")
   877  	api.RegisterMessage((*SetIpfixExporterReply)(nil), "set_ipfix_exporter_reply_e8d4e804")
   878  }
   879  
   880  // Messages returns list of all messages in this module.
   881  func AllMessages() []api.Message {
   882  	return []api.Message{
   883  		(*IpfixAllExporterDetails)(nil),
   884  		(*IpfixAllExporterGet)(nil),
   885  		(*IpfixAllExporterGetReply)(nil),
   886  		(*IpfixClassifyStreamDetails)(nil),
   887  		(*IpfixClassifyStreamDump)(nil),
   888  		(*IpfixClassifyTableAddDel)(nil),
   889  		(*IpfixClassifyTableAddDelReply)(nil),
   890  		(*IpfixClassifyTableDetails)(nil),
   891  		(*IpfixClassifyTableDump)(nil),
   892  		(*IpfixExporterCreateDelete)(nil),
   893  		(*IpfixExporterCreateDeleteReply)(nil),
   894  		(*IpfixExporterDetails)(nil),
   895  		(*IpfixExporterDump)(nil),
   896  		(*IpfixFlush)(nil),
   897  		(*IpfixFlushReply)(nil),
   898  		(*SetIpfixClassifyStream)(nil),
   899  		(*SetIpfixClassifyStreamReply)(nil),
   900  		(*SetIpfixExporter)(nil),
   901  		(*SetIpfixExporterReply)(nil),
   902  	}
   903  }