From cd914865e8f44109400335be130a9ea8d0e11c3e Mon Sep 17 00:00:00 2001 From: erefre Date: Tue, 20 Oct 2015 14:15:04 +0200 Subject: add support for Dell networking OS, dnos Dell Force10 has changed model name from FTOS to DNOS --- lib/oxidized/model/dnos.rb | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 lib/oxidized/model/dnos.rb (limited to 'lib') diff --git a/lib/oxidized/model/dnos.rb b/lib/oxidized/model/dnos.rb new file mode 100644 index 0000000..1c31aad --- /dev/null +++ b/lib/oxidized/model/dnos.rb @@ -0,0 +1,47 @@ +class DNOS < Oxidized::Model + + # Force10 DNOS model # + + comment '! ' + + cmd :all do |cfg| + cfg.each_line.to_a[2..-2].join + end + + cmd :secret do |cfg| + cfg.gsub! /^(snmp-server community).*/, '\\1 ' + cfg.gsub! /secret (\d+) (\S+).*/, '