From 2cd8a8c20dc6ebb12ed4e640208e0baa88e836f0 Mon Sep 17 00:00:00 2001 From: Mike Hibler <mike@flux.utah.edu> Date: Thu, 24 Mar 2005 17:48:05 +0000 Subject: [PATCH] Further qualify the WIDEAREA_LOCALNODE lookup. --- tbsetup/plab/plablinkdata.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tbsetup/plab/plablinkdata.in b/tbsetup/plab/plablinkdata.in index 1d76104d46..2714267cb6 100755 --- a/tbsetup/plab/plablinkdata.in +++ b/tbsetup/plab/plablinkdata.in @@ -1,7 +1,7 @@ #!/usr/bin/perl -wT # # 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. # use English; @@ -137,7 +137,8 @@ print "\n=== plablinkdata running at " . `date`; # my $query_result = 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) { fatal("Unable to determine iface for " . TBDB_WIDEAREA_LOCALNODE); } -- GitLab