diff options
author | Cooper Lees <me@cooperlees.com> | 2020-06-30 11:38:44 -0700 |
---|---|---|
committer | Cooper Lees <me@cooperlees.com> | 2020-06-30 12:01:25 -0700 |
commit | 2444d8d8a0dcf0731adcf7209c6aa8069a81217b (patch) | |
tree | 7a0648a3758016814fb77fd3170befa3d51bb24b | |
parent | 9ea67339da40ee2831777708297b61e473fc7aae (diff) | |
download | ohai-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.rb | 1 |
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: |