-
-
Notifications
You must be signed in to change notification settings - Fork 32
gnmic and JunOS #561
Comments
can you try |
I have tested with the path you mentioned and same error exists. Problem is gnmic automatically adds "/" as prefix. I have tested it with pygnmi as I said with same path and it works. My environment is docker-compose and here is docker-compose config: subscriptions: |
I figured it out. Your path works but I changed some configs too. However, is it possible to support path format that I am using too? |
Can you point out where does gnmic add a
The first one gets parsed to a gNMI path with 3 path elements: |
As you can see on #561 (comment) inside logs it shows with Anyway, Roman path worked correctly. My question is why |
gNMIc is not appending the I will try to detail it a bit more: It works with pygnmi because pygnmi assumes that the first section is the There is no right or wrong here since there is no spec that dictates how a gNMI path should be formatted as xpath. EDIT: |
Thank you Karim for your description about prefix. About the path, there is no right or wrong which you mentioned. However, I think it is better to have both formats if it is possible on gnmic. |
@VahidTa as @karimra pointed out, if in a user-provided path So my take is gnmic is more accurate here as it allows you to both set the origin in a form of ADD: |
@hellt you can see that for example https://yangcatalog.org/yang-search/yang_tree/openconfig-platform@2022-02-02 also uses the path format that I mentioned first. This site is funded by IETF and I get the path from there to test the gnmic for my project. |
@VahidTa I've asked openconfig users to see if that sensor path is not vendor-specific. |
@hellt That's great and thank you for your clean answer to my concern. So, this inconsistency in tools needs to be solved because this makes it hard to use one standard path/sensor value. |
@VahidTa you can ask pygnmi author to reconsider his approach to path parsing - akarneliuk/pygnmi#56 |
I test gnmic with vMX Junos and I got error below:
nmic1 | 2022/03/24 10:41:28.381807 [gnmic] target "10.1.181.92:57400", subscription sub1 rcv error: rpc error: code = InvalidArgument desc = Invalid subscription path: /openconfig-platform:components/component/cpu
I have tested same path with pygnmi and it works.
The text was updated successfully, but these errors were encountered: