Fix call for spanning-tree commands in dump script#3723
Fix call for spanning-tree commands in dump script#3723qiluo-msft merged 1 commit intosonic-net:masterfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
FengPan-Frank
left a comment
There was a problem hiding this comment.
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: . Error: No such command "spanning_tree". timeout --foreground 5m bash -c "dummy_cleanup_method () . How I did it Change from show spanning_tree to the actual command show spanning-tree How to verify it Call show techsupport
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)