Commit fb1f8f9a authored by Mike Hibler's avatar Mike Hibler

Add SSL-only "arpinfo" command to return MAC/IP for servers and "peer" nodes.

Details:

Return MAC/IP (ARP) information for a node's "peers" on the node control
net. We also return info for the control net gateway (if there is one)
and any servers on the node control network (e.g., subbosses).

As far as "peer" info, right now we just support calls by subbosses that
will return the info for the set of nodes they control. This could also
be used by experiment firewalls or gateways to return info for the nodes
they are protecting and setup filters accordingly.

Note that this call only returns info if invoked using SSL. This allows
the client to be sure it is getting the info from boss.

Tangentially related, is the addition of an index to the subbosses table
to speed up a really slow query.
parent a5fa1072
......@@ -3688,7 +3688,8 @@ CREATE TABLE `subbosses` (
`service` varchar(20) NOT NULL default '',
`subboss_id` varchar(20) NOT NULL default '',
`disabled` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`node_id`,`service`)
PRIMARY KEY (`node_id`,`service`),
KEY `active` (`disabled`,`subboss_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBKeyExists("subbosses", "active")) {
DBQueryFatal("alter table subbosses add key `active` (`disabled`,`subboss_id`)");
}
return 0;
}
1;
This diff is collapsed.
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