summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorDanilo Sousa <danilopopeye@users.noreply.github.com>2017-09-11 11:59:20 -0300
committerGitHub <noreply@github.com>2017-09-11 11:59:20 -0300
commit340a9e14471048fc9ea882a3b38783896250f5e0 (patch)
tree199d79a6971fa4a2f121e68aa38cd49d930d516b /lib/oxidized
parentf18789556b9b0926e4f5e401e9c722f4812240f1 (diff)
parentd65df224dbde05d7fc50e5d19153f1b431848245 (diff)
Merge pull request #996 from ZacharyPuls/accedian
Add support for Accedian NIDs.
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/aen.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/oxidized/model/aen.rb b/lib/oxidized/model/aen.rb
new file mode 100644
index 0000000..6d87433
--- /dev/null
+++ b/lib/oxidized/model/aen.rb
@@ -0,0 +1,20 @@
+class AEN < Oxidized::Model
+ # Accedian
+
+ comment '# '
+
+ prompt /^([-\w.\/:?\[\]\(\)]+:\s?)$/
+
+ cmd 'configuration generate-script module all' do |cfg|
+ cfg
+ end
+
+ cmd :all do |cfg|
+ cfg.each_line.to_a[1..-2].join
+ end
+
+ cfg :ssh do
+ pre_logout 'exit'
+ end
+
+end \ No newline at end of file