diff options
author | Matthias Cramer <matthias.cramer@iway.ch> | 2017-03-24 00:09:39 +0100 |
---|---|---|
committer | Matthias Cramer <matthias.cramer@iway.ch> | 2017-03-24 00:09:39 +0100 |
commit | 0912287387c60533d42776dbae7127cdcee026c6 (patch) | |
tree | 72514ea1c4dae7ba9add5d06776ba06e7ef03833 /lib/oxidized/model/cisconga.rb | |
parent | 258ccbc0456798be8fe0a45952a48fba60392fa8 (diff) | |
parent | 4a67e27742c0ab8ed6cd8421d34c01c0de588705 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lib/oxidized/model/cisconga.rb')
-rw-r--r-- | lib/oxidized/model/cisconga.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/oxidized/model/cisconga.rb b/lib/oxidized/model/cisconga.rb new file mode 100644 index 0000000..73fb51c --- /dev/null +++ b/lib/oxidized/model/cisconga.rb @@ -0,0 +1,19 @@ +class CiscoNGA < Oxidized::Model + + comment '# ' + prompt /([\w.@-]+[#>]\s?)$/ + + cmd 'show version' do |cfg| + comment cfg + end + + cmd 'show configuration' do |cfg| + cfg + end + + cfg :ssh do + post_login 'terminal length 0' + pre_logout 'exit' + end + +end |