Skip to content

Commit

Permalink
Merge pull request #4 from grafolean/fix/missing-output-snmp
Browse files Browse the repository at this point in the history
OUTPUT_SNMP might be missing
  • Loading branch information
grafolean authored Nov 17, 2023
2 parents 9cd7bfe + 6ecbf4f commit c1e622d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netflowwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ def _get_data(buffer):
f.data.get("DIRECTION", DIRECTION_INGRESS),
f.data.get("L4_DST_PORT", 0), # sometimes ports are not available: https://github.com/grafolean/grafolean/issues/13
f.data.get("L4_SRC_PORT", 0),
f.data["INPUT_SNMP"],
f.data["OUTPUT_SNMP"],
f.data.get("INPUT_SNMP", 0),
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...
address_family,
dst,
src,
Expand Down

0 comments on commit c1e622d

Please sign in to comment.