From c2d8d00944e34515c042b2575814dffe5d0f748c Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 25 Jan 2019 08:37:30 +0100 Subject: [PATCH] enhance xml ilo nic filter (Fix #1358 #1213) --- hardware/server/hp/ilo/xmlapi/mode/components/nic.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hardware/server/hp/ilo/xmlapi/mode/components/nic.pm b/hardware/server/hp/ilo/xmlapi/mode/components/nic.pm index 58fc337b9..684d6c788 100644 --- a/hardware/server/hp/ilo/xmlapi/mode/components/nic.pm +++ b/hardware/server/hp/ilo/xmlapi/mode/components/nic.pm @@ -44,6 +44,8 @@ sub check { # foreach my $result (@{$self->{xml_result}->{GET_EMBEDDED_HEALTH_DATA}->{NIC_INFORMATION}->{NIC}}) { my $instance = $result->{NETWORK_PORT}->{VALUE}; + $instance = $result->{PORT_DESCRIPTION}->{VALUE} . '.' . $instance + if (defined($result->{PORT_DESCRIPTION}->{VALUE})); next if ($self->check_filter(section => 'nic', instance => $instance)); next if ($result->{STATUS}->{VALUE} =~ /not installed|n\/a|not present|not applicable/i && @@ -62,4 +64,4 @@ sub check { } } -1; \ No newline at end of file +1;