From 623d538a0f8744a11ba285ea060e62ea71011c79 Mon Sep 17 00:00:00 2001 From: Everton Marques Date: Thu, 16 Mar 2017 01:34:12 -0300 Subject: Support for Cisco NGA. --- lib/oxidized/model/cisconga.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/oxidized/model/cisconga.rb (limited to 'lib/oxidized') diff --git a/lib/oxidized/model/cisconga.rb b/lib/oxidized/model/cisconga.rb new file mode 100644 index 0000000..37cb4e4 --- /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| + comment cfg + end + + cfg :ssh do + post_login 'terminal length 0' + pre_logout 'exit' + end + +end -- cgit v1.2.1