summaryrefslogtreecommitdiff
path: root/cloudinit/netinfo.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2019-12-18 11:02:04 -0700
committergit-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com>2019-12-18 20:20:10 +0000
commit87e0baf5904f905b1d1fb306be2c59a8e3c49b16 (patch)
tree58d9be73cf3f85ce1e59b1c35e9f33b7eb2c793c /cloudinit/netinfo.py
parent14761d228c88e6c81d2b1fdf3cfc2ee5bdc7f9db (diff)
downloadcloud-init-git-87e0baf5904f905b1d1fb306be2c59a8e3c49b16.tar.gz
19.4-1-g8c96cbc1-0ubuntu1 (patches unapplied)
Imported using git-ubuntu import.
Diffstat (limited to 'cloudinit/netinfo.py')
-rw-r--r--cloudinit/netinfo.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/cloudinit/netinfo.py b/cloudinit/netinfo.py
index e91cd263..6ba21f4d 100644
--- a/cloudinit/netinfo.py
+++ b/cloudinit/netinfo.py
@@ -358,18 +358,6 @@ def route_info():
return routes
-def getgateway():
- try:
- routes = route_info()
- except Exception:
- pass
- else:
- for r in routes.get('ipv4', []):
- if r['flags'].find("G") >= 0:
- return "%s[%s]" % (r['gateway'], r['iface'])
- return None
-
-
def netdev_pformat():
lines = []
empty = "."