From 97d58ccfe23efb73026d6b0ffcdf8b5e3e1bc1a7 Mon Sep 17 00:00:00 2001 From: Ian Pye Date: Wed, 6 Jul 2022 13:53:57 -0700 Subject: [PATCH] Adding field names to allow ipfix yaml mapping field to parse --- producer/reflect.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/producer/reflect.go b/producer/reflect.go index 6655870..1b91b0b 100644 --- a/producer/reflect.go +++ b/producer/reflect.go @@ -73,11 +73,11 @@ func MapCustom(flowMessage *flowmessage.FlowMessage, v []byte, destination strin } type NetFlowMapField struct { - PenProvided bool `json:"penprovided"` - Type uint16 `json:"field"` - Pen uint32 `json:"pen"` + PenProvided bool `json:"penprovided" yaml:"penprovided"` + Type uint16 `json:"field" yaml:"field"` + Pen uint32 `json:"pen" yaml:"pen"` - Destination string `json:"destination"` + Destination string `json:"destination" yaml:"destination"` //DestinationLength uint8 `json:"dlen"` // could be used if populating a slice of uint16 that aren't in protobuf }