summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md14
-rw-r--r--lib/oxidized/model/opengear.rb19
2 files changed, 27 insertions, 6 deletions
diff --git a/README.md b/README.md
index 9e55ea6..a130961 100644
--- a/README.md
+++ b/README.md
@@ -45,11 +45,11 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen
* A10 Networks
* ACOS
* Alcatel-Lucent
- * ISAM
* AOS
* AOS7
- * Wireless
+ * ISAM
* TiMOS
+ * Wireless
* Arista
* EOS
* Arris
@@ -80,9 +80,8 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen
* F5
* TMOS
* Force10
- * FTOS
- * Force10
* DNOS
+ * FTOS
* FortiGate
* FortiOS
* HP
@@ -97,11 +96,14 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen
* RouterOS
* MRV
* MasterOS
+ * Opengear
+ * Opengear
+ * Palo Alto
+ * PANOS
* Ubiquiti
* AirOS
* Edgeos
- * Palo Alto
- * PANOS
+ * EdgeSwitch
* Zyxel
* ZyNOS
diff --git a/lib/oxidized/model/opengear.rb b/lib/oxidized/model/opengear.rb
new file mode 100644
index 0000000..7f801f8
--- /dev/null
+++ b/lib/oxidized/model/opengear.rb
@@ -0,0 +1,19 @@
+class OpenGear < Oxidized::Model
+
+ comment '# '
+
+ cmd :secret do |cfg|
+ cfg.gsub!(/password (\S+)/, 'password <secret removed>')
+ cfg.gsub!(/community (\S+)/, 'community <secret removed>')
+ cfg
+ end
+
+ cmd('cat /etc/version') { |cfg| comment cfg }
+
+ cmd 'config -g config'
+
+ cfg :ssh do
+ exec true # don't run shell, run each command in exec channel
+ end
+
+end