FSP/BPA redundancy: we need to take a consideration of the case that the existed hostname which we want to use is IP address and different from the new IP address
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8693 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
576a323c42
commit
49feeca213
@ -1687,6 +1687,10 @@ sub parse_responses {
|
||||
#if ( exists($opt{M}) ) {
|
||||
$hostname = match_vpdtable($type, $result[1], $result[2],$result[3], $result[5], $result[6], $result[7], $result[8]);
|
||||
#}
|
||||
my $ifip1 = xCAT::Utils->isIpaddr($hostname);
|
||||
if ($ifip1) {
|
||||
$hostname = $severnode1[4];
|
||||
}
|
||||
if ($hostname) {
|
||||
#$severnode1[4] = $hostip{$hostname};
|
||||
$outhash{$hostname} = \@severnode1;
|
||||
@ -1709,6 +1713,11 @@ sub parse_responses {
|
||||
#if ( exists($opt{M}) ) {
|
||||
$hostname = match_vpdtable($type, $result[1], $result[2],$result[3], $result[5], $result[6], $result[7], $result[8]);
|
||||
#}
|
||||
my $ifip2 = xCAT::Utils->isIpaddr($hostname);
|
||||
if ($ifip2) {
|
||||
$hostname = $severnode2[4];
|
||||
}
|
||||
|
||||
if ($hostname) {
|
||||
#$severnode2[4] = $hostip{$hostname};
|
||||
$outhash{$hostname} = \@severnode2;
|
||||
|
Loading…
Reference in New Issue
Block a user