inlet/flow: discard invalid VLANs for sFlow

This commit is contained in:
Vincent Bernat
2023-01-19 22:40:50 +01:00
parent d97a460bbc
commit 59b06635fd
3 changed files with 16 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ import (
func TestDecode(t *testing.T) {
r := reporter.NewMock(t)
nfdecoder := New(r, decoder.Dependencies{Schema: schema.NewMock(t)})
nfdecoder := New(r, decoder.Dependencies{Schema: schema.NewMock(t).EnableAllColumns()})
// Send an option template
template := helpers.ReadPcapPayload(t, filepath.Join("testdata", "options-template-257.pcap"))