diff options
author | bdg-robert <bdg-robert@users.noreply.github.com> | 2017-04-21 18:49:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-21 18:49:09 -0500 |
commit | 38ea1fa1c678e40072551a487c0112798107fe68 (patch) | |
tree | c2a5d1d84a2fdc85e90d1b6b89b66e3910b6f991 /lib/oxidized | |
parent | 16a20d39b51a89fc0c5a487809bfb02ced89f7b5 (diff) |
Update to include version
The output from startup-configuration includes the version information, so we'll prepend the running config output with it.
Diffstat (limited to 'lib/oxidized')
-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 |