From c718e46be7eecbd098152e29922c42e9f5e148e1 Mon Sep 17 00:00:00 2001 From: Marno van der Molen Date: Thu, 18 May 2017 10:15:38 +0200 Subject: Merge u/panzerfly's changes for Cisco ASA multiple context support --- lib/oxidized/model/asa.rb | 78 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 59 insertions(+), 19 deletions(-) (limited to 'lib') diff --git a/lib/oxidized/model/asa.rb b/lib/oxidized/model/asa.rb index 038dd6b..8a2ead8 100644 --- a/lib/oxidized/model/asa.rb +++ b/lib/oxidized/model/asa.rb @@ -20,6 +20,17 @@ class ASA < Oxidized::Model cfg end + cmd :secret do |cfg| + cfg.gsub! /enable password (\S+) (.*)/, 'enable password