summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
authorchengcheng-chcheng <63850735+chengcheng-chcheng@users.noreply.github.com>2020-05-08 01:01:22 +0800
committerGitHub <noreply@github.com>2020-05-07 11:01:22 -0600
commitb24b376fabd54e4dc96ffc1b90a984addf42fc4c (patch)
tree88f0941528c83dd659b1c7fb9d55a842aa149d74 /cloudinit/distros
parent1c2d9881341f6335cc47a8a8d63df8759d8c2073 (diff)
downloadvyos-cloud-init-b24b376fabd54e4dc96ffc1b90a984addf42fc4c.tar.gz
vyos-cloud-init-b24b376fabd54e4dc96ffc1b90a984addf42fc4c.zip
make suse and sles support 127.0.1.1 (#336)
Move from 127.0.0.1 to 127.0.1.1 for localhost IP addr for opensuse and sles
Diffstat (limited to 'cloudinit/distros')
-rw-r--r--cloudinit/distros/opensuse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cloudinit/distros/opensuse.py b/cloudinit/distros/opensuse.py
index dd56a3f4..68028d20 100644
--- a/cloudinit/distros/opensuse.py
+++ b/cloudinit/distros/opensuse.py
@@ -144,6 +144,9 @@ class Distro(distros.Distro):
return default
return hostname
+ def _get_localhost_ip(self):
+ return "127.0.1.1"
+
def _read_hostname_conf(self, filename):
conf = HostnameConf(util.load_file(filename))
conf.parse()