summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCooper Lees <me@cooperlees.com>2020-06-30 11:38:44 -0700
committerCooper Lees <me@cooperlees.com>2020-06-30 12:01:25 -0700
commit2444d8d8a0dcf0731adcf7209c6aa8069a81217b (patch)
tree7a0648a3758016814fb77fd3170befa3d51bb24b
parent9ea67339da40ee2831777708297b61e473fc7aae (diff)
downloadohai-2444d8d8a0dcf0731adcf7209c6aa8069a81217b.tar.gz
Add a Rubular Permalink
- Show the regex working ... Signed-off-by: Cooper Lees <me@cooperlees.com>
-rw-r--r--lib/ohai/plugins/linux/network.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ohai/plugins/linux/network.rb b/lib/ohai/plugins/linux/network.rb
index 44a2e47d..3ed7dfd6 100644
--- a/lib/ohai/plugins/linux/network.rb
+++ b/lib/ohai/plugins/linux/network.rb
@@ -108,6 +108,7 @@ Ohai.plugin(:Network) do
# http://rubular.com/r/pwTNp65VFf
route_entry[k] = $1 if route_ending =~ /\b#{k}\s+([^\s]+)/
end
+ # https://rubular.com/r/k1sMrRn5yLjgVi
route_entry["via"] = $1 if route_ending =~ /\bvia\s+inet6\s+([^\s]+)/
# a sanity check, especially for Linux-VServer, OpenVZ and LXC: