summaryrefslogtreecommitdiff
path: root/cloudinit/netinfo.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-11-30 21:35:38 -0800
committerJoshua Harlow <harlowja@gmail.com>2014-11-30 21:35:38 -0800
commit07c2684be477cdc6341646469d4ae365b52a0c1e (patch)
tree59e3284b31e92435edabc0251bf5db485413c60b /cloudinit/netinfo.py
parent8ca86a7000933ef3daed357d35fef07f7027b5fc (diff)
downloadvyos-cloud-init-07c2684be477cdc6341646469d4ae365b52a0c1e.tar.gz
vyos-cloud-init-07c2684be477cdc6341646469d4ae365b52a0c1e.zip
Fix some whitespace issues
Diffstat (limited to 'cloudinit/netinfo.py')
-rw-r--r--cloudinit/netinfo.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/cloudinit/netinfo.py b/cloudinit/netinfo.py
index a1343031..fb40cc0d 100644
--- a/cloudinit/netinfo.py
+++ b/cloudinit/netinfo.py
@@ -107,7 +107,6 @@ def route_info():
if not line:
continue
toks = line.split()
-
# FreeBSD shows 6 items in the routing table:
# Destination Gateway Flags Refs Use Netif Expire
# default 10.65.0.1 UGS 0 34920 vtnet0
@@ -119,13 +118,11 @@ def route_info():
toks[0] == "Destination" or toks[0] == "Internet" or
toks[0] == "Internet6" or toks[0] == "Routing"):
continue
-
if len(toks) < 8:
toks.append("-")
toks.append("-")
toks[7] = toks[5]
toks[5] = "-"
-
entry = {
'destination': toks[0],
'gateway': toks[1],
@@ -136,7 +133,6 @@ def route_info():
'use': toks[6],
'iface': toks[7],
}
-
routes['ipv4'].append(entry)
try:
@@ -149,7 +145,6 @@ def route_info():
if not line:
continue
toks = line.split()
-
if (len(toks) < 6 or toks[0] == "Kernel" or
toks[0] == "Proto" or toks[0] == "Active"):
continue