We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9737a commit 7f16a20Copy full SHA for 7f16a20
python/lib/cloudutils/networkConfig.py
@@ -41,7 +41,7 @@ def listNetworks():
41
return devs
42
@staticmethod
43
def getDefaultNetwork():
44
- cmd = bash("route -n|awk \'/^0.0.0.0/ {print $2,$8}\'")
+ cmd = bash("ip route show default | awk \'{print $3,$5}\'")
45
if not cmd.isSuccess():
46
logging.debug("Failed to get default route")
47
raise CloudRuntimeException("Failed to get default route")
0 commit comments