From b486d6af369ee3dcac00a92b646245c93abead14 Mon Sep 17 00:00:00 2001 From: Samer Abdel-Hafez Date: Fri, 27 Feb 2015 10:11:23 +0100 Subject: Minor cosmetic changes and additions --- CHANGELOG.md | 2 ++ README.md | 1 - Rakefile | 2 +- lib/oxidized/model/eos.rb | 6 ++++++ oxidized.gemspec | 2 +- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24b9cba..1481a0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ - FEATURE: allow setting IP address in addition to name in source (SQL/CSV) - FEATURE: approximate how long it takes to get node from larger view than 1 - FEATURE: unconditionally start new job if too long has passed since previous start +- FEATURE: add enable to Arista EOS model +- FEATURE: add rugged dependency in gemspec - BUGFIX: xos while using telnet (by @fhibler) - BUGFIX: ironware logout on some models (by @fhibler) - BUGFIX: allow node to be removed while it is being collected diff --git a/README.md b/README.md index 3d4ba40..e8dfaa9 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,6 @@ Install all required packages and gems. ```shell apt-get install ruby ruby-dev libsqlite3-dev libssl-dev pkg-config cmake -gem install rugged gem install oxidized gem install oxidized-script oxidized-web # if you don't install oxidized-web, make sure you remove "rest" from your config ``` diff --git a/Rakefile b/Rakefile index d0e8c23..0bd4ffa 100644 --- a/Rakefile +++ b/Rakefile @@ -3,7 +3,7 @@ begin require 'bundler' # Bundler.setup rescue LoadError - warn 'bunler missing' + warn 'bundler missing' end gemspec = eval(File.read(Dir['*.gemspec'].first)) diff --git a/lib/oxidized/model/eos.rb b/lib/oxidized/model/eos.rb index 46f44a2..eb1d9c7 100644 --- a/lib/oxidized/model/eos.rb +++ b/lib/oxidized/model/eos.rb @@ -26,6 +26,12 @@ class EOS < Oxidized::Model end cfg :telnet, :ssh do + if vars :enable + post_login do + send "enable\n" + send vars(:enable) + "\n" + end + end pre_logout 'exit' end diff --git a/oxidized.gemspec b/oxidized.gemspec index 939e170..94b7668 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'oxidized' - s.version = '0.3.0' + s.version = '0.4.0' s.licenses = %w( Apache-2.0 ) s.platform = Gem::Platform::RUBY s.authors = [ 'Saku Ytti', 'Samer Abdel-Hafez' ] -- cgit v1.2.1