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

How to set Path prefix Elements in gnmi_get #69

Open
openquer opened this issue May 31, 2019 · 2 comments
Open

How to set Path prefix Elements in gnmi_get #69

openquer opened this issue May 31, 2019 · 2 comments
Labels
clarify Needs further clarification gnmi

Comments

@openquer
Copy link

openquer commented May 31, 2019

I would like to give the prefix path and set the Elem field in below structure using gnmi_get.
p prefix
*github.com/openconfig/gnmi/proto/gnmi.Path {
Element: []string len: 0, cap: 0, nil,
Origin: "",
Elem: []*github.com/openconfig/gnmi/proto/gnmi.PathElem len: 0, cap: 0, nil,
Target: "CONFIG_DB",
XXX_NoUnkeyedLiteral: struct {} {},
XXX_unrecognized: []uint8 len: 0, cap: 0, nil,
XXX_sizecache: 0,}

@larryleguo
Copy link
Contributor

I am not sure if I understand your question. You are talking about gnmi_get, or gnmi_set?

@samribeiro samribeiro added the clarify Needs further clarification label Jul 8, 2020
@jacossio
Copy link

jacossio commented Mar 8, 2022

I may have the same question, for either gnmi_get or gnmi_set

Take the following request:

== getRequest:
path: <
  elem: <
    name: "interfaces"
  >

I would like to add "prefix" to the request like this:

prefix: <
    origin: "openconfig-interfaces"
>
path: <
  elem: <
    name: "interfaces"
  >

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

No branches or pull requests

4 participants