summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorEverton Marques <everton.marques@gmail.com>2017-03-16 01:34:12 -0300
committerEverton Marques <everton.marques@gmail.com>2017-03-16 01:34:12 -0300
commit623d538a0f8744a11ba285ea060e62ea71011c79 (patch)
tree5c84653e4ad57a7c8bde084c1b6bc7b497c09efe /lib/oxidized
parente4f510d3202b6e4000b59f4bdd991b255eb652f2 (diff)
Support for Cisco NGA.
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/cisconga.rb19
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..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