X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PlanetLabConf%2Fntp%2Fstep-tickers.php;h=2efd704779e64b4f6b9bb6e1f87c0386e413667e;hb=6552abf59a332977e10520772dab68fe31f0c95c;hp=98d0cc2ce9dc13632751187c78a09494f69040b2;hpb=37a93603272c00a8b2389bbec0c1860382eb8569;p=nodeconfig.git diff --git a/PlanetLabConf/ntp/step-tickers.php b/PlanetLabConf/ntp/step-tickers.php index 98d0cc2..2efd704 100755 --- a/PlanetLabConf/ntp/step-tickers.php +++ b/PlanetLabConf/ntp/step-tickers.php @@ -5,8 +5,6 @@ // Marc Fiuczynski // Copyright (C) 2006 The Trustees of Princeton University // -// $Id$ -// // Get admin API handle require_once 'plc_api.php'; @@ -18,9 +16,9 @@ $default_name = "default"; $file_name = $config_directory . $file_prefix . $default_name; // Look up the node -$nodenetworks = $adm->GetNodeNetworks(array('ip' => $_SERVER['REMOTE_ADDR'])); -if (!empty($nodenetworks)) { - $nodes = $adm->GetNodes(array($nodenetworks[0]['node_id'])); +$interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR'])); +if (!empty($interfaces)) { + $nodes = $adm->GetNodes(array($interfaces[0]['node_id'])); if (!empty($nodes)) { $node = $nodes[0]; } @@ -77,4 +75,4 @@ foreach ($lines as $line_num => $line) { } } -?> \ No newline at end of file +?>