Skip to content

Commit a4daf95

Browse files
committed
Allow direction to not be specified (NetFlow v9)
1 parent d19590a commit a4daf95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netflowwriter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _get_data(buffer):
208208
# "PROTOCOL":
209209
f.data["PROTOCOL"],
210210
# "DIRECTION":
211-
f.data["DIRECTION"],
211+
f.data.get("DIRECTION", DIRECTION_INGRESS),
212212
# "L4_DST_PORT":
213213
f.data["L4_DST_PORT"],
214214
# "L4_SRC_PORT":

0 commit comments

Comments
 (0)