From 0274cad7f1846f367dce47046757b0c4918893a4 Mon Sep 17 00:00:00 2001 From: roedie Date: Fri, 19 Feb 2016 11:19:43 +0100 Subject: Add comment marks to metadata --- lib/oxidized/model/redback.rb | 20 ++++++++++++++++---- 1 file 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 -- cgit v1.2.1