summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2016-03-24 18:11:40 +0200
committerSaku Ytti <saku@ytti.fi>2016-03-24 18:11:40 +0200
commitd674af7098809a6fcfafce93082ceaa3b5309e07 (patch)
tree09882eeef260166f43078f281df6689a866e24b9
parente8a22f7f849b39f77d056bf6707a91b30b3daa3d (diff)
add netonix support
closes #366
-rw-r--r--README.md2
-rw-r--r--lib/oxidized/model/netonix.rb15
2 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3022e53..c2d6a1e 100644
--- a/README.md
+++ b/README.md
@@ -106,6 +106,8 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen
* RFS
* MRV
* MasterOS
+ * Netonix
+ * WISP Switch (As Netonix)
* Opengear
* Opengear
* Palo Alto
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