diff options
author | Samer Abdel-Hafez <sam@arahant.net> | 2015-02-27 10:11:23 +0100 |
---|---|---|
committer | Samer Abdel-Hafez <sam@arahant.net> | 2015-02-27 10:11:27 +0100 |
commit | b486d6af369ee3dcac00a92b646245c93abead14 (patch) | |
tree | c56a48ee0e5f7ac908d6bc89b823bf44b9792c99 | |
parent | 3944e0de10e999ee92db96edb31383dd565bf89a (diff) |
Minor cosmetic changes and additions
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | Rakefile | 2 | ||||
-rw-r--r-- | lib/oxidized/model/eos.rb | 6 | ||||
-rw-r--r-- | 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 @@ -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 ``` @@ -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' ] |