@@ -390,6 +390,25 @@ def verify_bfd_queue_counters(duthost, dut_intf):
390390 pytest .fail ('Queue 7 packet count is zero, no BFD traffic' )
391391
392392
393+ @pytest .fixture (autouse = True )
394+ def ignore_syslog_errors (rand_selected_dut , loganalyzer ):
395+ """Ignore expected error logs during test execution."""
396+ if loganalyzer :
397+ loganalyzer [rand_selected_dut .hostname ].ignore_regex .extend (
398+ [
399+ '.*ERR kernel:.*Failed to bind BFD socket to local_addr.*' ,
400+ '.*ERR kernel:.*Failed to create TX socket for session.*' ,
401+ '.*ERR kernel:.*Parsing BFD command.*failed.*' ,
402+ '.*ERR syncd#SDK:.*BFD.ERR.*ioctl failed, error description: Input.output error' ,
403+ '.*ERR syncd#SDK:.*CORE_API.ERR.*Failed in bfd_offload_set().* error:.*' ,
404+ '.*ERR syncd#SDK:.*SAI_BFD.ERR.*.*mlnx_sai_bfd.c.*mlnx_set_offload_bfd_tx_session.*: Error create TX BFD session.*' , # noqa: E501
405+ '.*ERR syncd#SDK: :- sendApiResponse: api SAI_COMMON_API_CREATE failed in syncd mode: SAI_STATUS_FAILURE' , # noqa: E501
406+ '.*ERR syncd#SDK: :- processQuadEvent: attr: SAI_BFD_SESSION_ATTR_.*' ,
407+ '.*ERR swss#orchagent: :- create: create status: SAI_STATUS_FAILURE.*'
408+ ]
409+ )
410+
411+
393412@pytest .mark .parametrize ('dut_init_first' , [True , False ], ids = ['dut_init_first' , 'ptf_init_first' ])
394413@pytest .mark .parametrize ('ipv6' , [False , True ], ids = ['ipv4' , 'ipv6' ])
395414def test_bfd_basic (request , gnmi_connection ,
0 commit comments