From 92ebc7a7966bf2e7e445ba8aa33c5f671edad492 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 27 Sep 2010 19:08:15 +0000 Subject: [PATCH] Handle mac address generation for clonevm more similarly to mkvm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7676 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 18772c54d..75be923db 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -2248,7 +2248,7 @@ sub process_request { } else { $confdata->{kvmnodedata} = {}; } - if ($command eq 'mkvm' or $command eq 'rpower' and (grep { "$_" eq "on" or $_ eq "boot" or $_ eq "reset" } @exargs)) { + if ($command eq 'mkvm' or ($command eq 'clonevm' and (grep { "$_" eq '-b' } @exargs)) or ($command eq 'rpower' and (grep { "$_" eq "on" or $_ eq "boot" or $_ eq "reset" } @exargs))) { xCAT::VMCommon::requestMacAddresses($confdata,$noderange); my @dhcpnodes; foreach (keys %{$confdata->{dhcpneeded}}) {