-
Notifications
You must be signed in to change notification settings - Fork 684
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
Fix call for spanning-tree commands in dump script #3723
Fix call for spanning-tree commands in dump script #3723
Conversation
/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.
Seems we'll need some test for generate_dump flow.
@DavidZagury could you add a sonic-mgmt or unit test to prevent regression like this? |
@DavidZagury i wonder what was the PRs that changed the spanning tree and didnt catch it, can you share it? |
@liat-grozovik the PR the introduced this change in sonic-utilities was #3567 by @divyachandralekha |
@qiluo-msft |
Hi @DavidZagury , Just wondering the steps you took and why regarding this error. Can you share the process? Would be helpful in upcoming PRs. |
Hi @wajahatrazi , after I saw that when running show techsupport there is the error which I shared in the PR:
I check the generate dump script, saw that the relevant CLIs are:
I tried them manually on a switch, and saw that indead this CLIs don't work. The show command has been defined: Lines 1998 to 2000 in 9d273f1
In SONiC we use click to create the CLIs, and I know that when click see a command with underscore as definition, the created CLI is with dash instread, as we can see in the release note from version 7.0.0:
I have check running the CLIs with the correct name, and the error did not appear. |
Cherry-pick PR to 202411: #3752 |
What I did
Fix the calls for spanning-tree commands in dump script.
During call to generate techsupport, we can see that the spanning tree commands fail:
How I did it
Change from show spanning_tree to the actual command show spanning-tree
How to verify it
Call show techsupport
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)