summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Caiafa <acaiafa1@bloomberg.net>2016-08-05 10:17:40 -0400
committerAnthony Caiafa <acaiafa1@bloomberg.net>2016-08-05 10:17:40 -0400
commite604a626549128cbba793b52828f326a51f91474 (patch)
tree8b7d2a211efb1ddf15d9d0294050186c8328ad29
parent3b7c02d56a3f42259027876a399c3f475f7a0de8 (diff)
downloadohai-e604a626549128cbba793b52828f326a51f91474.tar.gz
updating regex
-rw-r--r--lib/ohai/plugins/solaris2/network.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/solaris2/network.rb b/lib/ohai/plugins/solaris2/network.rb
index c5ab9487..a146a1db 100644
--- a/lib/ohai/plugins/solaris2/network.rb
+++ b/lib/ohai/plugins/solaris2/network.rb
@@ -58,7 +58,7 @@ ETHERNET_ENCAPS = %w{ afe amd8111s arn atge ath bfe bge bnx bnxe ce cxgbe
dmfe e1000g efe elxl emlxs eri hermon hme hxge igb
iprb ipw iwh iwi iwk iwp ixgb ixgbe mwl mxfe myri10ge
nge ntxn nxge pcn platform qfe qlc ral rge rtls rtw rwd
- rwn sfe tavor vr wpi xge yge } unless defined?(ETHERNET_ENCAPS)
+ rwn sfe tavor vr wpi xge yge aggr} unless defined?(ETHERNET_ENCAPS)
Ohai.plugin(:Network) do
provides "network", "network/interfaces"
@@ -101,7 +101,7 @@ Ohai.plugin(:Network) do
cint = nil
so.stdout.lines do |line|
- if line =~ /^([0-9a-zA-Z\.\:\-]+): \S+ mtu (\d+) index (\d+)/
+ if line =~ /^([0-9a-zA-Z\.\:\-]+):/
cint = $1
iface[cint] = Mash.new unless iface[cint]
iface[cint][:mtu] = $2