X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_bfd.py;h=67ddb4b97e13c58a144ae825013d9d402785e7cd;hb=ee4172ef0a115b6d96cfb0d5cc6ef4fb211c01aa;hp=c7ea79abfd01a5a6e3189450cea9480b89b9e6fd;hpb=d9b0c6fbf7aa5bd9af84264105b39c82028a4a29;p=vpp.git diff --git a/test/test_bfd.py b/test/test_bfd.py index c7ea79abfd0..67ddb4b97e1 100644 --- a/test/test_bfd.py +++ b/test/test_bfd.py @@ -30,7 +30,8 @@ from bfd import ( BFDState, BFD_vpp_echo, ) -from framework import tag_fixme_vpp_workers +from framework import tag_fixme_vpp_workers, tag_fixme_ubuntu2204, tag_fixme_debian11 +from framework import is_distro_ubuntu2204, is_distro_debian11 from framework import VppTestCase, VppTestRunner from framework import tag_run_solo from util import ppp @@ -774,6 +775,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 @@ -817,6 +819,8 @@ def bfd_stats_diff(stats_before, stats_after): @tag_run_solo +@tag_fixme_ubuntu2204 +@tag_fixme_debian11 class BFD4TestCase(VppTestCase): """Bidirectional Forwarding Detection (BFD)""" @@ -827,6 +831,10 @@ class BFD4TestCase(VppTestCase): @classmethod def setUpClass(cls): + if (is_distro_ubuntu2204 == True or is_distro_debian11 == True) and not hasattr( + cls, "vpp" + ): + return super(BFD4TestCase, cls).setUpClass() cls.vapi.cli("set log class bfd level debug") try: @@ -856,6 +864,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() @@ -1720,6 +1729,7 @@ class BFD4TestCase(VppTestCase): @tag_run_solo @tag_fixme_vpp_workers +@tag_fixme_ubuntu2204 class BFD6TestCase(VppTestCase): """Bidirectional Forwarding Detection (BFD) (IPv6)""" @@ -1730,6 +1740,8 @@ class BFD6TestCase(VppTestCase): @classmethod def setUpClass(cls): + if is_distro_ubuntu2204 == True and not hasattr(cls, "vpp"): + return super(BFD6TestCase, cls).setUpClass() cls.vapi.cli("set log class bfd level debug") try: @@ -1753,6 +1765,8 @@ class BFD6TestCase(VppTestCase): def setUp(self): super(BFD6TestCase, self).setUp() + if is_distro_ubuntu2204 == True and not hasattr(self, "vpp"): + return self.factory = AuthKeyFactory() self.vapi.want_bfd_events() self.pg0.enable_capture()