diff options
Diffstat (limited to 'packages/python-google-compute-engine/google_compute_engine/distro_lib/el_6/utils.py')
-rw-r--r-- | packages/python-google-compute-engine/google_compute_engine/distro_lib/el_6/utils.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/python-google-compute-engine/google_compute_engine/distro_lib/el_6/utils.py b/packages/python-google-compute-engine/google_compute_engine/distro_lib/el_6/utils.py index 43b8769..9f9bb98 100644 --- a/packages/python-google-compute-engine/google_compute_engine/distro_lib/el_6/utils.py +++ b/packages/python-google-compute-engine/google_compute_engine/distro_lib/el_6/utils.py @@ -31,9 +31,19 @@ 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, dhclient_script=dhclient_script) + 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. |