-
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
ygot.Diff generating gnmi update TypeVal as bool for leaf type yang.Empty #473
Comments
May be similar to #291 |
@robshakir Actually I want to get the gnmiNotifications encoded in JSON_IETF, wherein a YangEmpty leaf if not present should not create an update with bool(false). |
Reproduced, taking a look. |
Just added the above empty field to pathElemExampleChild, and the Diff tests failed
|
Thanks, added a similar test to the fix. |
in v.0.8.12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ygot v0.8.11
I have this yang defined
I created two Device{} structs with the following jsons
Object1:
Object2:
Now when I try to do a diff of dummy1Data and dummy2Data
diffData, err = ygot.Diff(dummy2Data, dummy1Data)
I get the following gnmi.Notification object
In the notification object, the yang.Empty path "primary" is set as value "bool". which is not conforming to the yang model. And as per https://tools.ietf.org/html/rfc7951#section-6.9 yang.Empty is actually a slice
The text was updated successfully, but these errors were encountered: