summaryrefslogtreecommitdiff
path: root/cloud-init.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-08-22 23:24:08 -0400
committerScott Moser <smoser@ubuntu.com>2011-08-22 23:24:08 -0400
commit5e0edd8cf0a8431d453649037da913285e28850f (patch)
tree26b915b89803f97bc63ebb98a97e3e6ff12e236d /cloud-init.py
parenta3373fb60aac7f3fee9ec28afebc0e55d28d5438 (diff)
downloadvyos-cloud-init-5e0edd8cf0a8431d453649037da913285e28850f.tar.gz
vyos-cloud-init-5e0edd8cf0a8431d453649037da913285e28850f.zip
Add some network debug info printed to the console
When 'cloud-init start' (network) runs, it will print information about the systems network info to the console. This will help in debugging instances. LP: #828186
Diffstat (limited to 'cloud-init.py')
-rwxr-xr-xcloud-init.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cloud-init.py b/cloud-init.py
index 0ba00699..c38512fe 100755
--- a/cloud-init.py
+++ b/cloud-init.py
@@ -24,6 +24,7 @@ import cloudinit
import cloudinit.util as util
import cloudinit.CloudConfig as CC
import cloudinit.DataSource as ds
+import cloudinit.netinfo as netinfo
import time
import logging
import errno
@@ -87,6 +88,8 @@ def main():
nonet_path = "%s/%s" % (cloudinit.get_cpath("data"), "no-net")
if cmd == "start":
+ print netinfo.debug_info()
+
stop_files = ( cloudinit.get_ipath_cur("obj_pkl"), nonet_path )
# if starting as the network start, there are cases
# where everything is already done for us, and it makes