misc: allow disabling of ipfix exporter via api 03/29203/2
authorAlexander Chernavin <achernavin@netgate.com>
Thu, 1 Oct 2020 12:57:59 +0000 (08:57 -0400)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 1 Oct 2020 21:23:53 +0000 (21:23 +0000)
commit67ec752917ad95184f07ab67a67ada3f6265b48c
tree2f32a1f892a0a8a1955054e0d8a849c528bb8034
parent433a498683506e4e22b8304db22efb56ef24bdf9
misc: allow disabling of ipfix exporter via api

Zero collector address indicates that the IPFIX exporter is disabled.
You can zero the collector address via vppctl but you can't do it via
the API because the handler returns an error if the address is zero.

With this change, do not return an error in the handler when the
collector address is zero thus allowing the IPFIX exporter be
disabled.

Type: fix
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Change-Id: I1335c0d06af81f11d743c395399a360c612c0c21
src/vnet/ipfix-export/flow_api.c