make dns and dhcp after adding the un management node in profilenodes.pm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8-pcm@16113 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xyye
2013-04-28 05:56:02 +00:00
parent 195e08340b
commit 35d0df1356

View File

@ -910,7 +910,18 @@ Usage:
if ($::RUNCMD_RC != 0){
setrsp_progress("Warning: failed to update /etc/hosts for unmanaged node.");
}
$retref = xCAT::Utils->runxcmd({command=>["makedns"], node=>[$args_dict{"hostname"}]}, $request_command, 0, 2);
$retstrref = parse_runxcmd_ret($retref);
if ($::RUNCMD_RC != 0){
setrsp_progress("Warning: failed to update dns for unmanaged node.");
}
$retref = xCAT::Utils->runxcmd({command=>["makedhcp"], node=>[$args_dict{"hostname"}]}, $request_command, 0, 2);
$retstrref = parse_runxcmd_ret($retref);
if ($::RUNCMD_RC != 0){
setrsp_progress("Warning: failed to update dhcp for unmanaged node.");
}
setrsp_infostr("Created unmanaged node.");
}