Skip to content

Instantly share code, notes, and snippets.

@whiteley
Created December 23, 2015 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whiteley/cbc4e9ef217310410878 to your computer and use it in GitHub Desktop.
Save whiteley/cbc4e9ef217310410878 to your computer and use it in GitHub Desktop.
diff --git a/lib/ohai/plugins/linux/network.rb b/lib/ohai/plugins/linux/network.rb
index 689001d..36898b9 100644
--- a/lib/ohai/plugins/linux/network.rb
+++ b/lib/ohai/plugins/linux/network.rb
@@ -77,7 +77,7 @@ Ohai.plugin(:Network) do
# 3) and since we're at it, let's populate some :routes attributes
# (going to do that for both inet and inet6 addresses)
def check_routing_table(family, iface)
- so = shell_out("ip -o -f #{family[:name]} route show")
+ so = shell_out("ip -o -f #{family[:name]} route show table default")
so.stdout.lines do |line|
line.strip!
Ohai::Log.debug("Parsing #{line}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment