netplan disables wake-on-lan

Bug #2029342 reported by Jurjen Bokma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
Triaged
Wishlist
Unassigned

Bug Description

I'm not sure this counts as a bug.
We'd like to leave the wake-on-lan setting untouched, but NetPlan seems to be able to set it to any value, but not to leave it as is.

On Ubuntu 22.04 with netplan.io 0.105-0ubuntu2~22.04.3, we don't specify any 'wakeonlan' setting in /etc/netplan/*, yet NetPlan generates a file
  /run/systemd/network/10-netplan-eth0.link
that turns wake-on-lan off:
'''
[Link]
Name=eth0
WakeOnLan=off
'''

I think this is because NetPlan's default for the wakeonlan setting is 'off'.
However, we'd like to be able to leave whatever wake-on-lan setting is on the nic to remain untouched.
I don't wish to express an opinion on the wisdom of a default of 'off'. Being able to specify 'wakeonlan=nomodify' would suffice. But there doesn't seem to be such an option (short of editing the generated /run/systemd/network/10-netplan-eth0.link directly.

Kind Regards
Jurjen

Revision history for this message
Lukas Märdian (slyon) wrote (last edit ):

This is a valid feature request, not necessarily a bug. Netplan's default behavior is having "wakeonlan: false", so we cannot easily change that default.

But we could probably port the "wakeonlan" boolean value to something similar as NetplanTristate type, accepting an additional value.

As a workaround for now, you can create an override config:
$ cat /etc/systemd/network/10-netplan-eth0.link.d/override.conf
[Link]
WakeOnLan=

Changed in netplan:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.