summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamer Abdel-Hafez <sam@arahant.net>2015-02-27 10:11:23 +0100
committerSamer Abdel-Hafez <sam@arahant.net>2015-02-27 10:11:27 +0100
commitb486d6af369ee3dcac00a92b646245c93abead14 (patch)
treec56a48ee0e5f7ac908d6bc89b823bf44b9792c99
parent3944e0de10e999ee92db96edb31383dd565bf89a (diff)
Minor cosmetic changes and additions
-rw-r--r--CHANGELOG.md2
-rw-r--r--README.md1
-rw-r--r--Rakefile2
-rw-r--r--lib/oxidized/model/eos.rb6
-rw-r--r--oxidized.gemspec2
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' ]