aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Atkins <patkins@graphiant.com>2021-12-01 13:13:16 +0000
committerPaul Atkins <patkins@graphiant.com>2022-02-16 11:30:34 +0000
commit7b35695c2395c751d6d8dbb3041896422f12f72a (patch)
tree907b01c2dcd4d8b814f626ff682cf517a19451be
parent9d2db2eb2ed212d205310142ab49b1f883d513ce (diff)
ipfix-export: pass ipv4 addr to format fn for show
When the ipfix address was changed to be an ip_address instead of an ip4_address the output when creating an exporter via the cli should have been modified to take the address of the v4 part of the addr. Type: fix Signed-off-by: Paul Atkins <patkins@graphiant.com> Change-Id: I141456cd9092c861a4c4aefba4035dbde23efcd6 (cherry picked from commit bf9918a7e0c6bf116b90780cbc2c111ca7995399)
-rw-r--r--src/vnet/ipfix-export/flow_report.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vnet/ipfix-export/flow_report.c b/src/vnet/ipfix-export/flow_report.c
index 8a36a2f3363..e290973f900 100644
--- a/src/vnet/ipfix-export/flow_report.c
+++ b/src/vnet/ipfix-export/flow_report.c
@@ -843,9 +843,10 @@ set_ipfix_exporter_command_fn (vlib_main_t * vm,
"fib index %d, path MTU %u, "
"template resend interval %us, "
"udp checksum %s",
- format_ip4_address, exp->ipfix_collector,
- format_ip4_address, exp->src_address, fib_index, path_mtu,
- template_interval, udp_checksum ? "enabled" : "disabled");
+ format_ip4_address, &exp->ipfix_collector.ip.ip4,
+ format_ip4_address, &exp->src_address.ip.ip4, fib_index,
+ path_mtu, template_interval,
+ udp_checksum ? "enabled" : "disabled");
else
vlib_cli_output (vm, "IPFIX Collector is disabled");