-
Notifications
You must be signed in to change notification settings - Fork 194
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
YAML consolidation prelude: High-level libnetplan bindings (FR-702) #250
YAML consolidation prelude: High-level libnetplan bindings (FR-702) #250
Conversation
Codecov Report
@@ Coverage Diff @@
## main #250 +/- ##
==========================================
+ Coverage 99.10% 99.11% +0.01%
==========================================
Files 58 60 +2
Lines 10078 10206 +128
==========================================
+ Hits 9988 10116 +128
Misses 90 90
Continue to review full report at Codecov.
|
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.
I really like the way you're setting up the python bindings for libnetplan here.
I left a few comments inline that we should improve upon, but nothing big or critical.
This is another really sleek PR, thanks for that!
60862fd
to
fc4b8fa
Compare
The utils module was getting kind of crowded.
We're using the iterator as the introduction point of the transition, but the idea is to use these classes as the main way to interact with the C library. Note the temporary GlobalState class that has been introduced as a temporary measure. It should be gone by the end of the patchset. :) V2: * rename struct devtype_def_iter to netdef_pertype_iter
Co-authored-by: Lukas Märdian <slyon@ubuntu.com>
fc4b8fa
to
f55b847
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.
Thank you! All remarks have been addressed, LGTM!
Merging.
Description
This PR introduces some high-level Python bindings. This is mostly a skeleton that will be populated with the needed elements in later PRs, which will remain in draft state until this one is merged.
Checklist
make check
successfully.make check-coverage
).