-
Notifications
You must be signed in to change notification settings - Fork 236
Extend KeepConfiguration= functionality #409
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
e71e865
7a1914e
82442d8
8ae3b07
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -211,7 +211,7 @@ struct netplan_net_definition { | |
| /* status options */ | ||
| gboolean optional; | ||
| NetplanOptionalAddressFlag optional_addresses; | ||
| gboolean critical; | ||
| char* keep_configuration; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To make things simpler, we should use an enum {
NETPLAN_CRITICAL_TRUE,
NETPLAN_CRITICAL_FALSE,
NETPLAN_CRITICAL_STATIC,
...,
} CriticalOptions;Please, check my comments in the summary.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea! Let me revamp
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've been trying to rework this, but I'm not sure if I'm on the right track, as quite a few tests are failing or even segfaulting. |
||
|
|
||
| /* addresses */ | ||
| gboolean dhcp4; | ||
|
|
||
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.
question: Did you double-check if something similar to
KeepConfiguration=exists for NetworkManager these days? I'd like to align the wording between the two backends. If it does not exist it might be fine re-using the systemd-networkd terminology here. I need to think about this a bit more.