Commit f24cc0c
authored
[chassis][show_tech]Fix show queue counters to only run on host (#173)
<!--
Please make sure you've read and understood our contributing guidelines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md
failure_prs.log skip_prs.log Make sure all your commits include a signature generated with `git commit -s` **
If this is a bug fix, make sure your description includes "closes #xxxx",
"fixes #xxxx" or "resolves #xxxx" so that GitHub automatically closes the related
issue when the PR is merged.
If you are adding/modifying/removing any command or utility script, please also
make sure to add/modify/remove any unit tests from the tests
directory as appropriate.
If you are modifying or removing an existing 'show', 'config' or 'sonic-clear'
subcommand, or you are adding a new subcommand, please make sure you also
update the Command Line Reference Guide (doc/Command-Reference.md) to reflect
your changes.
Please provide the following information:
-->
#### What I did
`show queue counters` is supported and runs on host instance, even for mult-asic platforms.
We don't have to run `show queue counters` for each asic namespace.
This fixes sonic-net/sonic-buildimage#22394
#### How I did it
Modifiy generate_dump to call `save_cmd` instead of `save_cmd_all_ns` for `show queue counters`
#### How to verify it
Run `show techsupport` on multi-asic platform.
Verfiy that the `queue.counters` files show correct information.
#### Which release branch to backport (provide reason below if selected)
- [ ] 202305
- [x] 202405
#### 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)1 parent 2c35fdf commit f24cc0c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2007 | 2007 | | |
2008 | 2008 | | |
2009 | 2009 | | |
2010 | | - | |
| 2010 | + | |
2011 | 2011 | | |
2012 | 2012 | | |
2013 | 2013 | | |
| |||
0 commit comments