1
0
mirror of https://github.com/netsampler/goflow2.git synced 2024-05-06 15:54:52 +00:00

Merge pull request #90 from kentik/fix-yaml-mapping

Adding field names to allow ipfix yaml mapping field to parse
This commit is contained in:
Louis
2022-07-06 20:23:31 -07:00
committed by GitHub

View File

@ -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
}