[Bgpd-users] patch for multiple peers
Status: Alpha
Brought to you by:
stevenh
|
From: Andrew - S. <an...@su...> - 2002-09-27 18:03:26
|
the following patch fixes some simple errors in LocalRib.pm, which otherwise kill the daemon any time that route selection is performed (only happens with multiple peers). With these, I'm now running iBGP to both my cores (Ciscos) without any problems that I've found so far. -- Andrew, Supernews http://www.supernews.com *** BGP/LocalRib.pm 18 Jun 2002 13:46:55 -0000 1.2 --- BGP/LocalRib.pm 25 Jul 2002 17:35:50 -0000 1.4 *************** *** 148,154 **** } sub is_better_route { ! my ($prefix, $len, $adjRIBin, $bgprouter, $curpeer, $trypeer); my $attr1 = $adjRIBin->get_pathattribute ($prefix, $len, $curpeer); my $attr2 = $adjRIBin->get_pathattribute ($prefix, $len, $trypeer); --- 148,154 ---- } sub is_better_route { ! my ($prefix, $len, $adjRIBin, $bgprouter, $curpeer, $trypeer) = @_; my $attr1 = $adjRIBin->get_pathattribute ($prefix, $len, $curpeer); my $attr2 = $adjRIBin->get_pathattribute ($prefix, $len, $trypeer); *************** *** 200,206 **** $med2 = $temp; } $bgprouter->log (256, 256, "MED $med1 vs MED $med2"); ! return 1 if ($$med1 > $med2); # Rule 8: Prefer closest IGP neighbor. # We don't do IGP --- 200,206 ---- $med2 = $temp; } $bgprouter->log (256, 256, "MED $med1 vs MED $med2"); ! return 1 if ($med1 > $med2); # Rule 8: Prefer closest IGP neighbor. # We don't do IGP |