Commit 423bcbb7 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Shift to treating "static" routing just like static-ddijk. Allow for

static-old to use original centralized static routing.
parent 7c740e77
......@@ -141,7 +141,8 @@ sub doboot()
}
# Special case for distributed route calculation.
if ($type eq "static-ddijk") {
if ($type eq "static" ||
$type eq "static-ddijk") {
if (ddijkstra(\@routes)) {
close(RC);
fatal("Could not get routes from ddijkstra!");
......@@ -154,7 +155,8 @@ sub doboot()
# Also check for use of gated/manual and remember it.
#
my $usegated = (($type eq "gated" || $type eq "ospf") ? 1 : 0);
my $usemanual = (($type eq "manual" || $type eq "static") ? 1 : 0);
my $usemanual = (($type eq "manual" ||
$type eq "static" || $type eq "static-old") ? 1 : 0);
foreach my $rconfig (@routes) {
my $dip = $rconfig->{"IPADDR"};
......
Markdown is supported
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