X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fipfix_export%2Fipfix_export.ba.go;h=b8b8d0adf97a2d20c71c8668ed4ef25310030060;hb=67cea0df30f7ef348e265c9326f7a9f15ba26240;hp=3a9b754f2fd21203e4c5489f663b7e531e1888bb;hpb=c94a962279858fb13eaacc689f47aed358373e44;p=govpp.git diff --git a/binapi/ipfix_export/ipfix_export.ba.go b/binapi/ipfix_export/ipfix_export.ba.go index 3a9b754..b8b8d0a 100644 --- a/binapi/ipfix_export/ipfix_export.ba.go +++ b/binapi/ipfix_export/ipfix_export.ba.go @@ -1,19 +1,20 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.4.0-dev -// VPP: 20.05-release +// binapi-generator: v0.6.0-dev +// VPP: 22.02-release +// source: /usr/share/vpp/api/core/ipfix_export.api.json // Package ipfix_export contains generated bindings for API file ipfix_export.api. // // Contents: -// 14 messages +// 19 messages // package ipfix_export import ( - api "git.fd.io/govpp.git/api" - ip_types "git.fd.io/govpp.git/binapi/ip_types" - codec "git.fd.io/govpp.git/codec" + api "go.fd.io/govpp/api" + ip_types "go.fd.io/govpp/binapi/ip_types" + codec "go.fd.io/govpp/codec" ) // This is a compile-time assertion to ensure that this generated file @@ -24,10 +25,143 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "ipfix_export" - APIVersion = "2.0.1" - VersionCrc = 0xb7e9cad2 + APIVersion = "2.0.3" + VersionCrc = 0x63e0810a ) +// IpfixAllExporterDetails defines message 'ipfix_all_exporter_details'. +type IpfixAllExporterDetails struct { + CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"` + CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"` + SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"` + VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` + PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"` + TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"` + UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"` +} + +func (m *IpfixAllExporterDetails) Reset() { *m = IpfixAllExporterDetails{} } +func (*IpfixAllExporterDetails) GetMessageName() string { return "ipfix_all_exporter_details" } +func (*IpfixAllExporterDetails) GetCrcString() string { return "0dedbfe4" } +func (*IpfixAllExporterDetails) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *IpfixAllExporterDetails) Size() (size int) { + if m == nil { + return 0 + } + size += 1 // m.CollectorAddress.Af + size += 1 * 16 // m.CollectorAddress.Un + size += 2 // m.CollectorPort + size += 1 // m.SrcAddress.Af + size += 1 * 16 // m.SrcAddress.Un + size += 4 // m.VrfID + size += 4 // m.PathMtu + size += 4 // m.TemplateInterval + size += 1 // m.UDPChecksum + return size +} +func (m *IpfixAllExporterDetails) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint8(uint8(m.CollectorAddress.Af)) + buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16) + buf.EncodeUint16(m.CollectorPort) + buf.EncodeUint8(uint8(m.SrcAddress.Af)) + buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16) + buf.EncodeUint32(m.VrfID) + buf.EncodeUint32(m.PathMtu) + buf.EncodeUint32(m.TemplateInterval) + buf.EncodeBool(m.UDPChecksum) + return buf.Bytes(), nil +} +func (m *IpfixAllExporterDetails) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) + copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) + m.CollectorPort = buf.DecodeUint16() + m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) + copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) + m.VrfID = buf.DecodeUint32() + m.PathMtu = buf.DecodeUint32() + m.TemplateInterval = buf.DecodeUint32() + m.UDPChecksum = buf.DecodeBool() + return nil +} + +// IpfixAllExporterGet defines message 'ipfix_all_exporter_get'. +type IpfixAllExporterGet struct { + Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"` +} + +func (m *IpfixAllExporterGet) Reset() { *m = IpfixAllExporterGet{} } +func (*IpfixAllExporterGet) GetMessageName() string { return "ipfix_all_exporter_get" } +func (*IpfixAllExporterGet) GetCrcString() string { return "f75ba505" } +func (*IpfixAllExporterGet) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *IpfixAllExporterGet) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Cursor + return size +} +func (m *IpfixAllExporterGet) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(m.Cursor) + return buf.Bytes(), nil +} +func (m *IpfixAllExporterGet) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Cursor = buf.DecodeUint32() + return nil +} + +// IpfixAllExporterGetReply defines message 'ipfix_all_exporter_get_reply'. +type IpfixAllExporterGetReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` + Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"` +} + +func (m *IpfixAllExporterGetReply) Reset() { *m = IpfixAllExporterGetReply{} } +func (*IpfixAllExporterGetReply) GetMessageName() string { return "ipfix_all_exporter_get_reply" } +func (*IpfixAllExporterGetReply) GetCrcString() string { return "53b48f5d" } +func (*IpfixAllExporterGetReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *IpfixAllExporterGetReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + size += 4 // m.Cursor + return size +} +func (m *IpfixAllExporterGetReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + buf.EncodeUint32(m.Cursor) + return buf.Bytes(), nil +} +func (m *IpfixAllExporterGetReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + m.Cursor = buf.DecodeUint32() + return nil +} + // IpfixClassifyStreamDetails defines message 'ipfix_classify_stream_details'. type IpfixClassifyStreamDetails struct { DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"` @@ -240,6 +374,112 @@ func (m *IpfixClassifyTableDump) Unmarshal(b []byte) error { return nil } +// IpfixExporterCreateDelete defines message 'ipfix_exporter_create_delete'. +type IpfixExporterCreateDelete struct { + IsCreate bool `binapi:"bool,name=is_create" json:"is_create,omitempty"` + CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"` + CollectorPort uint16 `binapi:"u16,name=collector_port" json:"collector_port,omitempty"` + SrcAddress ip_types.Address `binapi:"address,name=src_address" json:"src_address,omitempty"` + VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` + PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"` + TemplateInterval uint32 `binapi:"u32,name=template_interval" json:"template_interval,omitempty"` + UDPChecksum bool `binapi:"bool,name=udp_checksum" json:"udp_checksum,omitempty"` +} + +func (m *IpfixExporterCreateDelete) Reset() { *m = IpfixExporterCreateDelete{} } +func (*IpfixExporterCreateDelete) GetMessageName() string { return "ipfix_exporter_create_delete" } +func (*IpfixExporterCreateDelete) GetCrcString() string { return "0753a768" } +func (*IpfixExporterCreateDelete) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *IpfixExporterCreateDelete) Size() (size int) { + if m == nil { + return 0 + } + size += 1 // m.IsCreate + size += 1 // m.CollectorAddress.Af + size += 1 * 16 // m.CollectorAddress.Un + size += 2 // m.CollectorPort + size += 1 // m.SrcAddress.Af + size += 1 * 16 // m.SrcAddress.Un + size += 4 // m.VrfID + size += 4 // m.PathMtu + size += 4 // m.TemplateInterval + size += 1 // m.UDPChecksum + return size +} +func (m *IpfixExporterCreateDelete) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeBool(m.IsCreate) + buf.EncodeUint8(uint8(m.CollectorAddress.Af)) + buf.EncodeBytes(m.CollectorAddress.Un.XXX_UnionData[:], 16) + buf.EncodeUint16(m.CollectorPort) + buf.EncodeUint8(uint8(m.SrcAddress.Af)) + buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16) + buf.EncodeUint32(m.VrfID) + buf.EncodeUint32(m.PathMtu) + buf.EncodeUint32(m.TemplateInterval) + buf.EncodeBool(m.UDPChecksum) + return buf.Bytes(), nil +} +func (m *IpfixExporterCreateDelete) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.IsCreate = buf.DecodeBool() + m.CollectorAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) + copy(m.CollectorAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) + m.CollectorPort = buf.DecodeUint16() + m.SrcAddress.Af = ip_types.AddressFamily(buf.DecodeUint8()) + copy(m.SrcAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16)) + m.VrfID = buf.DecodeUint32() + m.PathMtu = buf.DecodeUint32() + m.TemplateInterval = buf.DecodeUint32() + m.UDPChecksum = buf.DecodeBool() + return nil +} + +// IpfixExporterCreateDeleteReply defines message 'ipfix_exporter_create_delete_reply'. +type IpfixExporterCreateDeleteReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` + StatIndex uint32 `binapi:"u32,name=stat_index" json:"stat_index,omitempty"` +} + +func (m *IpfixExporterCreateDeleteReply) Reset() { *m = IpfixExporterCreateDeleteReply{} } +func (*IpfixExporterCreateDeleteReply) GetMessageName() string { + return "ipfix_exporter_create_delete_reply" +} +func (*IpfixExporterCreateDeleteReply) GetCrcString() string { return "9ffac24b" } +func (*IpfixExporterCreateDeleteReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *IpfixExporterCreateDeleteReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + size += 4 // m.StatIndex + return size +} +func (m *IpfixExporterCreateDeleteReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + buf.EncodeUint32(m.StatIndex) + return buf.Bytes(), nil +} +func (m *IpfixExporterCreateDeleteReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + m.StatIndex = buf.DecodeUint32() + return nil +} + // IpfixExporterDetails defines message 'ipfix_exporter_details'. type IpfixExporterDetails struct { CollectorAddress ip_types.Address `binapi:"address,name=collector_address" json:"collector_address,omitempty"` @@ -253,7 +493,7 @@ type IpfixExporterDetails struct { func (m *IpfixExporterDetails) Reset() { *m = IpfixExporterDetails{} } func (*IpfixExporterDetails) GetMessageName() string { return "ipfix_exporter_details" } -func (*IpfixExporterDetails) GetCrcString() string { return "11e07413" } +func (*IpfixExporterDetails) GetCrcString() string { return "0dedbfe4" } func (*IpfixExporterDetails) GetMessageType() api.MessageType { return api.ReplyMessage } @@ -473,7 +713,7 @@ type SetIpfixExporter struct { func (m *SetIpfixExporter) Reset() { *m = SetIpfixExporter{} } func (*SetIpfixExporter) GetMessageName() string { return "set_ipfix_exporter" } -func (*SetIpfixExporter) GetCrcString() string { return "69284e07" } +func (*SetIpfixExporter) GetCrcString() string { return "5530c8a0" } func (*SetIpfixExporter) GetMessageType() api.MessageType { return api.RequestMessage } @@ -558,31 +798,41 @@ func (m *SetIpfixExporterReply) Unmarshal(b []byte) error { func init() { file_ipfix_export_binapi_init() } func file_ipfix_export_binapi_init() { + api.RegisterMessage((*IpfixAllExporterDetails)(nil), "ipfix_all_exporter_details_0dedbfe4") + api.RegisterMessage((*IpfixAllExporterGet)(nil), "ipfix_all_exporter_get_f75ba505") + api.RegisterMessage((*IpfixAllExporterGetReply)(nil), "ipfix_all_exporter_get_reply_53b48f5d") api.RegisterMessage((*IpfixClassifyStreamDetails)(nil), "ipfix_classify_stream_details_2903539d") api.RegisterMessage((*IpfixClassifyStreamDump)(nil), "ipfix_classify_stream_dump_51077d14") api.RegisterMessage((*IpfixClassifyTableAddDel)(nil), "ipfix_classify_table_add_del_3e449bb9") api.RegisterMessage((*IpfixClassifyTableAddDelReply)(nil), "ipfix_classify_table_add_del_reply_e8d4e804") api.RegisterMessage((*IpfixClassifyTableDetails)(nil), "ipfix_classify_table_details_1af8c28c") api.RegisterMessage((*IpfixClassifyTableDump)(nil), "ipfix_classify_table_dump_51077d14") - api.RegisterMessage((*IpfixExporterDetails)(nil), "ipfix_exporter_details_11e07413") + api.RegisterMessage((*IpfixExporterCreateDelete)(nil), "ipfix_exporter_create_delete_0753a768") + api.RegisterMessage((*IpfixExporterCreateDeleteReply)(nil), "ipfix_exporter_create_delete_reply_9ffac24b") + api.RegisterMessage((*IpfixExporterDetails)(nil), "ipfix_exporter_details_0dedbfe4") api.RegisterMessage((*IpfixExporterDump)(nil), "ipfix_exporter_dump_51077d14") api.RegisterMessage((*IpfixFlush)(nil), "ipfix_flush_51077d14") api.RegisterMessage((*IpfixFlushReply)(nil), "ipfix_flush_reply_e8d4e804") api.RegisterMessage((*SetIpfixClassifyStream)(nil), "set_ipfix_classify_stream_c9cbe053") api.RegisterMessage((*SetIpfixClassifyStreamReply)(nil), "set_ipfix_classify_stream_reply_e8d4e804") - api.RegisterMessage((*SetIpfixExporter)(nil), "set_ipfix_exporter_69284e07") + api.RegisterMessage((*SetIpfixExporter)(nil), "set_ipfix_exporter_5530c8a0") api.RegisterMessage((*SetIpfixExporterReply)(nil), "set_ipfix_exporter_reply_e8d4e804") } // Messages returns list of all messages in this module. func AllMessages() []api.Message { return []api.Message{ + (*IpfixAllExporterDetails)(nil), + (*IpfixAllExporterGet)(nil), + (*IpfixAllExporterGetReply)(nil), (*IpfixClassifyStreamDetails)(nil), (*IpfixClassifyStreamDump)(nil), (*IpfixClassifyTableAddDel)(nil), (*IpfixClassifyTableAddDelReply)(nil), (*IpfixClassifyTableDetails)(nil), (*IpfixClassifyTableDump)(nil), + (*IpfixExporterCreateDelete)(nil), + (*IpfixExporterCreateDeleteReply)(nil), (*IpfixExporterDetails)(nil), (*IpfixExporterDump)(nil), (*IpfixFlush)(nil),