Add support for flexdiscover to work with x222 servers

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16670 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-06-18 17:07:46 +00:00
parent 5222f25f25
commit df8fdf3896

View File

@ -1970,6 +1970,9 @@ sub configure_hosted_elements {
my $pass = $passwordmap{$cmm}->{password};
foreach $immdata (values %{$flexchassismap{$uuid}}) {
$slot=$immdata->{attributes}->{slot}->[0];
if (defined $immdata->{attributes}->{'chassis-sub-slot'}) {
$slot .= ":".$immdata->{attributes}->{'chassis-sub-slot'}->[0];
}
if ($node = $nodebymp{$cmm}->{$slot}) {
my $addr = $immdata->{peername}; #todo, use sockaddr and remove the 427 port from it instead?
if ($addr =~ /^fe80/) { #Link local address requires scope index