Consider multiple netplan configuration YAML files:
How to pass to «netplan apply» name of the configuration YAML file?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
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.