From d674af7098809a6fcfafce93082ceaa3b5309e07 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Thu, 24 Mar 2016 18:11:40 +0200 Subject: add netonix support closes #366 --- lib/oxidized/model/netonix.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/oxidized/model/netonix.rb (limited to 'lib/oxidized') diff --git a/lib/oxidized/model/netonix.rb b/lib/oxidized/model/netonix.rb new file mode 100644 index 0000000..4624f83 --- /dev/null +++ b/lib/oxidized/model/netonix.rb @@ -0,0 +1,15 @@ +class Netonix < Oxidized::Model + prompt /^[\w\s.@_\/:-]+#/ + + cmd :all do |cfg| + cfg.each_line.to_a[1..-2].join + end + + cmd 'cat config.json;echo' + + cfg :ssh do + post_login 'cmdline' + pre_logout 'exit' + pre_logout 'exit' + end +end -- cgit v1.2.1