-
Notifications
You must be signed in to change notification settings - Fork 30
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 BGP route origin #813
base: main
Are you sure you want to change the base?
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
1aa5921
to
4046dfb
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Added pylint disable for no of line check (C0302) with TODO. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
796aa99
to
b9d1bea
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
CodSpeed Performance ReportMerging #813 will not alter performanceComparing Summary
|
Quality Gate passedIssues Measures |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
anta/tests/routing/bgp.py
Outdated
"""Verifies BGP route origin. | ||
|
||
This test performs the following checks for each specified bgp route entry: | ||
1. Checks whether the specified BGP route entries exist. |
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.
1. Checks whether the specified BGP route entries exist. | |
1. Checks whether the specified BGP route entry exists. |
anta/tests/routing/bgp.py
Outdated
|
||
This test performs the following checks for each specified bgp route entry: | ||
1. Checks whether the specified BGP route entries exist. | ||
2. Confirms that the path exists and corresponds to the next-hop address. |
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.
seems there can be multiple paths for a given route so what happens if I have multiple - do all need to exist ? only
one? this should be specified here
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.
the code check that all paths for each route are valid
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.
We are verifying the given path(s) should exist in entries for that given prefix.
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.
yes so we need to reword
2. Confirms that the path exists and corresponds to the next-hop address. | |
2. Confirms that each path for the route entry exists and corresponds to the next-hop address. |
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.
Updated. Thanks!!
anta/tests/routing/bgp.py
Outdated
---------------- | ||
* Success: The test will pass if: | ||
- The BGP route entries exist for specified prefixes. | ||
- Path exists and corresponds to the specified next-hop address. |
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.
only one path?
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.
@gmuloc
Yes we are verifying the path correspond to the given nexthop.
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.
the point is that we have a list of paths so we shouuld reword that the success is only if every path exists. The sentence is currently singular
- Path exists and corresponds to the specified next-hop address. | |
- Every path exists and corresponds to the specified next-hop address. |
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.
check also if this is required for failure
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.
Updated. Thanks!!
b091e2a
to
9b7c946
Compare
9b7c946
to
b742646
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Quality Gate passedIssues Measures |
Description
Verifies BGP route origin for the provided IPv4 Network(s).
Fixes #811
Checklist:
pre-commit run
)tox -e testenv
)