diff options
author | Vlastimil Holer <vlastimil.holer@gmail.com> | 2012-10-03 13:26:36 +0200 |
---|---|---|
committer | Vlastimil Holer <vlastimil.holer@gmail.com> | 2012-10-03 13:26:36 +0200 |
commit | 1567b1bc3b2948aa80e0b150d34542e2ff02428f (patch) | |
tree | 4503d76fd5622dfc9b64ed7e0625208bb0044a17 /cloudinit | |
parent | 9eaafc7379e0c6ded70a851a703a5bc5c7e56e42 (diff) | |
download | vyos-cloud-init-1567b1bc3b2948aa80e0b150d34542e2ff02428f.tar.gz vyos-cloud-init-1567b1bc3b2948aa80e0b150d34542e2ff02428f.zip |
Delete old ConfigDrive's code.
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/sources/DataSourceOpenNebula.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/cloudinit/sources/DataSourceOpenNebula.py b/cloudinit/sources/DataSourceOpenNebula.py index ad65a36e..325269f6 100644 --- a/cloudinit/sources/DataSourceOpenNebula.py +++ b/cloudinit/sources/DataSourceOpenNebula.py @@ -95,25 +95,6 @@ class DataSourceOpenNebula(sources.DataSource): # most likely user specified return False - # update interfaces and ifup only on the local datasource - # this way the DataSourceConfigDriveNet doesn't do it also. -# if 'network-interfaces' in md and self.dsmode == "local": -# if md['dsmode'] == "pass": -# log.info("updating network interfaces from configdrive") -# else: -# log.debug("updating network interfaces from configdrive") -# -# util.write_file("/etc/network/interfaces", -# md['network-interfaces']) -# try: -# (out, err) = util.subp(['ifup', '--all']) -# if len(out) or len(err): -# log.warn("ifup --all had stderr: %s" % err) -# -# except subprocess.CalledProcessError as exc: -# log.warn("ifup --all failed: %s" % (exc.output[1])) -# - if dsmode != self.dsmode: LOG.debug("%s: not claiming datasource, dsmode=%s", self, dsmode) return False |