Skip to content

Commit

Permalink
Skip allow list (sonic-net#14367)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsycqyz authored and mssonicbld committed Sep 3, 2024
1 parent 7fe713e commit 8e6c1ea
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/generic_config_updater/test_bgp_prefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
PREFIXES_V6_RE = r"ipv6 prefix-list PL_ALLOW_LIST_DEPLOYMENT_ID_0_COMMUNITY_{}_V6 seq \d+ permit {}"


@pytest.fixture(autouse=True)
def _ignore_allow_list_errlogs(duthosts, rand_one_dut_hostname, loganalyzer):
"""Ignore expected failures logs during test execution."""
if loganalyzer:
IgnoreRegex = [
".*ERR bgp#bgpcfgd: BGPAllowListMgr::Default action community value is not found.*",
]
duthost = duthosts[rand_one_dut_hostname]
"""Cisco 8111-O64 has different allow list config"""
if duthost.facts['hwsku'] == 'Cisco-8111-O64':
loganalyzer[rand_one_dut_hostname].ignore_regex.extend(IgnoreRegex)
return


def get_bgp_prefix_runningconfig(duthost):
""" Get bgp prefix config
"""
Expand Down

0 comments on commit 8e6c1ea

Please sign in to comment.