Have slpdiscover avoid doing the same IMM multiple times (due to modified SLP retry logic)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12826 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-05-19 21:13:55 +00:00
parent 9b4d5e9739
commit 5ac7ac26c4

View File

@ -17,6 +17,7 @@ sub handled_commands {
my $callback;
my $docmd;
my %doneaddrs;
my %ip4neigh;
my %ip6neigh;
my %flexchassismap;
@ -215,6 +216,8 @@ sub configure_hosted_elements {
if ($addr =~ /^fe80/) { #Link local address requires scope index
$addr .= "%".$immdata->{scopeid};
}
if ($doneaddrs{$addr}) { next; }
$doneaddrs{$addr}=1;
setupIMM($node,slpdata=>$immdata,curraddr=>$addr,username=>$user,password=>$pass);
}
}