mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 19:22:05 +00:00
Allow IB/OPA addresses in mac table again
The change blocked valid addresses.
This commit is contained in:
parent
f60a97dcb2
commit
1a4b89523b
@ -610,7 +610,7 @@ sub addnode
|
||||
$hname = $node;
|
||||
} #Default to hostname equal to nodename
|
||||
unless ($mac) { next; } #Skip corrupt format
|
||||
if ($mac !~ /^[0-9a-fA-F]{2}(-[0-9a-fA-F]{2}){5}$|^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}$/)
|
||||
if ($mac !~ /^[0-9a-fA-F]{2}(-[0-9a-fA-F]{2}){5,7}$|^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5,7}$/)
|
||||
{
|
||||
$callback->(
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user