-Call makedhcp when mac addresses are generated by virtualization code

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4694 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-11-30 18:37:01 +00:00
parent 7b76695826
commit 02756bea76

View File

@ -1092,6 +1092,12 @@ sub process_request {
xCAT::VMCommon::grab_table_data($noderange,$confdata,$callback);
if ($command eq 'mkvm' or $command eq 'rpower' and (grep { "$_" eq "on" or $_ eq "boot" or $_ eq "reset" } @exargs)) {
xCAT::VMCommon::requestMacAddresses($confdata,$noderange);
my @dhcpnodes;
foreach (keys %{$tablecfg{dhcpneeded}}) {
push @dhcpnodes,$_;
delete $tablecfg{dhcpneeded}->{$_};
}
$executerequest->({command=>['makedhcp'],node=>\@dhcpnodes});
}
if ($command eq 'revacuate' or $command eq 'rmigrate') {