-Quick hack for the new AMM BPET42D format and getmacs. However, increasingly, the blade situation is also getting too complex for the simple 'getmacs' type of functionality
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1683 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ef2d4ada6b
commit
093f85a1eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user