From 44d9d74fa43d74fec35550df644d0f8c06e31f70 Mon Sep 17 00:00:00 2001 From: Pavel Siska Date: Tue, 17 Oct 2023 22:32:53 +0200 Subject: [PATCH] ipfix - propose new variables (ipfix template refresh rate) to control init by ipfixprobed The description of new variables was added into link0.conf.example: TEMPLATE_REFRESH_RATE --- init/ipfixprobed | 2 +- init/link0.conf.example | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/init/ipfixprobed b/init/ipfixprobed index 76fe95ae..1942f82f 100644 --- a/init/ipfixprobed +++ b/init/ipfixprobed @@ -70,7 +70,7 @@ if [ -e "$CONFFILE" ]; then if [[ $UDP == "yes" ]]; then UDP_PARAM="udp"; fi - output="-o ipfix;host=${HOST:-127.0.0.1};port=${PORT:-4739};id=${LINK:-0};dir=${DIR:-0};${UDP_PARAM}" + output="-o ipfix;host=${HOST:-127.0.0.1};port=${PORT:-4739};id=${LINK:-0};dir=${DIR:-0};${UDP_PARAM};template=${TEMPLATE_REFRESH_RATE:-300}" exec /usr/bin/ipfixprobe "${dpdkinput[@]}" $input $storage $process $output else diff --git a/init/link0.conf.example b/init/link0.conf.example index c444923b..8907ae43 100644 --- a/init/link0.conf.example +++ b/init/link0.conf.example @@ -174,3 +174,5 @@ PORT=4739 # Use UDP yes/no? (instead of TCP) UDP=yes +# Export ipfix template every N seconds (UDP) +TEMPLATE_REFRESH_RATE=300