summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-03-05 15:36:28 +0200
committerSaku Ytti <saku@ytti.fi>2014-03-05 15:36:28 +0200
commit81cfa3e5d5cd53c7862da5740543b6ea5bc8f5d0 (patch)
tree7277dce173635ffb2548ebb5055e368de3a89de6
parentf8be9c5a3597768128d70209daf4d40e527a7880 (diff)
Ignore rogue adhoc alert macs
They keep changing dynamically in config
-rw-r--r--Gemfile.lock2
-rw-r--r--lib/oxidized/model/aireos.rb1
-rw-r--r--oxidized.gemspec2
3 files changed, 3 insertions, 2 deletions
diff --git a/Gemfile.lock b/Gemfile.lock
index be9dd32..54ace4b 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- oxidized (0.0.36)
+ oxidized (0.0.37)
grit
haml
net-ssh
diff --git a/lib/oxidized/model/aireos.rb b/lib/oxidized/model/aireos.rb
index 8f5f646..7e9d49e 100644
--- a/lib/oxidized/model/aireos.rb
+++ b/lib/oxidized/model/aireos.rb
@@ -44,6 +44,7 @@ class Aireos < Oxidized::Model
out = []
cfg.each_line do |line|
next if line.match /^\s*$/
+ next if line.match /rogue adhoc alert [\da-f]{2}:/
line = line[1..-1] if line[0] == "\r"
out << line.strip
end
diff --git a/oxidized.gemspec b/oxidized.gemspec
index 31e4640..a9afc02 100644
--- a/oxidized.gemspec
+++ b/oxidized.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'oxidized'
- s.version = '0.0.37'
+ s.version = '0.0.38'
s.platform = Gem::Platform::RUBY
s.authors = [ 'Saku Ytti' ]
s.email = %w( saku@ytti.fi )