flowprobe: add support for reporting on inbound packets 94/36094/4
authorAlexander Chernavin <achernavin@netgate.com>
Fri, 6 May 2022 11:35:59 +0000 (11:35 +0000)
committerOle Tr�an <otroan@employees.org>
Fri, 13 May 2022 07:34:41 +0000 (07:34 +0000)
commit6f5ddf3461906bbc88f679882744afc74a81cae1
tree27a3f0686ddf0fb7efdfd3ac1aa2cefb5fa86153
parent0891b6aa449cca525b61d0cc23759b2efcd158dc
flowprobe: add support for reporting on inbound packets

Type: feature

Currently, the plugin supports only IPFIX flow record generation for
outbound packets.

With this change:
 - add a new API message for enabling the feature on an interface that
   accepts direction (rx, tx, both);
 - update existing debug command for feature enabling to accept
   direction;
 - update existing debug command for showing currently enabled feature
   on interfaces to display direction;
 - update templates to include a direction field;
 - generate flow records on the specified direction and data path;
 - report direction in flow data;
 - update tests to use the new API;
 - add tests for inbound flows.

Change-Id: I121fd904b38408641036ebeea848df7a4e5e0b30
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
src/plugins/flowprobe/FEATURE.yaml
src/plugins/flowprobe/flowprobe.api
src/plugins/flowprobe/flowprobe.c
src/plugins/flowprobe/flowprobe.h
src/plugins/flowprobe/flowprobe_plugin_doc.rst
src/plugins/flowprobe/flowprobe_test.c
src/plugins/flowprobe/node.c
test/test_flowprobe.py