diff options
Diffstat (limited to 'lib/oxidized/model/siklu.rb')
-rw-r--r-- | lib/oxidized/model/siklu.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/oxidized/model/siklu.rb b/lib/oxidized/model/siklu.rb index 322eb4d..2b0c95a 100644 --- a/lib/oxidized/model/siklu.rb +++ b/lib/oxidized/model/siklu.rb @@ -6,10 +6,12 @@ class Siklu < Oxidized::Model prompt /^[\w-]+>$/ - cmd 'copy running-configuration display' + cmd 'copy startup-configuration display' do |cfg| + cfg.each_line.to_a[2..2].join + end - cmd :all do |cfg| - cfg.each_line.to_a[1..-2].join + cmd 'copy running-configuration display' do |cfg| + cfg.each_line.to_a[3..-2].join end cfg :ssh do |