The current hardware IPs have been written to otherinterfaces attribute, so read this attribute instead of ip when resetnet

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5653 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2010-04-02 09:53:19 +00:00
parent 6126529d5a
commit 378d9ba7f7

View File

@ -132,7 +132,7 @@ sub connect {
##################################
my $hosttab = xCAT::Table->new( 'hosts' );
if ( $hosttab) {
my $hostshash = $hosttab->getNodeAttribs( $server, [qw(ip)]);
my $hostshash = $hosttab->getNodeAttribs( $server, [qw(otherinterfaces)]);
if ( $hostshash ) {
$server = $hostshash->{ip};
}