-
Notifications
You must be signed in to change notification settings - Fork 650
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
Read config DB for running interface(s) and display per port/interface #594
Read config DB for running interface(s) and display per port/interface #594
Conversation
I see two output in descrption for the same command. What is the intended behavior?
|
Hi Sunny, "show runningconfiguration interface" and "show runningconfiguration interfaces" are two different commands. One ends with "intreface" and other one with "interfaces"
I think these are NOT intuitive, we should change them. |
@vasant17 , I think it is confusing. Especially since we can give short names in CLI command like ' |
Hi Sunny, I do understand the issue. Infact "show runningconfiguration int" is an invalid command, as long as the last word in CLI has ambiguous branches, it does NOT accept it has valid command. And "show runningconfiguration ?" does display interface and interfaces options and descriptions. I need to evaluate after effects of changing interface to port. Hence I will take it up as a different PR. Just for our records. Original PR when this change went in: |
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.
Hi Joe, Thanks for looking into this. I do agree with the issue, but please note that it has NOT been introduced in this PR. Instead we should have caught it while reviewing #557 Nevertheless, I am working on fixing it, but all that I am saying is: I do NOT want to mix these issues. I have created another pull request to rename " interface" to "ports" in "show runningconfiguration ..." CLI command. Please review it #600 Please let me know if you have any other comments on this PR. Once PR #600 is merged, I will rebase this one. |
Signed-off-by: Vasant Patil <vapatil@linkedin.com>
Signed-off-by: Vasant Patil <vapatil@linkedin.com>
6801746
to
ff444fd
Compare
Retest this please |
Signed-off-by: Vasant Patil vapatil@linkedin.com
show runningconfiguration interfaces should read configDB instead of /etc/network/interfaces.
Also use the --key option of sonic-cfggen for more granular display.
Testing done:
- What I did
- How I did it
- How to verify it
- 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)
-->