summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = "."