diff options
author | Zach Puls <zpuls@ksfiber.net> | 2017-08-25 10:40:51 -0500 |
---|---|---|
committer | Zach Puls <zpuls@ksfiber.net> | 2017-08-25 10:40:51 -0500 |
commit | b54626dc9f1853e674fa2c923c3fe24601b92cac (patch) | |
tree | 6205954248f947417043776f60c88b4f3c52e836 /lib | |
parent | a4174019e55992182a357573022a8ce024284bf7 (diff) |
Add support for Accedian NIDs.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/aen.rb | 20 |
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 |