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:
		| @@ -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 ); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user