summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorRobert Schweikert <rjschwei@suse.com>2019-01-28 17:06:58 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-01-28 17:06:58 +0000
commit3f12012eba2aabb6ca7b3ef70bc33a4aa1edada4 (patch)
tree5a803014ea6d5746f2f5985d3eee9f4bfe1e2b1d /cloudinit
parent7a6ed1a23aeb26efaebc818a1a7cc7f7c6757b32 (diff)
downloadvyos-cloud-init-3f12012eba2aabb6ca7b3ef70bc33a4aa1edada4.tar.gz
vyos-cloud-init-3f12012eba2aabb6ca7b3ef70bc33a4aa1edada4.zip
sysconfig: On SUSE, use STARTMODE instead of ONBOOT
ONBOOT is not recognized on openSUSE and SUSE Linux Enterprise, add the STARTMODE setting LP: #1799540
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/net/sysconfig.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/net/sysconfig.py b/cloudinit/net/sysconfig.py
index fd8e5010..19b3e60c 100644
--- a/cloudinit/net/sysconfig.py
+++ b/cloudinit/net/sysconfig.py
@@ -273,6 +273,7 @@ class Renderer(renderer.Renderer):
('USERCTL', False),
('NM_CONTROLLED', False),
('BOOTPROTO', 'none'),
+ ('STARTMODE', 'auto'),
])
# If these keys exist, then their values will be used to form
@@ -367,6 +368,7 @@ class Renderer(renderer.Renderer):
iface_cfg.name))
if subnet.get('control') == 'manual':
iface_cfg['ONBOOT'] = False
+ iface_cfg['STARTMODE'] = 'manual'
# set IPv4 and IPv6 static addresses
ipv4_index = -1