You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the path is fully specified maybe we should use the last component as the field key, in this case oper_speed. I think this gives a better progression as you increase the length of the path:
path: /state
key: port/ethernet/oper_speed
path: /state/port[port-id=*]
key: ethernet/oper_speed
path: /state/port[port-id=*]/ethernet
key: oper_speed
path: /state/port[port-id=*]/ethernet/oper-speed
key: oper_speed
I created #6848 with this strategy (and some test changes), what do you think about this method?
Hello
when we request a specific field (full path) the plugin crashes and stops
Sample config :
And the crash info :
Actually in this case at line 285 of the cisco_telemetry_gnmi.go the aliasPath == key therefor key[len(aliasPath)+1:] failed.
if len(aliasPath) > 0 {
key = key[len(aliasPath)+1:]
}
To avoid that I added a second check like that :
if len(aliasPath) > 0 && len(key) != len(aliasPath) {
key = key[len(aliasPath)+1:]
}
Could you add this fix ???
BR
David
The text was updated successfully, but these errors were encountered: