From 81cfa3e5d5cd53c7862da5740543b6ea5bc8f5d0 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Wed, 5 Mar 2014 15:36:28 +0200 Subject: Ignore rogue adhoc alert macs They keep changing dynamically in config --- Gemfile.lock | 2 +- lib/oxidized/model/aireos.rb | 1 + oxidized.gemspec | 2 +- 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 ) -- cgit v1.2.1