Commit 6e9929ff authored by Shashi Guruprasad's avatar Shashi Guruprasad
Browse files

Removed the NSE hack change that skipped installing a route if the

destination was the same as hop. We don't need this since staticroutes
never puts such a route into the DB
parent 427d9abd
...@@ -747,12 +747,6 @@ sub dorouterconfig () ...@@ -747,12 +747,6 @@ sub dorouterconfig ()
my $cost = $5; my $cost = $5;
my $routearg = inet_ntoa(inet_aton($gate) & inet_aton($dmask)); my $routearg = inet_ntoa(inet_aton($gate) & inet_aton($dmask));
# NSE hack: staticroutes added routes for the case when dst == hop
# Filtering it on the client side
if ( $dip eq $routearg ) {
next;
}
if (! defined($upmap{$routearg})) { if (! defined($upmap{$routearg})) {
$upmap{$routearg} = []; $upmap{$routearg} = [];
$downmap{$routearg} = []; $downmap{$routearg} = [];
......
...@@ -747,12 +747,6 @@ sub dorouterconfig () ...@@ -747,12 +747,6 @@ sub dorouterconfig ()
my $cost = $5; my $cost = $5;
my $routearg = inet_ntoa(inet_aton($gate) & inet_aton($dmask)); my $routearg = inet_ntoa(inet_aton($gate) & inet_aton($dmask));
# NSE hack: staticroutes added routes for the case when dst == hop
# Filtering it on the client side
if ( $dip eq $routearg ) {
next;
}
if (! defined($upmap{$routearg})) { if (! defined($upmap{$routearg})) {
$upmap{$routearg} = []; $upmap{$routearg} = [];
$downmap{$routearg} = []; $downmap{$routearg} = [];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment