--- /usr/share/netplan/netplan/cli/commands/apply.original.py +++ /usr/share/netplan/netplan/cli/commands/apply.py @@ -99,11 +99,14 @@ # if the interface is up, we can still apply some .link file changes for device in devices: logging.debug('netplan triggering .link rules for %s', device) - subprocess.check_call(['udevadm', 'test-builtin', - 'net_setup_link', - '/sys/class/net/' + device], - stdout=subprocess.DEVNULL, - stderr=subprocess.DEVNULL) + try: + subprocess.check_call(['udevadm', 'test-builtin', + 'net_setup_link', + '/sys/class/net/' + device], + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL) + except subprocess.CalledProcessError: + logging.debug('Ignoring device without syspath: %s', device) # apply renames to "down" devices for iface, settings in changes.items():