summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/redback.rb20
1 files changed, 16 insertions, 4 deletions
diff --git a/lib/oxidized/model/redback.rb b/lib/oxidized/model/redback.rb
index f6847f7..fcb370d 100644
--- a/lib/oxidized/model/redback.rb
+++ b/lib/oxidized/model/redback.rb
@@ -1,10 +1,22 @@
class Redback < Oxidized::Model
- prompt /^([\[\]\w.@-]+[#>]\s?)$/
+
# Ericsson Redback
- cmd 'show chassis'
- cmd 'show hardware detail'
- cmd 'show release'
+ prompt /^([\[\]\w.@-]+[#>]\s?)$/
+ comment '! '
+
+ cmd 'show chassis' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show hardware detail' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show release' do |cfg|
+ comment cfg
+ end
+
cmd 'show config'
cfg :telnet do