Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
423bcbb7
Commit
423bcbb7
authored
Jul 13, 2004
by
Leigh B. Stoller
Browse files
Shift to treating "static" routing just like static-ddijk. Allow for
static-old to use original centralized static routing.
parent
7c740e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/common/config/rc.route
View file @
423bcbb7
...
...
@@ -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
"};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment