Update dhcp on clonevm if appropriate
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9449 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
589cdec1a4
commit
c3982e0e44
@ -560,6 +560,16 @@ sub do_cmd {
|
||||
generic_hyp_operation(\&migrate,@exargs);
|
||||
}
|
||||
wait_for_tasks();
|
||||
if ($command eq 'clonevm') { #TODO: unconditional, remove mkvms hosted copy
|
||||
my @dhcpnodes;
|
||||
foreach (keys %{$tablecfg{dhcpneeded}}) {
|
||||
push @dhcpnodes,$_;
|
||||
delete $tablecfg{dhcpneeded}->{$_};
|
||||
}
|
||||
unless ($::XCATSITEVALS{'dhcpsetup'} and ($::XCATSITEVALS{'dhcpsetup'} =~ /^n/i or $::XCATSITEVALS{'dhcpsetup'} =~ /^d/i or $::XCATSITEVALS{'dhcpsetup'} eq '0')) {
|
||||
$executerequest->({command=>['makedhcp'],node=>\@dhcpnodes});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#inventory request for esx
|
||||
|
Loading…
Reference in New Issue
Block a user