diff options
author | Ilya Demyanov <turbidit@gmail.com> | 2017-12-31 09:19:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-31 09:19:49 +0300 |
commit | fd1b2c2ac903b3a8e2578a4ca0f48a61309a0493 (patch) | |
tree | 2fb46f210c68895f4caa9e344981545d197e740e /lib/oxidized | |
parent | 7b98d724002963e0e9dfce59ce024fd69b19ac13 (diff) |
Create snr.rb
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/snr.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/oxidized/model/snr.rb b/lib/oxidized/model/snr.rb new file mode 100644 index 0000000..3f1fab5 --- /dev/null +++ b/lib/oxidized/model/snr.rb @@ -0,0 +1,14 @@ +class SNR < Oxidized::Model + + comment '!' + + cmd 'show running-config' do |cfg| + cfg = cfg.each_line.to_a[1..-1] + end + + cfg :ssh do + post_login 'terminal length 0' + pre_logout 'exit' + end + +end |