forked from pool/cloud-init
This commit is contained in:
parent
fa9ea3d43e
commit
7a8b456518
@ -39,7 +39,7 @@
|
|||||||
+ iface_info['gateway'] = ipv4.search(
|
+ iface_info['gateway'] = ipv4.search(
|
||||||
+ route_info).group(0)
|
+ route_info).group(0)
|
||||||
+ elif 'default gw' in routes:
|
+ elif 'default gw' in routes:
|
||||||
+ iface_info['gateway'] = ipv4.search(route_info).group(0)
|
+ iface_info['gateway'] = ipv4.search(routes).group(0)
|
||||||
+
|
+
|
||||||
# If ipv6 is enabled, device will have multiple IPs, so we need to
|
# If ipv6 is enabled, device will have multiple IPs, so we need to
|
||||||
# update the dictionary instead of overwriting it...
|
# update the dictionary instead of overwriting it...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user