From 21811a9683f82dfa6de4543b1296d376e2929360 Mon Sep 17 00:00:00 2001 From: gNPSI Team Date: Fri, 9 May 2025 01:44:48 -0700 Subject: [PATCH] Modify the Sflow_reader_test to parse the proto file, extract abwc_values from cumulative abwc_values and log other relevant details. PiperOrigin-RevId: 756660578 --- proto/gnpsi/BUILD.bazel | 16 ---------------- proto/gnpsi/gnpsi.proto | 6 ++++++ 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/proto/gnpsi/BUILD.bazel b/proto/gnpsi/BUILD.bazel index 5037a59..253e814 100644 --- a/proto/gnpsi/BUILD.bazel +++ b/proto/gnpsi/BUILD.bazel @@ -26,21 +26,5 @@ package( proto_library( name = "gnpsi_proto", srcs = ["gnpsi.proto"], - deps = [ - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:descriptor_proto", - ], -) - -cc_proto_library( - name = "gnpsi_cc_proto", - deps = [":gnpsi_proto"], -) - -cc_grpc_library( - name = "gnpsi_grpc_proto", - srcs = [":gnpsi_proto"], - generate_mocks = True, - grpc_only = ["True"], deps = [":gnpsi_cc_proto"], ) diff --git a/proto/gnpsi/gnpsi.proto b/proto/gnpsi/gnpsi.proto index b8f3753..7d45d99 100644 --- a/proto/gnpsi/gnpsi.proto +++ b/proto/gnpsi/gnpsi.proto @@ -77,8 +77,11 @@ message Sample { // Last timestamp of sample payload (ns since epoch) int64 timestamp = 2; + // repeated double abwc_data = 3; + // Only one of these metadata will be populated to correspond to the sample // returned. + // // The metadata fields applies to all messages on this stream, and would only // be present in the first message on the stream. @@ -86,3 +89,6 @@ message Sample { NetFlowMetadata netflow_metadata = 102; IPFIXMetadata ipfix_metadata = 103; } +message Samplerepeated { + repeated gnpsi.Sample samples = 1; +}