File: 22_juniper_timestamps.patch

package info (click to toggle)
rancid 3.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,436 kB
  • sloc: sh: 2,627; ansic: 1,683; makefile: 390; exp: 185
file content (19 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Christian Hammers <chammers@netcologne.de>
Description: Remove lines from juniper configuration that are changed because
 of timestamps every day.

--- a/bin/jerancid.in
+++ b/bin/jerancid.in
@@ -307,6 +307,12 @@ sub DirSlotN {
 	next if (/^(\s*|\s*$cmd\s*)$/);
 	next if (/^Please wait/i);
 	next if (/^system\.log/);
+        next if (/^standby-disk0/);
+
+        # Ignore because of daily updated timestamp:
+        # "!Flash: disk0:e120-scsto1-confg.scr 35410 35410 11/18/2013 23:24:42"
+       	s/^(disk.*-conf.*\.scr).*/\1 -removed-/;
+
 	# fail if the RP is amid the auto-sync process
 	return(-1) if (/active\/standby/i && /not sync/);