mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-24 12:10:25 +00:00
Merge pull request #4643 from jjohnson42/fixmacdatacheck
Fix IMM MAC data check
This commit is contained in:
@@ -1152,6 +1152,7 @@ passed as argument rather than by table value',
|
||||
" defserialflow: The default serial flow - currently only used by the mknb command.\n\n" .
|
||||
" defserialport: The default serial port - currently only used by mknb.\n\n" .
|
||||
" defserialspeed: The default serial speed - currently only used by mknb.\n\n" .
|
||||
" disablenodesetwarning: Allow the legacy xCAT non-osimage style nodeset to execute.\n\n" .
|
||||
" genmacprefix: When generating mac addresses automatically, use this manufacturing\n" .
|
||||
" prefix (e.g. 00:11:aa)\n\n" .
|
||||
" genpasswords: Automatically generate random passwords for BMCs when configuring\n" .
|
||||
|
@@ -4696,7 +4696,7 @@ sub parseboard {
|
||||
my $macdata = $boardinf{extra}->[6]->{value};
|
||||
my $macstring = "1";
|
||||
my $macprefix;
|
||||
while ($macdata and $macstring !~ /00:00:00:00:00:00/ and not ref $global_sessdata->{currmacs}) {
|
||||
while ($macdata and ref $macdata and $macstring !~ /00:00:00:00:00:00/ and not ref $global_sessdata->{currmacs}) {
|
||||
my @currmac = splice @$macdata, 0, 6;
|
||||
unless ((scalar @currmac) == 6) {
|
||||
last;
|
||||
|
Reference in New Issue
Block a user