From 357ece6e9ebe791328e105a6374f36df7d1c82ce Mon Sep 17 00:00:00 2001 From: Lei Ai Date: Thu, 10 Jul 2014 11:36:59 +0800 Subject: [PATCH] support VM for node management profiles consistent check --- perl-xCAT/xCAT/ProfiledNodeUtils.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-xCAT/xCAT/ProfiledNodeUtils.pm b/perl-xCAT/xCAT/ProfiledNodeUtils.pm index 96458c88e..0dc3efb65 100644 --- a/perl-xCAT/xCAT/ProfiledNodeUtils.pm +++ b/perl-xCAT/xCAT/ProfiledNodeUtils.pm @@ -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' ) {