From 5cfdbaa959b86d2c8e65963a828ab309302c9020 Mon Sep 17 00:00:00 2001 From: Bartek Date: Tue, 5 Jun 2018 15:34:20 +0200 Subject: edgecos overly verbose memory and uptime (#1366) --- CHANGELOG.md | 4 ++++ docs/Supported-OS-Types.md | 2 ++ lib/oxidized/model/edgecos.rb | 9 +-------- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9a9637..a43cff0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Master + +* BUGFIX: model edgecos does not trigger falsepositives due to uptime and memory utilization + ## 0.22.0 * FEATURE: openbsd model (@amarti2038) diff --git a/docs/Supported-OS-Types.md b/docs/Supported-OS-Types.md index 62c7989..fc010db 100644 --- a/docs/Supported-OS-Types.md +++ b/docs/Supported-OS-Types.md @@ -76,6 +76,8 @@ * [AOSW](/lib/oxidized/model/aosw.rb) * D-Link * [D-Link](/lib/oxidized/model/dlink.rb) +* EdgeCore + * [ES3528M](/lib/oxidized/model/edgecos.rb) * Ericsson/Redback * [IPOS (former SEOS)](/lib/oxidized/model/ipos.rb) * Extreme Networks diff --git a/lib/oxidized/model/edgecos.rb b/lib/oxidized/model/edgecos.rb index 3668769..e92686c 100644 --- a/lib/oxidized/model/edgecos.rb +++ b/lib/oxidized/model/edgecos.rb @@ -13,15 +13,8 @@ class EdgeCOS < Oxidized::Model cmd 'show running-config' - cmd 'show access-list tcam-utilization' do |cfg| - comment cfg - end - - cmd 'show memory' do |cfg| - comment cfg - end - cmd 'show system' do |cfg| + cfg.gsub! /^\s*System Up Time\s*:.*\n/i, '' comment cfg end -- cgit v1.2.1