diff options
Diffstat (limited to 'packages/python-google-compute-engine/google_compute_engine/distro_lib/debian_8/utils.py')
-rw-r--r-- | packages/python-google-compute-engine/google_compute_engine/distro_lib/debian_8/utils.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/python-google-compute-engine/google_compute_engine/distro_lib/debian_8/utils.py b/packages/python-google-compute-engine/google_compute_engine/distro_lib/debian_8/utils.py index f58e09d..7872d1b 100644 --- a/packages/python-google-compute-engine/google_compute_engine/distro_lib/debian_8/utils.py +++ b/packages/python-google-compute-engine/google_compute_engine/distro_lib/debian_8/utils.py @@ -31,8 +31,18 @@ class Utils(utils.Utils): logger: logger object, used to write to SysLog and serial port. dhclient_script: string, the path to a dhclient script used by dhclient. """ + helpers.CallEnableRouteAdvertisements(interfaces, logger) helpers.CallDhclientIpv6(interfaces, logger) + def DisableIpv6(self, interfaces, logger): + """Disable Ipv6 by giving up the DHCP lease using dhclient. + + Args: + interface: string, the output device names for enabling IPv6. + logger: logger object, used to write to SysLog and serial port. + """ + helpers.CallDhclientIpv6(interfaces, logger, None, release_lease=True) + def EnableNetworkInterfaces(self, interfaces, logger, dhclient_script=None): """Enable the list of network interfaces. |