package HV::Monitor::Backends::Libvirt;
use 5.006;
use strict;
use warnings;
use JSON;
use File::Slurp qw(read_file);
=head1 NAME
HV::Monitor::Backends::Libvirt - Libvirt support for HV::Monitor
=
) ) {
eval {
my $json = decode_json( $net_line[0] );
$nic_info->{mac} = $json->{mac};
$json->{netdev} =~ s/^[a-zA-Z]+//;
if ( defined( $net_list[ $json->{netdev} ] ) ) {
$json->{netdev} ] } ) ) {
$nic_info->{parent} = $net_cache->{ $net_list[ $json->{netdev} ] };
}
}
}
}
else {
# looks like we did not find one that appears to be a JSON