diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2019-12-13 17:48:31 -0500 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2019-12-13 15:48:31 -0700 |
commit | f9989731c05d979649689bfeec32bedd24c2440a (patch) | |
tree | 81be5dc7af1bb2cb55efd932a164ae2995c0468a /cloudinit/netinfo.py | |
parent | f5262e29cdbb5146e4e53f31f4d53fefe4a4052f (diff) | |
download | vyos-cloud-init-f9989731c05d979649689bfeec32bedd24c2440a.tar.gz vyos-cloud-init-f9989731c05d979649689bfeec32bedd24c2440a.zip |
cloudinit/netinfo: remove unused getgateway (#111)
Diffstat (limited to 'cloudinit/netinfo.py')
-rw-r--r-- | cloudinit/netinfo.py | 12 |
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 = "." |