-
Committer:
Joshua Harlow
-
Date:
2014-12-01 20:32:46 UTC
-
mfrom:
(1044.1.4 cloud-init)
-
Revision ID:
harlowja@yahoo-inc.com-20141201203246-8689p73h4kv9wz16
Cleanups for netinfo.py
- Handle ipv6 route information not existing
gracefully (for systems that don't have it)
- Fix the getgateway function (broken due to
ipv4/ipv6 keys now existing in route info)
- Separate the centering of the route info ipv4
information from the centering of the ipv6 information
so that this looks prettier...
- Use try: except: else instead of settings value to
None and then later checking for None (more pythonic
this way)