Skip to content
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

Introduce netplan validate #335

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Mar 10, 2023

  1. netplan: add "validate" command

    Netplan validate can be used to check the configuration before trying to
    apply it. It's useful when one is making changes in the configuration
    and want to periodically check if it is still valid without having to call
    "apply" or "generate".
    
    The validate command will load, parse and validate the configuration
    without saving anything to disk.
    daniloegea committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    084a554 View commit details
    Browse the repository at this point in the history
  2. tests: add some tests for the new validate command

    Due to the change in netplan.cli.core (which prevents it of raising
    exception (which were not being handled and resulting in crashes)), a
    small change was made in the cli tests so the main() method is not
    called directly anymore.
    daniloegea committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    dcba5b2 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2023

  1. misc: update the bash completion script

    Add the new "netplan validate" command to it.
    daniloegea committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    21c7cfc View commit details
    Browse the repository at this point in the history
  2. validate: implement support for --debug

    --debug will show what files are being processed and which ones were
    shadowed.
    daniloegea committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    5b5ac6d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b90224b View commit details
    Browse the repository at this point in the history