Commit 305e15a0 authored by Shashi Guruprasad's avatar Shashi Guruprasad
Browse files

Fixes Mike's problem of finding an existing net route when trying to add

an interface route when bringing up the interface. To solve this, I don't
do the hostroute optimization (i.e. add the 1st host route as a net route
and add subsequent host routes only if they are different) for directly
connected neighbors.
parent cda869c6
......@@ -560,7 +560,15 @@ foreach my $hostroute (keys(%hostroutes)) {
} else {
if ($optimize) {
# We do the following optimization only for
# hosts that are _not_ directly connected
# neighbors. Otherwise, adding interface
# subnet routes fail. Even with this certain
# redundant links might be unused since the
# route calculator ended up choosing one of
# the routes over the other(s)
if ($optimize && ($dst ne $hop)) {
$netroutes{"$src:$dstipsubnet"} = $hop;
$type = "net";
$dstip = $dstipsubnet;
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