How does Freeconf implement User Data validation against Yang Model and its subsequent persistance in a DataStore #69
Unanswered
nishantrai5
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Wordings and Terminologies maybe incorrect. Please Ignore!
Assuming we have a YANG Model say "interface.yang". Reading the docs I figured Freeconf can serve Restconf endpoints against the Yang Model. Now when a user sends a post request to create a new interface, does the user data validation validation happen automatically against the Yang Model or do we re-implement the same in Go with various listeners. Same goes for things like Patch,Put and delete.
Additionally how are we persisting the user data in a datastore? Do we implement a way to update/get the user data once validation is successfull into a DB or something?
If both my above assumtion are correct, then is the YANG model only here for generating a unified way to create go structs?
Beta Was this translation helpful? Give feedback.
All reactions