summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/redback.rb
diff options
context:
space:
mode:
authorroedie <github@roedie.nl>2016-02-19 11:19:43 +0100
committerroedie <github@roedie.nl>2016-02-19 11:19:43 +0100
commit0274cad7f1846f367dce47046757b0c4918893a4 (patch)
tree98f16aca6f888dc0bc2e1a17541f4a57680afbc7 /lib/oxidized/model/redback.rb
parentd18d81d34a8b9d3e77d3e7085cc03564af29206b (diff)
Add comment marks to metadata
Diffstat (limited to 'lib/oxidized/model/redback.rb')
-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