-
Notifications
You must be signed in to change notification settings - Fork 874
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schema): use netplan API to validate network-config schema
Validation of network-config version: 2 will be performed on systems with python3-netplan installed which delivers a python API netplan.Parser which allows cloud-init to parse and determine specific netplan schema errors. The netplan API is only present on Ubuntu Noble in the python3-netplan deb package. Add netplan_validate_network_config function to use netplan API when present. Wire this function into runtime schema validation at initial boot to warn about network-config invalid version: 2 schema. Also wire this function into cloud-init schema command to warn and annotate specific schema errors by line in datasource provided network-config.
- Loading branch information
1 parent
ea95a95
commit 9391ebb
Showing
4 changed files
with
242 additions
and
27 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
Oops, something went wrong.