Skip to content

Replace Python gNMI cli with C++ - #74

Merged
Yi-Tseng merged 12 commits into
masterfrom
gNMI-cli-cpp
Mar 29, 2020
Merged

Yi-Tseng merged 12 commits into
masterfrom
gNMI-cli-cpp

Conversation

@pudelkoM

Copy link
Copy Markdown
Member
  • less dependency (static linked into a single binary)
  • better performance

@pudelkoM pudelkoM mentioned this pull request Dec 17, 2019
@codecov

codecov Bot commented Dec 17, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #74 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #74   +/-   ##
=======================================
  Coverage   81.68%   81.68%           
=======================================
  Files         306      306           
  Lines       22885    22885           
=======================================
  Hits        18694    18694           
  Misses       4191     4191           

Comment thread stratum/hal/bin/dummy/BUILD Resolved
@Yi-Tseng
Yi-Tseng marked this pull request as ready for review December 18, 2019 23:20
@SeanCondon

Copy link
Copy Markdown

Hi Max - I saw the title of this and wanted to let you know that we made a change to the gnmi_cli utility (in Go) coming from openconfig so that it would work with Stratum - it just required the option of turning off TLS
https://github.com/opennetworkinglab/gnmi/tree/master/cmd/gnmi_cli

It might be an alternative to having yet another "gnmi_cli"

@pudelkoM

pudelkoM commented Jan 7, 2020

Copy link
Copy Markdown
Member Author

That's great! Thanks for letting me know, Sean.

We might be able to drop the cli code completely then.

@Yi-Tseng

Yi-Tseng commented Jan 8, 2020 •

Copy link
Copy Markdown
Contributor

Hi Max - I saw the title of this and wanted to let you know that we made a change to the gnmi_cli utility (in Go) coming from openconfig so that it would work with Stratum - it just required the option of turning off TLS
https://github.com/opennetworkinglab/gnmi/tree/master/cmd/gnmi_cli

It might be an alternative to having yet another "gnmi_cli"

Hi @SeanCondon Thanks for the update
Is there any document for gnmi_cli tool?
Can we use gNMI path (e.g. /interfaces/interface[name=eth0]/state) instead of providing entire protobuf message to the tool ?
NVM, I found query option, should also works, right?

@SeanCondon

Copy link
Copy Markdown

Hi Yi. I haven't tried the query option. I'll check if Adib has any experience of it. The reason we chose it is because it comes straight from the gNMI authors and we thought that's what customers would be likely to use.

We have some documentation for it on our own documentation site:
https://docs.onosproject.org/onos-config/docs/gnmi/

and more at:
https://github.com/onosproject/simulators/blob/master/docs/gnmi/gnmi_user_manual.md

@Yi-Tseng Yi-Tseng mentioned this pull request Jan 10, 2020
@Yi-Tseng Yi-Tseng added the gNMI Things related to gNMI label Mar 7, 2020
@Yi-Tseng
Yi-Tseng self-requested a review March 7, 2020 08:02

@Yi-Tseng Yi-Tseng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge this PR first, and consider using the Go verison in the future.

@Yi-Tseng
Yi-Tseng merged commit 0bd78c4 into master Mar 29, 2020
@Yi-Tseng
Yi-Tseng deleted the gNMI-cli-cpp branch March 29, 2020 06:50
ffoulkes added a commit to ffoulkes/stratum that referenced this pull request Nov 15, 2024
Backport ES2K changes to ipdk-io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gNMI Things related to gNMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants