Commit 2cd8a8c2 authored by Mike Hibler's avatar Mike Hibler
Browse files

Further qualify the WIDEAREA_LOCALNODE lookup.

parent 67df891e
#!/usr/bin/perl -wT #!/usr/bin/perl -wT
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group. # Copyright (c) 2000-2003, 2005 University of Utah and the Flux Group.
# All rights reserved. # All rights reserved.
# #
use English; use English;
...@@ -137,7 +137,8 @@ print "\n=== plablinkdata running at " . `date`; ...@@ -137,7 +137,8 @@ print "\n=== plablinkdata running at " . `date`;
# #
my $query_result = my $query_result =
DBQueryFatal("select iface from interfaces ". DBQueryFatal("select iface from interfaces ".
"where node_id='" . TBDB_WIDEAREA_LOCALNODE . "'"); "where node_id='" . TBDB_WIDEAREA_LOCALNODE . "' ".
"and role='ctrl'");
if ($query_result->num_rows() != 1) { if ($query_result->num_rows() != 1) {
fatal("Unable to determine iface for " . TBDB_WIDEAREA_LOCALNODE); fatal("Unable to determine iface for " . TBDB_WIDEAREA_LOCALNODE);
} }
......
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