-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat(anta): Added the test case to verify the SNMP source interface for specified VRF #870
base: main
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #870 will not alter performanceComparing Summary
|
anta/tests/snmp.py
Outdated
|
||
# Verify source-interface details. | ||
if not actual_interface: | ||
failures += f"Source interface '{interface}' is not configured.\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
failures += f"Source interface '{interface}' is not configured.\n" | |
failures += f"Source interface '{interface}' is not configured with vrf `{vrf}`.\n" |
anta/tests/snmp.py
Outdated
if not actual_interface: | ||
failures += f"Source interface '{interface}' is not configured.\n" | ||
elif actual_interface != interface: | ||
failures += f"Source interface '{interface}' is not correctly configured in vrf '{vrf}'.\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again what is expected and what actual interface received please mention that in failure message.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
b765061
to
85574fc
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Quality Gate passedIssues Measures |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Description
Verifies SNMP source-interface for a specified VRF.
Fixes #854
Checklist:
pre-commit run
)tox -e testenv
)