forked from canonical/netplan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Use the np_state->_private->dirty_fields structure for origin-fi…
…le tracking We track the list of filenames a specific (global) setting appeared in (origin-files) in a PATH like string, which separates the different files in reverse order of appearance, separated by colons. We use "__UNNAMED" as a placeholder when reading from non-files, e.g. an in memory YAML patch, provided by "netplan set". When writing back the specific setting we can look at the history of origin-files and decide if it should be written back to the latest file, to a (possibly new) fallback file (e.g. when it only appeared in __UNNAMED), or be dropped.
- Loading branch information
Showing
5 changed files
with
204 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters