summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2013-04-29 02:02:49 -0700
committerytti <saku@ytti.fi>2013-04-29 02:02:49 -0700
commitb5b7e1e77bc91e1df405199327032ec0f425162e (patch)
treea77d8fb7ab50a2a1f2bfeb9afb84a8c7a43d3bf2
parentd1a9d0412ab7c1d999598f6c801b1ae0624c4a9b (diff)
parent4312923213952f1421d81d4e8c40b1c8669eec2e (diff)
Merge pull request #2 from nopedial/master
Fix README.md and add cmd to powerconnect model
-rw-r--r--README.md2
-rw-r--r--lib/oxidized/model/powerconnect.rb8
2 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index cc23013..ea521fc 100644
--- a/README.md
+++ b/README.md
@@ -42,4 +42,4 @@
* can use 'cmd', 'prompt', 'comment', 'cfg'
* cfg is executed in input/output/source context
* cmd is executed in instance of model
- * 'junos', 'ios', 'ironware' and 'powerconnect'
+ * 'junos', 'ios', 'ironware' and 'powerconnect' implemented
diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb
index 7fa7f2c..732245e 100644
--- a/lib/oxidized/model/powerconnect.rb
+++ b/lib/oxidized/model/powerconnect.rb
@@ -11,6 +11,14 @@ class PowerConnect < Oxidized::Model
cfg
end
+ cmd 'show version' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show system' do |cfg|
+ comment cfg
+ end
+
cfg :telnet do
username /^User Name:/
password /^\r?Password:/