tests: Added bpf trace filter plugin test
Type: test Change-Id: I026d9298fe1372d03f61b6ad57c82628bab4c831 Signed-off-by: adrianvillin <avillin@cisco.com>
This commit is contained in:

committed by
Mohammed HAWARI

parent
04d262d1eb
commit
c6fe617490
@ -132,14 +132,14 @@ class VppTestCase(VppAsfTestCase):
|
||||
cls._pcaps.append((intf, worker))
|
||||
|
||||
@classmethod
|
||||
def pg_start(cls, trace=True):
|
||||
def pg_start(cls, trace=True, traceFilter=False):
|
||||
"""Enable the PG, wait till it is done, then clean up"""
|
||||
for intf, worker in cls._old_pcaps:
|
||||
intf.remove_old_pcap_file(intf.get_in_path(worker))
|
||||
cls._old_pcaps = []
|
||||
if trace:
|
||||
cls.vapi.cli("clear trace")
|
||||
cls.vapi.cli("trace add pg-input 1000")
|
||||
cls.vapi.cli("trace add pg-input 1000" + (" filter" if traceFilter else ""))
|
||||
cls.vapi.cli("packet-generator enable")
|
||||
# PG, when starts, runs to completion -
|
||||
# so let's avoid a race condition,
|
||||
|
Reference in New Issue
Block a user