Consider multiple netplan configuration YAML files:


How to pass to «netplan apply» name of the configuration YAML file?


You do not. The netplan configuration is the union of all the yaml files in the config directory; netplan apply calculates the complete configuration based on this set of files and renders it for passing to the backend. It is therefore invalid to ask netplan apply to apply only the config from one of these files, because any of the other configuration files might contain settings that modify the configuration of the interfaces listed in your one file, and the only way netplan knows whether this is the case is by loading all of the files together.

  • Excellent! Thanks for the quick answer. – pmor Aug 22 at 7:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.