From 579af7d1e08c045a116874161051387d664cbf2e Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Fri, 18 Jun 2010 14:04:05 +0000 Subject: [PATCH] write the otherinterfaces attributes with discoveried IPs instead of ip attribute git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6549 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index d110488ba..600c8b27e 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -1974,8 +1974,8 @@ sub do_resetnet { if ( $namehash->{$name} ) { if ( !$ip or $ip eq $namehash->{$name} ) { send_msg( $req, 0, "$name: same ip address, skipping network reset" ); - if ($ip ne $oi) { - $hoststab->setNodeAttribs( $name,{otherinterfaces=>$ip} ); + if ( $ip ne $oi) { + $hoststab->setNodeAttribs( $name,{otherinterfaces=>$namehash->{$name}} ); } next; }