Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:14367] Skip BGPAllowListMgr syslog in test_bgp_prefix_tc1_suite for Cisco 8111 CompuateAI deployment #14391

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading