Commit e42e581b authored by Kirk Webb's avatar Kirk Webb
Browse files

Added "Lease Expiration" row to shownode output for plab nodes.

parent f8295864
...@@ -1807,6 +1807,21 @@ function SHOWNODE($node_id, $short = 0) { ...@@ -1807,6 +1807,21 @@ function SHOWNODE($node_id, $short = 0) {
</tr>\n"; </tr>\n";
} }
if ($isplabdslice) {
$query_result =
DBQueryFatal("select leaseend from plab_slice_nodes ".
"where node_id='$node_id'");
if (mysql_num_rows($query_result) != 0) {
$row = mysql_fetch_array($query_result);
$leaseend = $row[leaseend];
echo"<tr>
<td>Lease Expiration:</td>
<td class=left>$leaseend</td>
</tr>\n";
}
}
if ($isremotenode) { if ($isremotenode) {
if ($isvirtnode) { if ($isvirtnode) {
SHOWWIDEAREANODE($phys_nodeid, 1); SHOWWIDEAREANODE($phys_nodeid, 1);
......
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