2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-19 12:50:49 +00:00

support VM for node management profiles consistent check

This commit is contained in:
Lei Ai
2014-07-10 11:36:59 +08:00
parent 8552292c70
commit 357ece6e9e

View File

@ -860,6 +860,11 @@ sub check_profile_consistent{
return 0, "$nictype networkprofile must use with hardwareprofile.";
}
}
if ($mgt eq 'vm')
{
return 1, "";
}
# For nodetype is lpar node, not need to check the nictype as it is not required for lpar node
if (not $nictype and $mgt and $nodetype ne 'lpar' ) {