summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--lib/oxidized/model/firewareos.rb24
2 files changed, 26 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0c92632..ed66b8a 100644
--- a/README.md
+++ b/README.md
@@ -121,6 +121,8 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen
* AirOS
* Edgeos
* EdgeSwitch
+ * Watchguard
+ * Fireware OS
* Zyxel
* ZyNOS
diff --git a/lib/oxidized/model/firewareos.rb b/lib/oxidized/model/firewareos.rb
new file mode 100644
index 0000000..f2bef4c
--- /dev/null
+++ b/lib/oxidized/model/firewareos.rb
@@ -0,0 +1,24 @@
+class FirewareOS < Oxidized::Model
+
+ prompt /^\[?\w*\]?\w*<?\w*>?#\s*$/
+ comment '-- '
+
+ cmd :all do |cfg|
+ cfg.each_line.to_a[1..-2].join
+ end
+
+ cmd 'show sysinfo' do |cfg|
+ # avoid commits due to uptime
+ cfg = cfg.each_line.select { |line| not line.match /(.*time.*)|(.*memory.*)|(.*cpu.*)/ }
+ cfg = cfg.join
+ comment cfg
+ end
+
+ cmd 'export config to console'
+
+ cfg :ssh do
+ pre_logout 'exit'
+ end
+
+end
+