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
This commit is contained in:
wanghuaz 2010-06-18 14:04:05 +00:00
parent 3922da1c56
commit 579af7d1e0

View File

@ -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;
}