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:
@@ -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
|
||||
Reference in New Issue
Block a user