-
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
Implement YAML state tracking and use it in the DBus API and netplan-try (LP: #1943120) (FR-1745) #231
Conversation
Codecov Report
@@ Coverage Diff @@
## main #231 +/- ##
=======================================
Coverage 99.04% 99.05%
=======================================
Files 57 57
Lines 9524 9592 +68
=======================================
+ Hits 9433 9501 +68
Misses 91 91
Continue to review full report at Codecov.
|
300ff5c
to
3f859f0
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.
I have a few non-blocking nitpicks but all in all LGTM.
Have you run the integration tests?
Thanks for your feedback. I've made the As this have only been nitpicks and the integration tests are passing (incl. the new one that explicitly checks for this case), too, let's get this merged.
|
Description
Allow to pass an optional
--state
parameter tonetplan try/apply
describing a directory that contains a netplan configuration tree/state (i.e./{etc,run,lib}/netplan/*.yaml
).Netplan will make use of this "old state" to calculate the delta of dropped interface definitions, like bridges/bonds/vlans/tunnels that have been configured before but are not part of the current YAML configuration anymore. It will then try to delete those virtual interfaces (via
ip link del dev IFACE
) if they still exist.The same functionality is used to roll back a
netplan try
command that failed or was rejected.Generally, the state needs to be provided manually. The DBus API (using io.netplan.Netplan.Config.Try/Apply) is an exception, as the previous state can be backed up automatically in this case.
Checklist
make check
successfully.make check-coverage
).