Fixed one issue that --resetnet option in lsslp should update the otherinterfaces attribute if resetnet succeed.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5752 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2010-04-13 05:59:05 +00:00
parent 1d66f1d241
commit 67d40f426a

View File

@ -2027,9 +2027,12 @@ sub do_resetnet {
foreach my $ip ( @$succeed_nodes ) {
if ( $ip_host->{$ip} ) {
$result .= $ip_host->{$ip} . ",";
my $new_ip = $hoststab->getNodeAttribs( $ip_host->{$ip}, [qw(ip)]);
$hoststab->setNodeAttribs( $ip_host->{$ip},{otherinterfaces=>$new_ip->{ip}} );
}
}
$result .= "\nReset network finished.\n";
$hoststab->close();
send_msg( $req, 0, $result );