diff options
author | Klement Sekera <klement.sekera@gmail.com> | 2022-09-20 15:10:10 +0200 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2022-09-23 00:43:11 +0000 |
commit | 617d429d2e38ac0cdb107dbfd86301b36d9f8e31 (patch) | |
tree | e3bda343fafa2274f9e60c7e983cc3a771e3464c /test/test_bfd.py | |
parent | 06abf235269558fe75d72019a437337b24d7199e (diff) |
bfd: add tracing support to bfd-process
Outgoing packets can be now traced via:
trace add bfd-process <count>
Type: improvement
Change-Id: Ia19af6054289b18f55e518dbea251a2bee9b9457
Signed-off-by: Klement Sekera <klement.sekera@gmail.com>
Diffstat (limited to 'test/test_bfd.py')
-rw-r--r-- | test/test_bfd.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_bfd.py b/test/test_bfd.py index c7ea79abfd0..71133701420 100644 --- a/test/test_bfd.py +++ b/test/test_bfd.py @@ -774,6 +774,7 @@ def wait_for_bfd_packet(test, timeout=1, pcap_time_min=None, is_tunnel=False): ) else: break + test.logger.debug(test.vapi.ppcli("show trace")) if is_tunnel: # strip an IP layer and move to the next p = p[IP].payload @@ -856,6 +857,7 @@ class BFD4TestCase(VppTestCase): try: self.bfd_udp4_sessions = self.statistics["/bfd/udp4/sessions"] self.bfd_udp6_sessions = self.statistics["/bfd/udp6/sessions"] + self.vapi.cli("trace add bfd-process 500") self.vpp_session = VppBFDUDPSession(self, self.pg0, self.pg0.remote_ip4) self.vpp_session.add_vpp_config() self.vpp_session.admin_up() |