-
Notifications
You must be signed in to change notification settings - Fork 13
Major refactor of how sysrepo callbacks is used in confd #1209
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
Conversation
9e23bca to
2a22330
Compare
2966084 to
fd926f5
Compare
…upgrade resides) To verify the bootorder is still valid after that part of the suite has run.
Sysrepo only care about model changes, but we want the system configuration. Therefore add a common callback for all modules and handle dependencies between the modules, if someone should be run before another for example.
fd926f5 to
4a59028
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work on this! I only have a couple of comments, one of which I think needs your attention.
Also, considering the amount of changes in this daemon related to memory handling in particular, and C code in general, I suggest you run Coverity Scan on the branch before we consider merging it.
Sysrepo lack the functionallity for if change in model A also should demand actions of model B. Previous we have handled this by having callbacks for keystore changes in for example infix-services to be able to reconfigure SSH on asymmetric key changes. This commit instead add a pass where dependencies are found and added to the diff.
Not needed anymore, the configuration change is sequential in change_cb.
4a59028 to
98b30d7
Compare
|
Coverity Last Build Status: In-queue. Your build is in the queue to be analyzed. There are 93 builds ahead of it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work on this, very neat and clean!
We could also see Coverity Scan (eventually) didn't find anything relevant either, so this one is a GO from me! (After release plz ;-)
Instead of having separate callbacks for each model, use one callback.
This allows us to handle dependencies between models in a controlled way,
Adding dependencies to the diff, before running the real change "callbacks".
Also fix some minor bugs.
Most likely fixes #855
Description
Checklist
Tick relevant boxes, this PR is-a or has-a: