Commit 448cfc3d authored by Timothy Stack's avatar Timothy Stack

When figuring out the routing type for the ltmap, prune out the

firewall entry in the virt_nodes table since its routertype always set
to 'none'.
parent 96b7fad2
#!/usr/bin/perl -wT
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# All rights reserved.
use English;
......@@ -252,9 +252,17 @@ foreach my $lan (keys(%virt_lans)) {
# Generate the linktest config for the routing type.
# XXX Linktest only supports one type of routing per-experiment at the moment,
# not per-node. We also have to prune out the firewall since it always has
# routertype == "none".
$query_result =
DBQueryFatal("select distinct routertype from virt_nodes ".
"where pid='$pid' and eid='$eid'");
DBQueryFatal("select vn.routertype from virt_nodes as vn ".
"left join virt_firewalls as vf on ( and ".
" vf.eid=vn.eid and vf.fwname=vn.vname) ".
"where'$pid' and vn.eid='$eid' ".
" and vf.fwname is null ".
"group by routertype");
while (my ($rt) = $query_result->fetchrow_array) {
print $LTOUT "r $rt\n";
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