From 8862e0b303b2fdc4c50992cfbffbbccb9b88bc91 Mon Sep 17 00:00:00 2001 From: Robert Drake Date: Fri, 4 Nov 2016 14:21:09 -0400 Subject: This adds support for the Casa C1G CMTS This will probably work for the other Casa CMTS as well. --- README.md | 2 ++ lib/oxidized/model/casa.rb | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 lib/oxidized/model/casa.rb diff --git a/README.md b/README.md index b9b97d7..03b2d1e 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,8 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen * [NOS (Network Operating System)](lib/oxidized/model/nos.rb) * [Vyatta](lib/oxidized/model/vyatta.rb) * [6910](lib/oxidized/model/br6910.rb) + * Casa + * [Casa](lib/oxidized/model/casa.rb) * Check Point * [GaiaOS](lib/oxidized/model/gaiaos.rb) * Ciena diff --git a/lib/oxidized/model/casa.rb b/lib/oxidized/model/casa.rb new file mode 100644 index 0000000..e85c904 --- /dev/null +++ b/lib/oxidized/model/casa.rb @@ -0,0 +1,46 @@ +class Casa < Oxidized::Model + # Casa Systems CMTS + + prompt /^([\w.@()-]+[#>]\s?)$/ + comment '! ' + + cmd :secret do |cfg| + cfg.gsub! /^(snmp community) \S+/, '\\1 ' + cfg.gsub! /^(snmp comm-tbl) \S+ \S+/, '\\1 ' + cfg.gsub! /^(console-password encrypted) \S+/, '\\1