diff options
author | feld <feld@FreeBSD.org> | 2017-04-26 04:55:35 +0800 |
---|---|---|
committer | feld <feld@FreeBSD.org> | 2017-04-26 04:55:35 +0800 |
commit | 25bedb8c7c1064facc48a7de14711bf91ccec2cb (patch) | |
tree | 46425c87acb0216180ecb609f687757c7c2726a2 /net-mgmt | |
parent | 5a0142f966511cf8d0b59205d20447a2aebbc2c4 (diff) | |
download | freebsd-ports-gnome-25bedb8c7c1064facc48a7de14711bf91ccec2cb.tar.gz freebsd-ports-gnome-25bedb8c7c1064facc48a7de14711bf91ccec2cb.tar.zst freebsd-ports-gnome-25bedb8c7c1064facc48a7de14711bf91ccec2cb.zip |
net-mgmt/rancid3: Update filtering of vtp_debug.log to only affect Nexus devices
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/rancid3/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/rancid3/files/patch-lib_ios.pm.in | 4 | ||||
-rw-r--r-- | net-mgmt/rancid3/files/patch-lib_nxos.pm.in | 12 |
3 files changed, 15 insertions, 3 deletions
diff --git a/net-mgmt/rancid3/Makefile b/net-mgmt/rancid3/Makefile index 1c180620d1f9..6e2c76487afd 100644 --- a/net-mgmt/rancid3/Makefile +++ b/net-mgmt/rancid3/Makefile @@ -3,7 +3,7 @@ PORTNAME= rancid PORTVERSION= 3.6.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net-mgmt MASTER_SITES= ftp://ftp.shrubbery.net/pub/rancid/ PKGNAMESUFFIX= 3 diff --git a/net-mgmt/rancid3/files/patch-lib_ios.pm.in b/net-mgmt/rancid3/files/patch-lib_ios.pm.in index b343913993f7..98b00766602d 100644 --- a/net-mgmt/rancid3/files/patch-lib_ios.pm.in +++ b/net-mgmt/rancid3/files/patch-lib_ios.pm.in @@ -1,11 +1,11 @@ ---- lib/ios.pm.in.orig 2017-04-19 20:53:52 UTC +--- lib/ios.pm.in.orig 2017-01-10 20:59:52 UTC +++ lib/ios.pm.in @@ -942,7 +942,7 @@ sub ShowFlash { # to: # vlan.dat # vlan.dat - if (/(dhcp_[^. ]*\.txt|vlan\.dat|sflog|syslog)\s*$/) { -+ if (/(dhcp_[^. ]*\.txt|vlan\.dat|sflog|snooping|syslog|vtp_debug.*log)\s*$/) { ++ if (/(dhcp_[^. ]*\.txt|vlan\.dat|sflog|snooping|syslog)\s*$/) { if (/(\s*\d+)(\s+[-rwx]+\s+)(\d+)(\s+)(\w+ \d+\s+\d+ \d+:\d+:\d+ .\d+:\d+)/) { my($fn, $a, $sz, $c, $dt, $rem) = ($1, $2, $3, $4, $5, $'); my($fnl, $szl, $dtl) = (length($fn), length($sz), length($dt)); diff --git a/net-mgmt/rancid3/files/patch-lib_nxos.pm.in b/net-mgmt/rancid3/files/patch-lib_nxos.pm.in new file mode 100644 index 000000000000..37df4ee973d5 --- /dev/null +++ b/net-mgmt/rancid3/files/patch-lib_nxos.pm.in @@ -0,0 +1,12 @@ +--- lib/nxos.pm.in.orig 2017-04-25 20:52:25 UTC ++++ lib/nxos.pm.in +@@ -490,6 +490,9 @@ sub DirSlotN { + # Drop accounting.log + /\s+accounting\.log$/ && next; + ++ # Drop vtp_debug.log and vtp_debug_old.log CDETS bug CSCuy87611 ++ /\s+vtp_debug(_old|)\.log$/ && next; ++ + next if (/BufferMonitor-1HourData/); + if (/ log\/$/) { + # change |