Skip to content
Snippets Groups Projects
Commit 5eb82f8c authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Do not run this when the experiment is using explicit bridge nodes; it

breaks and since we always run the distributed route calculator on the
nodes, just let it do it (module fixes to gentopofile).
parent f3917894
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ my $TB = "@prefix@";
my $NETMASK = "255.255.255.0";
my $EXPTNETMASK = "255.255.0.0";
my $debug = 0;
my $debug = 1;
my $memdebug = 0;
my $routecalc = "$TB/libexec/routecalc";
my $impotent = 0;
......@@ -125,7 +125,7 @@ else {
# Get the list of nodes.
#
my $query_result =
DBQueryFatal("select vname,ips,routertype from virt_nodes ".
DBQueryFatal("select vname,ips,routertype,role from virt_nodes ".
"where pid='$pid' and eid='$eid'");
if (!$query_result->numrows) {
......@@ -184,13 +184,18 @@ my $staticO = 0;
my $staticN = 0;
if (!$force) {
while (my (undef,undef,$routertype) = $query_result->fetchrow_array()) {
while (my (undef,undef,$routertype,$role) =
$query_result->fetchrow_array()) {
if ($routertype eq "static-old") {
$staticO++;
}
elsif ($routertype eq "static") {
$staticN++;
}
if ($role eq "bridge") {
# Need to figure this out.
exit(0);
}
}
# No static routing of any kind.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment