1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

net-mgmt/rancid3: Be less verbose with EdgeMax devices

Ignore a few transient lines in EdgeMax device output to cut down on the
noise.
This commit is contained in:
Joe Marcus Clarke
2025-05-19 09:21:03 -04:00
parent 1d8cb34678
commit edd8241043
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
PORTNAME= rancid
PORTVERSION= 3.14
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= ftp://ftp.shrubbery.net/pub/rancid/
PKGNAMESUFFIX= 3
@@ -0,0 +1,17 @@
--- lib/edgemax.pm.in.orig 2025-05-19 13:16:15 UTC
+++ lib/edgemax.pm.in
@@ -237,9 +237,11 @@ sub WriteTerm {
next if (/^\s*$/);
$linecnt++;
- /^!current configuration\s*:/i && next;
- /^!system (description|software|up\s?time)/i && next;
- /^!current sntp synch/i && next;
+ /^!\s?current configuration\s*:/i && next;
+ /^!\s?system (description|software|up\s?time)/i && next;
+ /^!\s?current sntp synch/i && next;
+ /^!\s?config created time/i && next;
+ /^show running-config/ && next;
/^$/ && next; # blank lines
/^ length / && next; # kill length on serial lines