Skip to content

Commit c1e622d

Browse files
authored
Merge pull request #4 from grafolean/fix/missing-output-snmp
OUTPUT_SNMP might be missing
2 parents 9cd7bfe + 6ecbf4f commit c1e622d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netflowwriter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ def _get_data(buffer):
220220
f.data.get("DIRECTION", DIRECTION_INGRESS),
221221
f.data.get("L4_DST_PORT", 0), # sometimes ports are not available: https://github.com/grafolean/grafolean/issues/13
222222
f.data.get("L4_SRC_PORT", 0),
223-
f.data["INPUT_SNMP"],
224-
f.data["OUTPUT_SNMP"],
223+
f.data.get("INPUT_SNMP", 0),
224+
f.data.get("OUTPUT_SNMP", 0), # sometimes OUTPUT_SNMP is not available: https://github.com/grafolean/grafolean/issues/41 - not sure about INPUT_SNMP, better safe...
225225
address_family,
226226
dst,
227227
src,

0 commit comments

Comments
 (0)