diff options
Diffstat (limited to 'net/aspathtree/files')
| -rw-r--r-- | net/aspathtree/files/patch-etc::ASpath-tree.config | 63 | ||||
| -rw-r--r-- | net/aspathtree/files/patch-lib::getbgptable.pl | 66 | ||||
| -rw-r--r-- | net/aspathtree/files/patch-readme.txt | 99 | ||||
| -rw-r--r-- | net/aspathtree/files/patch-update-rtree | 153 | 
4 files changed, 0 insertions, 381 deletions
| diff --git a/net/aspathtree/files/patch-etc::ASpath-tree.config b/net/aspathtree/files/patch-etc::ASpath-tree.config deleted file mode 100644 index 299d9558287e..000000000000 --- a/net/aspathtree/files/patch-etc::ASpath-tree.config +++ /dev/null @@ -1,63 +0,0 @@ ---- etc/ASpath-tree.config.orig	Tue Dec 10 10:02:25 2002 -+++ etc/ASpath-tree.config	Sat Mar  8 21:56:17 2003 -@@ -9,7 +9,7 @@ - # Full path to the directory where you have installed the ASpath-tree - # scripts. It is the directory where the script create-bgp-pages is - # located --HOMEDIR = /usr/local/ASpath-tree-v4.2 -+HOMEDIR = %%PREFIX%%/var/aspathree/ - - # Router you are using. Currently supported platforms include Cisco, Juniper - # and Zebra routers. Allowed values are "CISCO", "JUNIPER" , "ZEBRA" and -@@ -37,8 +37,14 @@ - # command: - #         ip rcmd remote-host - #              <router-user> <client-ip-address>  <client-user> -+# or the telnet user. See ROUTERUSERPASS also. - ROUTERUSER = router - -+# The password of the telnet user which have been enabled on the cisco -+# router to issue 'show bgp ipv6' command. Set up only if you want to -+# use the telnet mode. -+# ROUTERUSERPASS = router -+ - # The full path to the directory where the generated html files have to be - # placed. If you do not specify this option the html files are stored under - # the htdocs/ directory which comes with the distribution -@@ -46,15 +52,15 @@ - # HTMLDIR = /usr/local/httpd/htdocs/bgp - - # The contactname which is placed at the bottom of the generated html pages --CONTACTNAME = IPv6 group -+CONTACTNAME = Your IPv6 group - - # e-mail address of the contact person. It is placed at the bottom of the - # generated html pages together with the contactname -- CONTACTMAIL = me@myhost.com -+ CONTACTMAIL = your@ipv6.mail - - # The name of your IPv6 site. It is used as the root of the BGP4+ routing - # tree displayed by the generated html pages --SITENAME = TILAB -+SITENAME = Your IPv6 project - - # The name of the image file (for instance a graphical logo representing - # your IPv6 site) to be placed at the beginning of the generated html -@@ -71,7 +77,7 @@ - # WHOISLINK = http://whois.6bone.net/cgi-bin/whois - - # A flag to enable the display of the last changes on the tree. Set --# CHANGESFLAG = 1 -+CHANGESFLAG = 1 - # to see the display as html pages accessible from a link within the tree pages - - # A flag to control which routes are filtered out from the output of -@@ -83,7 +89,7 @@ - # installed on the same WS that hosts ASpath-tree - # This parameter is needed only if you want to update via ASpath-tree the - # useful information available on whois DBs connected to the Internet --# RIPEWHOISCLIENT = /usr/local/bin/whois3 -+RIPEWHOISCLIENT = /usr/local/bin/ripewhois - - #### ASpath-tree v.4.2 - Released on Tue DEC 10 2002, h.10:02:25 - #### File: etc/ASpath-tree.config Last modified on Mon DEC 9 2002, h.15:52:30 diff --git a/net/aspathtree/files/patch-lib::getbgptable.pl b/net/aspathtree/files/patch-lib::getbgptable.pl deleted file mode 100644 index d428d27200d6..000000000000 --- a/net/aspathtree/files/patch-lib::getbgptable.pl +++ /dev/null @@ -1,66 +0,0 @@ ---- lib/getbgptable.pl.orig	Thu Feb  6 11:25:26 2003 -+++ lib/getbgptable.pl	Thu Feb  6 11:43:58 2003 -@@ -24,10 +24,55 @@ - #     ASs  (all the ASs in the router BGP table) - # Finally this routine produces a text file containing the raw version of the router table - # and if required log files of both the raw router table and the normalized table. -+ -+ - sub get_bgp_table { - 	my ($parser, $command, $line) = ('', '', ''); - 	my (@lines) = (); - -+	use Socket; -+        use Net::Telnet; -+ -+	if (defined($ROUTERUSERPASS)) { -+ -+# TELNET module to get BGP4+ AS Path table -+ -+	if ($ROUTER =~ /^JUNIPER$/i) { -+		$parser = "juniper"; -+		$STATUSCODES = "*> active"; -+        	my $telnet_session = new Net::Telnet( -+	        prompt => '/[\w().-]*[\$#]\s*$/' -+       		); -+ -+	        $telnet_session->open($ROUTERADDR); -+       		$telnet_session->login($ROUTERUSER, $ROUTERUSERPASS); -+	        $telnet_session->cmd(String => "set cli screen-length 0", Timeout => 1800); -+ -+       		 @lines = $telnet_session->cmd(String => "show route table inet6.0 all terse", -+                                  Timeout => 1800); -+	        $telnet_session->close; -+	} else { -+		$ROUTER = "CISCO"; -+		$parser = "cisco"; -+		$STATUSCODES = "s suppressed, d damped, h history, * valid, > best, r RIB-failure"; -+       		my $telnet_session = new Net::Telnet( -+	        prompt => '/[\w().-]*[\$#]\s*$/' -+       		); -+ -+	        $telnet_session->open($ROUTERADDR); -+       		$telnet_session->login($ROUTERUSER, $ROUTERUSERPASS); -+	        $telnet_session->cmd(String => "terminal length 0", Timeout => 1800); -+ -+       		@lines = $telnet_session->cmd(String => "show bgp ipv6", -+                                  Timeout => 1800); -+	        $telnet_session->close; -+	} -+# end TELNET module -+ -+        } else { -+ -+# RSH module to get BGP4+ AS Path table -+ - 	if ($ROUTER =~ /^JUNIPER$/i) { - 		$parser = "juniper"; - 		$STATUSCODES = "*> active"; -@@ -58,6 +103,7 @@ - 		push(@lines, $_); - 	} - 	close(OUTPUT); -+	} - 	chomp(@lines); - # Write log and for web files (raw table) - 	open(TXTFILE,"> $BGPTABLEFILE"); diff --git a/net/aspathtree/files/patch-readme.txt b/net/aspathtree/files/patch-readme.txt deleted file mode 100644 index e113481ef76a..000000000000 --- a/net/aspathtree/files/patch-readme.txt +++ /dev/null @@ -1,99 +0,0 @@ ---- readme.txt.orig	Thu Apr 17 15:58:12 2003 -+++ readme.txt	Sun Apr 27 01:53:51 2003 -@@ -61,7 +61,7 @@ - without problems on any Unix platform (Linux, etc.) with - Perl (version equal or greater than 5.0) installed. -  --The IPv6 BGP tables of external routers are obtained using rsh -+The IPv6 BGP tables of external routers are obtained using rsh or telnet - commands. The current release works with cisco routers, zebra routers - and juniper routers running IPv6 capable software versions. -  -@@ -128,10 +128,16 @@ -  - CISCO - ----- --The cisco router must be configured to accept rsh commands from the --workstation which is running the ASpath-tree scripts. The --administrator of the cisco router must perform the following --configurations: -+The cisco router must be configured to accept rsh commands or telnet -+access from the workstation which is running the ASpath-tree -+scripts. The administrator of the cisco router must perform the -+following configurations: -+ -+Option 1: rsh collection -+------------------------ -+The router must be configured to accept rsh commands coming from the -+remote workstation which is running the ASpath-tree scripts in the -+following way: -  -   ip rcmd remote-host <router-username> <remote-ip-address> <remote- -   username> -@@ -162,9 +168,28 @@ - scripts to collect the routing information available on the cisco - router. -  -+Option 2: telnet collection -+--------------------------- -+The router must be configured to accept telnet commands coming from the -+remote workstation which is running the ASpath-tree scripts. -+ -+<router-username> is the name of the telnet user enabled to show the bgp -+table on the cisco router. -+ -+<router-username-password> is the corresponding password of the telnet user -+enabled to show the bgp table on the cisco router. -+ -+Consult the Cisco documentations, how to configure such a settings. -+ -+If you configure ROUTERUSERPWD then the telnet option automatically selected. -+ -+ - JUNIPER - ------- -  -+Option 1: rsh collection -+------------------------ -+ - The juniper router must be configured to accept rsh commands from the - workstation which is running the ASpath-tree scripts. In the case of - juniper, you have first to enable the rsh service on the router, then -@@ -198,6 +223,13 @@ - This is exactly the rsh command used by the ASpath-tree scripts to - collect the routing information available on the juniper router. -  -+Option 2: telnet collection -+--------------------------- -+ -+configure an user <router-username> with password <router-password on -+the Juniper router with view permisssion. Consult your Juniper -+documentation about that. -+ - ZEBRA - ----- - To use ASpath-tree with zebra routers, the "vtysh" CLI emulator must -@@ -267,7 +299,12 @@ -              router have IPv6 capable rsh implementations. -  - ROUTERUSER   is the username on the router that you have to use to --             run remote rsh commands. -+             run remote rsh commands or telnet. -+ -+ROUTERUSERPASS -+             is an optional parameter to use for telnet collection. If you -+             configure this parameter telnet mode will be used automatically. -+             DO NOT SPECIFY this parameter if you use RSH collection. -  - HTMLDIR      is the full path to the directory where the generated -              html files have to be placed. If you do not specify this -@@ -794,6 +831,9 @@ -         Raffaele D'Albenzio, Ivano Guardini and Paolo Fasano -         <ipv6@tilab.com> -         ---------------------------------------------------- -+	Telnet modul addition -+        Janos Mohacsi <mohacsi@niif.hu> - 6NET project -+	---------------------------------------------------- -  - #### ASpath-tree v.4.2 - Released on Thu APR 17 2003, h.16:58:12 - #### File: readme.txt Last modified on Thu APR 17 2003, h.16:45:39 diff --git a/net/aspathtree/files/patch-update-rtree b/net/aspathtree/files/patch-update-rtree deleted file mode 100644 index c0e9fe0c32bb..000000000000 --- a/net/aspathtree/files/patch-update-rtree +++ /dev/null @@ -1,153 +0,0 @@ ---- update-rtree.orig	Thu Apr 17 15:58:12 2003 -+++ update-rtree	Sun Apr 27 02:01:49 2003 -@@ -1,13 +1,13 @@ --#!/usr/local/bin/perl -+#!%%PATHPERLBIN%% - #### ASpath-tree v.4.2 - Released on Thu APR 17 2003, h.16:58:12 - #### File: update-rtree Last modified on Tue MAR 18 2003, h.22:59:48 -  -  - # Configuration File --my $CONFIGFILE = "/etc/ASpath-tree.config"; -+my $CONFIGFILE = "%%PREFIX%%/etc/ASpath-tree.config"; -  - # Global variables --use vars qw ($HOMEDIR $RSHDIR $ROUTER $LOCAL $ROUTERADDR $ROUTERUSER $CONTACTNAME $CONTACTMAIL $SITENAME $SITEPICTURE $HTMLDIR -+use vars qw ($HOMEDIR $RSHDIR $ROUTER $LOCAL $ROUTERADDR $ROUTERUSER $ROUTERUSERPASS $CONTACTNAME $CONTACTMAIL $SITENAME $SITEPICTURE $HTMLDIR -              $WHOISLINK $QUIET $DEBUG $FILTEROUT $RIPEWHOISCLIENT $MORETREES); - use vars qw ($DATADIR $ROOTPICTURE $LIB $ICONS $WARNINGTIME $HISTORYPERIOD $FLAG_COLLECT $LONGDATE $CURRENTTIME $LASTRUN); - use vars qw ($SIXBONEDB $IPV6PREFIXTABLE $PTLA_FILE $HISTORYFILE $LASTRUNFILE $OLDASPATHSFILE $OLDDATEFILE $OLDBBASPATHSFILE -@@ -106,6 +106,7 @@ - 		if ($line =~ /^\s*LOCAL\s*=\s*(.*)/)         {$LOCAL = $1} - 		if ($line =~ /^\s*ROUTERADDR\s*=\s*(.*)/)    {$ROUTERADDR = $1} - 		if ($line =~ /^\s*ROUTERUSER\s*=\s*(.*)/)    {$ROUTERUSER = $1} -+		if ($line =~ /^\s*ROUTERUSERPASS\s*=\s*(.*)/)    {$ROUTERUSERPASS = $1} - 		if ($line =~ /^\s*CONTACTNAME\s*=\s*(.*)/)   {$CONTACTNAME = $1} - 		if ($line =~ /^\s*CONTACTMAIL\s*=\s*(.*)/)   {$CONTACTMAIL = $1} - 		if ($line =~ /^\s*SITENAME\s*=\s*(.*)/)      {$SITENAME = $1} -@@ -120,9 +121,9 @@ -  - # DEFAULT values setting...(if not explicitely declared) and ERROR checking ... - 	die "ERROR in configuration file: parameter HOMEDIR not set!\n"    unless ($HOMEDIR); --	die "ERROR in configuration file: parameter HOMEDIR not correct!\n"    unless (-e "$HOMEDIR/update-rtree"); -+	die "ERROR in configuration file: parameter HOMEDIR not correct!\n"    unless (-d "$HOMEDIR"); -  --	$LOGDIR = "$HOMEDIR/log"; unless (-e "$LOGDIR") {mkdir("$LOGDIR", 0777)}; -+	$LOGDIR = "$HOMEDIR/log"; unless (-e "$LOGDIR") {mkdir("$LOGDIR", 0775)}; - 	if ($DEBUG) {open(LOGFILE, "> $LOGDIR/runlog.txt"); close(LOGFILE)} - 	&log_it_and_die("ERROR in configuration file: parameter SITENAME not set!")   unless ($SITENAME); - 	&log_it_and_die("ERROR in configuration file: parameter ROUTER = \"$ROUTER\" not acceptable!") if ($ROUTER && !grep(/^$ROUTER$/, ("CISCO", "JUNIPER" , "ZEBRA", "ZEBRA93"))); -@@ -134,7 +135,7 @@ - 	} - 	unless ($WHOISLINK)     {$WHOISLINK = "http://whois.6bone.net/cgi-bin/whois"} - 	unless ($DATADIR)       {$DATADIR = "$HOMEDIR/data"} --	unless ($LIB)           {$LIB = "$HOMEDIR/lib"} -+	unless ($LIB)           {$LIB = "%%PREFIX%%/libexec/aspathtree"} - 	unless ($FILTEROUT)     {$FILTEROUT = 0} - 	$ICONS = "./icons"; - 	$WARNINGTIME = 5; -@@ -199,13 +200,13 @@ - 	$logtext .= "  LASTRUNFILE = \"$LASTRUNFILE\"\n"; - 	$logtext .= "  PTLASHISTORYDIR = \"$PTLASHISTORYDIR\" "; - 	if (-e "$PTLASHISTORYDIR") {$logtext .= "(ok)\n"} --	else {mkdir("$PTLASHISTORYDIR", 0777); $logtext .= "(created)\n"} -+	else {mkdir("$PTLASHISTORYDIR", 0775); $logtext .= "(created)\n"} - 	$logtext .= "  OTHERHISTORYDIR = \"$OTHERHISTORYDIR\" "; - 	if (-e "$OTHERHISTORYDIR") {$logtext .= "(ok)\n"} --	else {mkdir("$OTHERHISTORYDIR", 0777); $logtext .= "(created)\n"} -+	else {mkdir("$OTHERHISTORYDIR", 0775); $logtext .= "(created)\n"} - 	$logtext .= "  Complete tree dir = \"$HOMEDIR/history/completetree\" "; - 	if (-e "$HOMEDIR/history/completetree") {$logtext .= "(ok)\n"} --	else {mkdir("$HOMEDIR/history/completetree", 0777); $logtext .= "(created)\n"} -+	else {mkdir("$HOMEDIR/history/completetree", 0775); $logtext .= "(created)\n"} - 	$logtext .= "  OLDASPATHSFILE = \"$OLDASPATHSFILE\"\n"; - 	$logtext .= "  OLDDATEFILE = \"$OLDDATEFILE\"\n"; - 	if ($MORETREES) { -@@ -215,12 +216,12 @@ - 		$OLDBBDATEFILE         = "$HOMEDIR/history/bbtree/lastchangedate.txt"; - 		$logtext .= "  BB tree dir = \"$HOMEDIR/history/bbtree\" "; - 		if (-e "$HOMEDIR/history/bbtree") {$logtext .= "(ok)\n"} --		else {mkdir("$HOMEDIR/history/bbtree", 0777); $logtext .= "(created)\n"} -+		else {mkdir("$HOMEDIR/history/bbtree", 0775); $logtext .= "(created)\n"} - 		$logtext .= "  OLDBBASPATHSFILE = \"$OLDBBASPATHSFILE\"\n"; - 		$logtext .= "  OLDBBDATEFILE = \"$OLDBBDATEFILE\"\n"; - 		$logtext .= "  2001 tree dir = \"$HOMEDIR/history/othertree\" "; - 		if (-e "$HOMEDIR/history/othertree") {$logtext .= "(ok)\n"} --		else {mkdir("$HOMEDIR/history/othertree", 0777); $logtext .= "(created)\n"} -+		else {mkdir("$HOMEDIR/history/othertree", 0775); $logtext .= "(created)\n"} - 		$logtext .= "  OLDOTHASPATHSFILE = \"$OLDOTHASPATHSFILE\"\n"; - 		$logtext .= "  OLDOTHDATEFILE = \"$OLDOTHDATEFILE\"\n"; - 	} else { -@@ -246,7 +247,7 @@ - 		$CHANGESDIR            = "$HTMLDIR_LOCAL/changes"; - 		$logtext .= "  CHANGESDIR = \"$CHANGESDIR\" "; - 		if (-e "$CHANGESDIR") {$logtext .= "(ok)\n"} --		else {mkdir("$CHANGESDIR", 0777); $logtext .= "(created)\n"} -+		else {mkdir("$CHANGESDIR", 0775); $logtext .= "(created)\n"} - 		$OUTPUTCOMPLETECHANGES     = "$CHANGESDIR/bgp-page-complete-changes.html"; - 		$logtext .= "  OUTPUTCOMPLETECHANGES = \"$OUTPUTCOMPLETECHANGES\"\n"; - 		$OUTPUTBBCHANGES   = "$CHANGESDIR/bgp-page-backbone-changes.html"; -@@ -260,19 +261,19 @@ - 	$DETAILDIRCO           = "$DETAILDIR/complete"; - 	$logtext .= "  DETAILDIR = \"$DETAILDIR\" "; - 	if (-e "$DETAILDIR") {$logtext .= "(ok)\n"} --	else {mkdir("$DETAILDIR", 0777); $logtext .= "(created)\n"} -+	else {mkdir("$DETAILDIR", 0775); $logtext .= "(created)\n"} - 	$logtext .= "  DETAILDIRCO = \"$DETAILDIRCO\" "; - 	if (-e "$DETAILDIRCO") {$logtext .= "(ok)\n"} --	else {mkdir("$DETAILDIRCO", 0777); $logtext .= "(created)\n"} -+	else {mkdir("$DETAILDIRCO", 0775); $logtext .= "(created)\n"} - 	if ($MORETREES) { - 		$DETAILDIRBB   = "$DETAILDIR/backbone"; - 		$DETAILDIRIANA = "$DETAILDIR/otherIANA"; - 		$logtext .= "  DETAILDIRBB = \"$DETAILDIRBB\" "; - 		if (-e "$DETAILDIRBB") {$logtext .= "(ok)\n"} --		else {mkdir("$DETAILDIRBB", 0777); $logtext .= "(created)\n"} -+		else {mkdir("$DETAILDIRBB", 0775); $logtext .= "(created)\n"} - 		$logtext .= "  DETAILDIRIANA = \"$DETAILDIRIANA\" "; - 		if (-e "$DETAILDIRIANA") {$logtext .= "(ok)\n"} --		else {mkdir("$DETAILDIRIANA", 0777); $logtext .= "(created)\n"} -+		else {mkdir("$DETAILDIRIANA", 0775); $logtext .= "(created)\n"} - 	} else { - 		if (-e "$DETAILDIRBB") {system "rm -rf $DETAILDIRBB"} - 		if (-e "$DETAILDIRIANA") {system "rm -rf $DETAILDIRIANA"} -@@ -280,30 +281,30 @@ - 	$HISTORYHTMLDIR        = "$HTMLDIR_LOCAL/24h_history"; - 	$logtext .= "  HISTORYHTMLDIR = \"$HISTORYHTMLDIR\" "; - 	if (-e "$HISTORYHTMLDIR") {$logtext .= "(ok)\n"} --	else {mkdir("$HISTORYHTMLDIR", 0777); $logtext .= "(created)\n"} -+	else {mkdir("$HISTORYHTMLDIR", 0775); $logtext .= "(created)\n"} - 	$ICONSDIR              = "$HTMLDIR_LOCAL/icons"; - 	$logtext .= "  ICONSDIR = \"$ICONSDIR\"\n"; - 	$logtext .= "  Trash dir = \"$HTMLDIR_LOCAL/trash\" "; - 	if (-e "$HTMLDIR_LOCAL/trash") {system "rm -rf $HTMLDIR_LOCAL/trash/*"; $logtext .= "(ok, empty)\n"} --	else {mkdir("$HTMLDIR_LOCAL/trash", 0777); $logtext .= "(created)\n"} -+	else {mkdir("$HTMLDIR_LOCAL/trash", 0775); $logtext .= "(created)\n"} -  - 	$logtext .= "\n  HTMLDIR = \"$HTMLDIR\"\n"; - 	if (-d $HTMLDIR) { --		unless (-e "$HTMLDIR/details") {mkdir("$HTMLDIR/details", 0777); $logtext .= "  $HTMLDIR/details created.\n"} --		unless (-e "$HTMLDIR/details/complete") {mkdir("$HTMLDIR/details/complete", 0777); $logtext .= "  $HTMLDIR/details/complete created.\n"} -+		unless (-e "$HTMLDIR/details") {mkdir("$HTMLDIR/details", 0775); $logtext .= "  $HTMLDIR/details created.\n"} -+		unless (-e "$HTMLDIR/details/complete") {mkdir("$HTMLDIR/details/complete", 0775); $logtext .= "  $HTMLDIR/details/complete created.\n"} - 		if ($MORETREES) { --			unless (-e "$HTMLDIR/details/backbone") {mkdir("$HTMLDIR/details/backbone", 0777); $logtext .= "  $HTMLDIR/details/backbone created.\n"} --			unless (-e "$HTMLDIR/details/otherIANA") {mkdir("$HTMLDIR/details/otherIANA", 0777); $logtext .= "  $HTMLDIR/details/otherIANA created.\n"} -+			unless (-e "$HTMLDIR/details/backbone") {mkdir("$HTMLDIR/details/backbone", 0775); $logtext .= "  $HTMLDIR/details/backbone created.\n"} -+			unless (-e "$HTMLDIR/details/otherIANA") {mkdir("$HTMLDIR/details/otherIANA", 0775); $logtext .= "  $HTMLDIR/details/otherIANA created.\n"} - 		} else { - 			if (-e "$HTMLDIR/details/backbone") {system "rm -rf $HTMLDIR/details/backbone"} - 			if (-e "$HTMLDIR/details/otherIANA") {system "rm -rf $HTMLDIR/details/otherIANA"} - 		} --		unless (-e "$HTMLDIR/24h_history") {mkdir("$HTMLDIR/24h_history", 0777); $logtext .= "  $HTMLDIR/24h_history created.\n"} -+		unless (-e "$HTMLDIR/24h_history") {mkdir("$HTMLDIR/24h_history", 0775); $logtext .= "  $HTMLDIR/24h_history created.\n"} - 		if ($CHANGESFLAG) { --			unless (-e "$HTMLDIR/changes") {mkdir("$HTMLDIR/changes", 0777); $logtext .= "  $HTMLDIR/changes created.\n"} -+			unless (-e "$HTMLDIR/changes") {mkdir("$HTMLDIR/changes", 0775); $logtext .= "  $HTMLDIR/changes created.\n"} - 		} - 		unless (-e "$HTMLDIR/icons") { --			mkdir("$HTMLDIR/icons", 0777); -+			mkdir("$HTMLDIR/icons", 0775); - 			system("cp $ICONSDIR/* $HTMLDIR/icons"); - 			$logtext .= "  $HTMLDIR/icons created and template icons copied.\n"; - 		} | 
