summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Marano <zmarano@google.com>2019-09-10 15:16:35 -0700
committerGitHub <noreply@github.com>2019-09-10 15:16:35 -0700
commit140c4b240e7b1c8ad811a6994037f5b51587da03 (patch)
treee72e65c0471792dc86491a47428c9ee109241c68
parent1fda9db94741a72e1985ab41fc73becdd91a11d1 (diff)
downloadgoogle-compute-image-packages-140c4b240e7b1c8ad811a6994037f5b51587da03.tar.gz
Add missing DisableIpv6 function for SLES 12 and default case. (#846)
-rw-r--r--packages/python-google-compute-engine/google_compute_engine/distro_lib/sles_12/utils.py9
-rw-r--r--packages/python-google-compute-engine/google_compute_engine/distro_lib/utils.py9
2 files changed, 18 insertions, 0 deletions
diff --git a/packages/python-google-compute-engine/google_compute_engine/distro_lib/sles_12/utils.py b/packages/python-google-compute-engine/google_compute_engine/distro_lib/sles_12/utils.py
index a8bd486..aacfc47 100644
--- a/packages/python-google-compute-engine/google_compute_engine/distro_lib/sles_12/utils.py
+++ b/packages/python-google-compute-engine/google_compute_engine/distro_lib/sles_12/utils.py
@@ -39,6 +39,15 @@ class Utils(utils.Utils):
"""
pass
+ def DisableIpv6(self, interfaces, logger):
+ """Disable Ipv6.
+
+ Args:
+ interface: string, the output device names for enabling IPv6.
+ logger: logger object, used to write to SysLog and serial port.
+ """
+ pass
+
def EnableNetworkInterfaces(self, interfaces, logger, dhclient_script=None):
"""Enable the list of network interfaces.
diff --git a/packages/python-google-compute-engine/google_compute_engine/distro_lib/utils.py b/packages/python-google-compute-engine/google_compute_engine/distro_lib/utils.py
index df1d45c..50f4f98 100644
--- a/packages/python-google-compute-engine/google_compute_engine/distro_lib/utils.py
+++ b/packages/python-google-compute-engine/google_compute_engine/distro_lib/utils.py
@@ -37,6 +37,15 @@ class Utils(object):
"""
pass
+ def DisableIpv6(self, interfaces, logger):
+ """Disable Ipv6.
+
+ Args:
+ interface: string, the output device names for enabling IPv6.
+ logger: logger object, used to write to SysLog and serial port.
+ """
+ pass
+
def EnableNetworkInterfaces(self, interfaces, logger, dhclient_script=None):
"""Enable the list of network interfaces.