Commit 9a4057d0 authored by Leigh Stoller's avatar Leigh Stoller

Add info about routable IPs to advertisement:

   <rspec_routable_addresses
      xmlns="http://www.protogeni.net/resources/rspec/ext/emulab/1"
      configured='XXX' available='YYY' />
parent 49731855
......@@ -2224,6 +2224,18 @@ sub print_header {
}
print "</rspec_shared_vlan>\n";
}
$result = DBQueryFatal("select IP from virt_node_public_addr");
if ($result->rows > 0) {
my $configured = $result->rows;
$result = DBQueryFatal("select IP from virt_node_public_addr ".
"where node_id is null");
my $available = $configured - $result->rows;
print "<rspec_routable_addresses xmlns=\"" . $emulabns . "\" " .
"configured='$configured' available='$available' />\n";
}
print $opstate . "\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