From acd44f27eeb0f80886481a2e19ac2ee2b7c11494 Mon Sep 17 00:00:00 2001 From: Jia Zhao Date: Mon, 19 May 2014 14:28:58 +0800 Subject: [PATCH] fix bugs that duplicate mac could be imported --- xCAT-server/lib/xcat/plugins/profilednodes.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index 1dbb7f141..ae1a88826 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -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{$_}}){