summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-03-16 22:09:43 +0200
committerGitHub <noreply@github.com>2017-03-16 22:09:43 +0200
commitc37005e74c0fffdc497ad86645f0a7bb15119d8b (patch)
tree629ef798763052f170b7838948f7a2f4cc848d03 /lib/oxidized/model
parente4f510d3202b6e4000b59f4bdd991b255eb652f2 (diff)
parentba150fa65989bc12db7cc9af3d6d934b07a40c84 (diff)
Merge pull request #774 from udhos/master
Support for Cisco NGA.
Diffstat (limited to 'lib/oxidized/model')
-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..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