enhance xml ilo nic filter (Fix #1358 #1213)

This commit is contained in:
garnier-quentin 2019-01-25 08:37:30 +01:00
parent 818b0e8a7d
commit 495e0c915f
1 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,8 @@ sub check {
# </NIC>
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;
1;