Update otherinterfaces attribute in resetnet

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6278 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2010-05-31 09:12:46 +00:00
parent a36e7c4976
commit a3ccaaba90

View File

@ -1974,6 +1974,9 @@ 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} );
}
next;
}
} else {