From 67d40f426a62b1ffeed96a540d20dda2aa1b172f Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 13 Apr 2010 05:59:05 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/lsslp.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 20919012c..e35f82fb9 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -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 );