fix bugs that duplicate mac could be imported

This commit is contained in:
Jia Zhao 2014-05-19 14:28:58 +08:00
parent 77dcec5195
commit acd44f27ee

View File

@ -2120,6 +2120,7 @@ sub validate_node_entry{
$errmsg .= "MAC address $node_entry{$_} is invalid. You must use a valid MAC address.\n";
}else{
$allmacs{$node_entry{$_}} = 0;
$allmacsupper{uc($node_entry{$_})} = 0;
}
}elsif ($_ eq "ip"){
if (exists $allips{$node_entry{$_}}){