-
Notifications
You must be signed in to change notification settings - Fork 107
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
Device Returns Array for Each Interface #958
Comments
Hi achurak, apologies for the delayed response. I believe you queried However, ygot doesn't support unmarshalling directly at the list level -- you must either
|
@wenovus No worries, thank you for getting back to me! Correct, I queried
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I apologize in advance if it's something obvious and I'm missing it but I'm trying to do what I think is as basic as can be, simply pull information about interfaces from a cisco device using gnmi client, however I just can't unmarshal it correctly no matter what I try.
It looks like the json that the cisco device returns is an array, something like this:
but the generated model expects it to be a map keyed by the interface name.
I can even remove the
[]
from the string and the unmarshaling works after that (though it doesn't recognizeethernetCsmacd
as a correct value for interface type but it's a different problem), but I feel like it's a super hacky workaround and there's gotta be a better/correct way of handling this.The text was updated successfully, but these errors were encountered: