summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-03-19 08:07:53 -0700
committerNeale Ranns <nranns@cisco.com>2019-03-20 07:44:18 +0000
commitec850a80446332f0423972c970042ad616a05f74 (patch)
tree4b29040297c68955aabcd90267fa7edc9786a15e /test
parent3d04e3303a551ee15efad1c9e98aef1d5464a2fb (diff)
tests: replace CLI command with API for flowprobe params.
Change-Id: If446a0d111b89f0a761db41696e0d6ca912312f0 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_flowprobe.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_flowprobe.py b/test/test_flowprobe.py
index 757226b0db8..5ffb7ce8efc 100644
--- a/test/test_flowprobe.py
+++ b/test/test_flowprobe.py
@@ -40,9 +40,11 @@ class VppCFLOW(VppObject):
def add_vpp_config(self):
self.enable_exporter()
- self._test.vapi.ppcli("flowprobe params record %s active %s "
- "passive %s" % (self._collect, self._active,
- self._passive))
+ self._test.vapi.flowprobe_params(
+ record_l2=1 if 'l2' in self._collect.lower() else 0,
+ record_l3=1 if 'l3' in self._collect.lower() else 0,
+ record_l4=1 if 'l4' in self._collect.lower() else 0,
+ active_timer=self._active, passive_timer=self._passive)
self.enable_flowprobe_feature()
self._test.vapi.cli("ipfix flush")
self._configured = True