Skip to content
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

[doc] Add sonic CLI design document. #205

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

yongcanwang00
Copy link

@liatgrozovik
Copy link

all documents should be in md format. any reason why you have it in doc format? in this way it is impossible to comment on specific line as we recently did with other design reviews lately.

@liatgrozovik
Copy link

Your examples as part of '2.1. How to reuse current CLI?' is for linux commands only. Can you please provide example also for current SONiC CLI commands which are not Linux based but were added as part of few features implementations. Some utilities added as part of sonic-utility git

@liatgrozovik
Copy link

With this solution should we still use the sudo for configuration?

@liatgrozovik
Copy link

I would like to see also a definition of what is the way SONiC configuration commands should look like. something we presented for show commands.

@liatgrozovik
Copy link

According to the diagram provided in '2. Major design' you have direct connection to BGP docker (Quagga or FRR), is it for show command only? if not, will you allow configuring it not via the config_db?

@liatgrozovik
Copy link

Planning wise - will you include all available SONiC commands under this design implementation? will it be allowed to add more CLI commands in the current way? If so, i think we should not allow it as it will have 2 different ways for CLI commands and we should have only 1 way.

@yongcanwang00
Copy link
Author

Hi liatgrozovik,

Thank you for your comments.
Yes, I can add examples for current SONiC CLI commands.
Only sudo user can enter to configure mode.
You know configDB only support a few features of Quagga, we prefer to support all features on cli for debugging. Any configuration changed by this CLI are not committed to save unless this is supported by configDB.
This CLI have include many available SONIC commands but not all.
Currently, this CLI is just an option. I think different user prefers different cli style, and they can choose to provide which cli to their end user. We provide this CLI to end user as the only 1 in Alibaba. Many commands are just an wrapper on the available SONIC commands. But available SONIC commands are not visible for end user. We are open if community wants to select one cli.

@yongcanwang00
Copy link
Author

Add md format document: SONIC_CLI.md

@lihuay
Copy link
Collaborator

lihuay commented Oct 2, 2022

@yongcanwang00 @liatgrozovik : is this hld still valid or of interest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants