summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/snr.rb14
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