Commit 059570bb authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add a print statement to an error condition.

parent 2d2bbd3f
......@@ -108,8 +108,12 @@ sub LookupAll($$$)
return -1
if (!$state_result);
return -1
if (!$state_result->numrows);
if (!$state_result->numrows) {
print STDERR
"*** Missing interface_state table entry for interface\n".
" card:port $card:$port on $nodeid.\n";
return -1;
$interface->{'STATE'} = $state_result->fetchrow_hashref();
# Cache by card,port and by iface
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment