diff options
Diffstat (limited to 'lib/oxidized/model/cisconga.rb')
-rw-r--r-- | lib/oxidized/model/cisconga.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/oxidized/model/cisconga.rb b/lib/oxidized/model/cisconga.rb new file mode 100644 index 0000000..9764351 --- /dev/null +++ b/lib/oxidized/model/cisconga.rb @@ -0,0 +1,17 @@ +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 |