diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 5c508ea27..ac2dd69ca 100755 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -1097,6 +1097,7 @@ sub parse_responses { $atthash{id} = ${$attributes->{'lparid'}}[0]; $atthash{ip} = ${$attributes->{'ip-address'}}[0]; $atthash{hostname} = get_host_from_url($request, $attributes); + $atthash{hostname} =~ s/^Server/ivm/; my @ips = @{$attributes->{'ip-address'}}; foreach my $tmpip (@ips) { if (exists($::OLD_DATA_CACHE{"ivm*".$atthash{mtm}."*".$atthash{serial}})){ @@ -1569,6 +1570,9 @@ sub format_stanza { if ($type =~ /^fsp|bpa|cmm$/){ $result .= "\totherinterfaces=${$outhash->{$name}}{otherinterfaces}\n"; } + if ($type eq "ivm") { + $result .= "\tip=${$outhash->{$name}}{ip}\n"; + } $result .= "\thwtype=$globalhwtype{$type}\n"; } return( $result );