From becef6d672be3deac2aba437a71010b02c15549f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 17 Sep 2010 14:41:32 +0000 Subject: [PATCH] -Have discovery stop trying to help fill in primarynic git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7502 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/nodediscover.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/nodediscover.pm b/xCAT-server/lib/xcat/plugins/nodediscover.pm index b60d15a0c..f5eed2c80 100644 --- a/xCAT-server/lib/xcat/plugins/nodediscover.pm +++ b/xCAT-server/lib/xcat/plugins/nodediscover.pm @@ -229,10 +229,11 @@ sub process_request { my $hosttag = gethosttag($node,$netn,@ifinfo[1],\%usednames); print Dumper($hosttag) . "\n"; if ($hosttag) { - (my $rent) = $nrtab->getNodeAttribs($node,['primarynic','nfsserver']); - unless ($rent and $rent->{primarynic}) { #if primarynic not set, set it to this nic - $nrtab->setNodeAttribs($node,{primarynic=>@ifinfo[1]}); - } + #(my $rent) = $nrtab->getNodeAttribs($node,['primarynic','nfsserver']); + (my $rent) = $nrtab->getNodeAttribs($node,['nfsserver']); + #unless ($rent and $rent->{primarynic}) { #if primarynic not set, set it to this nic + # $nrtab->setNodeAttribs($node,{primarynic=>@ifinfo[1]}); + #} unless ($rent and $rent->{nfsserver}) { $nrtab->setNodeAttribs($node,{nfsserver=>xCAT::Utils->my_ip_facing($hosttag)}); }