-
Notifications
You must be signed in to change notification settings - Fork 11
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
Refactor YANG bootstrap from online to offline #326
Comments
As part of this task we might consider making some other changes to our model:
This would make it easier to support having static factory-configs, though there are still problems to solve there I think (SSH server keys come to mind). |
Further discussions on this topic have yielded the following ideas:
|
Should we make a break-down of this task? |
Great idea, with the work of @mattiaswal we now know more about it, and the work has also shifted a bit. It looks something like this (to be added to the issue summary if we agree):
There are more steps, but focus has moved slightly from speeding up boot to enabling upgrade of sysrepo to get rousette integrated so we get RESTCONF support for the proper WebUI. |
Are these things part of this task or should we spawn or create subtasks? |
@jovatn + @mattiaswal I've made a breakdown into more tasks now. Would've been great if there was a "depends-on" relationship for issues on GitHub ... anyway, we should have a CCB meeting and plan these. |
Fixed in PR #460. |
Currently, loading of all YANG models at runtime takes a LOT of time -- on the main quad-core Cortex A72 platform it takes up to 15 seconds!
The reason for us not using the defaults created offline (at build time) is that sysrepo only allows initializing the factory datastore (per yang model) when loading the YANG model.
After discussions in the team we think one avenue to explore here is to patch sysrepo to unlock loading factory using
sysrepoctl
at least once at boot. This would allow us to load device specific factory data, e.g.admin
user's default password (unique per device).The text was updated successfully, but these errors were encountered: