Closed JahedulAnowar closed 10 months ago
Hey @JahedulAnowar ,
Thanks for your message. Try without the origin, simply as: /interfaces/interface
. I know for the fact, that Arista has such an issue: it responds with the same error if you include openconfig-*
origin, whilst it accepts eos_native
origin.
Let me know.
Best, Anton
@akarneliuk , Thank your for the response. I tried it, same error.
However, I added openconfig-platform:
to the path as origin and it worked.
full path:
paths = [
"openconfig-platform:openconfig-interfaces:interfaces/interface",
]
debug resposne snippet:
.
.
.
gNMI request
---------------------------------------------------------------------------------------------------------------------------------------------------------
prefix {
}
path {
origin: "openconfig-platform"
elem {
name: "openconfig-interfaces:interfaces"
}
elem {
name: "interface"
}
}
.
.
.
Thanks for trying this out. I would say, this is a question for gnmi implementation at NEC, as this not quite how the gnmi path is supposed to be defined: module name shall not be part of the key, which is in this case. Best Regards, Anton Karneliukhttps://karneliuk.com -------- Original message --------From: Jahedul Anowar @.>Date: Mon, 16 Oct 2023, 10:18To: akarneliuk/pygnmi @.>Cc: Anton Karneliuk @.>, Mention @.>Subject: Re: [akarneliuk/pygnmi] Invalid Path error (Issue #135) @akarneliuk , Thank your for the response. I tried it, same error. However, I added openconfig-platform: to the path as origin and it worked. full path: paths = [ "openconfig-platform:openconfig-interfaces:interfaces/interface", ]
prefix { } path { origin: "openconfig-platform" elem { name: "openconfig-interfaces:interfaces" } elem { name: "interface" } } . . .
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Thank you for the explanation.
I seem to be getting "invalid path" error. But I can get data from the same path using gNMIc:
$ gnmic --config insecure.yml get --path "openconfig-interfaces:interfaces/interface"
My code:
Output:
Am I making a mistake somewhere? Thanks.