summaryrefslogtreecommitdiff
path: root/cloudinit/net/sysconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/net/sysconfig.py')
-rw-r--r--cloudinit/net/sysconfig.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cloudinit/net/sysconfig.py b/cloudinit/net/sysconfig.py
index b0eecc44..a930e612 100644
--- a/cloudinit/net/sysconfig.py
+++ b/cloudinit/net/sysconfig.py
@@ -367,6 +367,11 @@ class Renderer(renderer.Renderer):
if new_key:
iface_cfg[new_key] = old_value
+ # only set WakeOnLan for physical interfaces
+ if ('wakeonlan' in iface and iface['wakeonlan'] and
+ iface['type'] == 'physical'):
+ iface_cfg['ETHTOOL_OPTS'] = 'wol g'
+
@classmethod
def _render_subnets(cls, iface_cfg, subnets, has_default_route, flavor):
# setting base values