From 617d429d2e38ac0cdb107dbfd86301b36d9f8e31 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Tue, 20 Sep 2022 15:10:10 +0200 Subject: bfd: add tracing support to bfd-process Outgoing packets can be now traced via: trace add bfd-process Type: improvement Change-Id: Ia19af6054289b18f55e518dbea251a2bee9b9457 Signed-off-by: Klement Sekera --- test/test_bfd.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test_bfd.py') 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() -- cgit 1.2.3-korg