From f9989731c05d979649689bfeec32bedd24c2440a Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Fri, 13 Dec 2019 17:48:31 -0500 Subject: cloudinit/netinfo: remove unused getgateway (#111) --- cloudinit/netinfo.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'cloudinit') 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 = "." -- cgit v1.2.3