From b54626dc9f1853e674fa2c923c3fe24601b92cac Mon Sep 17 00:00:00 2001 From: Zach Puls Date: Fri, 25 Aug 2017 10:40:51 -0500 Subject: Add support for Accedian NIDs. --- lib/oxidized/model/aen.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/oxidized/model/aen.rb (limited to 'lib/oxidized') 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 -- cgit v1.2.1