-
Notifications
You must be signed in to change notification settings - Fork 746
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
Updating techsupport commands to include optimized bgp neighbor commands #15466
Conversation
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
re.compile(r'vtysh{}\s+-c "show ip bgp neighbors .* routes"'), | ||
re.compile(r'vtysh{}\s+-c "show bgp ipv6 neighbors .* advertised-routes"'), | ||
re.compile(r'vtysh{}\s+-c "show bgp ipv6 neighbors .* routes"'), | ||
re.compile(r"vtysh(\s+-Ec 'show bgp ipv4 neighbors .* advertised-routes' " |
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.
does wildcard support 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.
Can you clarify your question? It does work with the changes in the sonic-utilities PR.
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.
no issue, I just remember this was not supported, sorry maybe I missed.
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.
Can you please approve if all good?
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
LGTM, pls fix pre-checkin test issue.
/azpw run Azure.sonic-mgmt |
/AzurePipelines run Azure.sonic-mgmt |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run Azure.sonic-mgmt |
/AzurePipelines run Azure.sonic-mgmt |
Azure Pipelines successfully started running 1 pipeline(s). |
This PR should be followed by #15466. There is a circular dependency where the sonic-utilities submodule after this change sonic-net/sonic-utilities#3605 will not get update unless show techsupport test pass. However the test cannot pass until we have sonic-utilities submodule updated. To overcome this create a temporary PR to remove the techsupport commands that create this dependency. After the submodule update is done #15466 can be merged
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Test failed because the test in run with "build_version": "master.728471-af18b144e", |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@yxieca @maipbui @FengPan-Frank Can you please help merge? |
@dgsudharsan can you please update the PR template: What is the motivation for this PR? |
@yxieca Done. |
Description of PR
Summary:
Fixes # (issue)
DO NOT MERGE until sonic-net/sonic-utilities#3605 is merged and submodule is updated.
Update techsupport test to align with this PR sonic-net/sonic-utilities#3605
Type of change
Back port request
Approach
What is the motivation for this PR?
To support covering show techsupport after the enhancement introduced in sonic-net/sonic-utilities#3605
How did you do it?
Used regex to modify the validations to align with the new optimized vtysh command in the show techsupport
How did you verify/test it?
Running the test with sonic-utilities changes
Any platform specific information?
This is platfrm agnostic chhanges.
Supported testbed topology if it's a new test case?
Not a new test case
Documentation