Skip to content
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

Set correct List key type in gNMI simulator #1797

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

ihrasko
Copy link
Collaborator

@ihrasko ihrasko commented Mar 20, 2024

Previously, the List key was always set as a String for YangInstanceIdentifier generated from gNMI path. This prevented data from being merged into the datastore, as this type of key was not found in the datastore.

This commit addresses the issue by setting the correct value defined in the typeDefinition QName.

JIRA: LIGHTY-285
Signed-off-by: Peter Suna [email protected]
Signed-off-by: Ivan Hrasko [email protected]
(cherry picked from commit 78ae7fd)

Previously, the List key was always set as a String for
YangInstanceIdentifier generated from gNMI path. This prevented data
from being merged into the datastore, as this type of key was not found
in the datastore.

This commit addresses the issue by setting the correct value defined
in the typeDefinition QName.

JIRA: LIGHTY-285
Signed-off-by: Peter Suna <[email protected]>
Signed-off-by: Ivan Hrasko <[email protected]>
(cherry picked from commit 78ae7fd)
@ihrasko ihrasko force-pushed the 18.x-set-correct-list-key-type branch from 0b8cc05 to c0653b7 Compare March 20, 2024 15:36
@ihrasko ihrasko merged commit d67a8e6 into PANTHEONtech:18.x Mar 20, 2024
6 checks passed
@ihrasko ihrasko deleted the 18.x-set-correct-list-key-type branch March 20, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants