From 4312923213952f1421d81d4e8c40b1c8669eec2e Mon Sep 17 00:00:00 2001 From: Samer Abdel-Hafez Date: Mon, 29 Apr 2013 09:55:47 +0100 Subject: Fix README.md and add cmd to powerconnect model --- README.md | 2 +- lib/oxidized/model/powerconnect.rb | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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:/ -- cgit v1.2.1