From ba5bfd826ce8d13500497ff477ec219df921f527 Mon Sep 17 00:00:00 2001 From: Mike Bryant Date: Tue, 2 Feb 2016 11:03:11 +0000 Subject: Add OpenGear model --- lib/oxidized/model/opengear.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/oxidized/model/opengear.rb 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 ') + cfg.gsub!(/community (\S+)/, 'community ') + 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 -- cgit v1.2.1 From 52eaba0e15c7808949c0821a318376c17b281a12 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Tue, 2 Feb 2016 18:30:53 +0000 Subject: add new models --- README.md | 14 ++++++++------ 1 file changed, 8 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 @@ -79,10 +79,9 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen * XOS * 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 -- cgit v1.2.1