Commit 3126e860 authored by Leigh Stoller's avatar Leigh Stoller

Quickie hack for Kirk, to throw an error if user sends a link event to

a lan or link that is running a linkdelay on a linux node.
parent 294b0ba5
......@@ -423,10 +423,12 @@ sub ChangeLinkDelayConfig() {
my @query_clauses;
my $query_string;
$query_string = "select * from linkdelays ".
"where pid='$pid' and eid='$eid' and vlan='$link' ";
$query_string = "select l.*,o.OS from linkdelays as l ".
"left join nodes as n on n.node_id=l.node_id ".
"left join os_info as o on o.osid=n.def_boot_osid ".
"where l.pid='$pid' and l.eid='$eid' and l.vlan='$link' ";
$query_string .= "and vnode='$srcvnode'"
$query_string .= "and l.vnode='$srcvnode'"
if (defined($srcvnode));
#
......@@ -437,6 +439,19 @@ sub ChangeLinkDelayConfig() {
return -1;
}
#
# XXX Check for linux; temporary.
#
while (my $row = $query_result->fetchrow_hashref()) {
my $vnode = $row->{'vnode'};
my $OS = $row->{'OS'};
if ($OS eq "Linux") {
die("*** $0:\n".
" Oops, dynamic events do not yet work on Linux!\n");
}
}
#
# This is much easier than delay nodes! As above, we cannot change a
# lan node asymmetrically yet.
......
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