From 42cd484653da2f64a716be6b96efbde6f59fea83 Mon Sep 17 00:00:00 2001 From: Hannes Rist Date: Wed, 26 Aug 2015 13:46:19 +0200 Subject: Add support for MRV MasterOS --- lib/oxidized/model/masteros.rb | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 lib/oxidized/model/masteros.rb (limited to 'lib') diff --git a/lib/oxidized/model/masteros.rb b/lib/oxidized/model/masteros.rb new file mode 100644 index 0000000..3f5a2fc --- /dev/null +++ b/lib/oxidized/model/masteros.rb @@ -0,0 +1,46 @@ +class MasterOS < Oxidized::Model + + # MRV MasterOS model # + +comment '!' + + cmd :secret do |cfg| + cfg.gsub! /^(snmp-server community).*/, '\\1 ' + cfg.gsub! /username (\S+) password encrypted (\S+) class (\S+).*/, '