diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 8a898cfee..142175fc6 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -971,6 +971,7 @@ sub getmacs { (my $macd,my $mac) = split (/:/,$macs[$midx],2); $mac =~ s/\s+//g; if ($macd =~ /mac address \d/i) { + $mac =~ s/\s*->.*$//; my $mactab = xCAT::Table->new('mac',-create=>1); $mactab->setNodeAttribs($curn,{mac=>$mac}); $mactab->close;