/usr/share/doc/libsys-virt-perl/examples/devices.pl is in libsys-virt-perl 3.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # -*- perl -*-
use strict;
use warnings;
use Sys::Virt;
my $addr = @ARGV ? shift @ARGV : undef;
my $con = Sys::Virt->new(address => $addr, readonly => 1);
my @devs = $con->list_node_devices("net");
print "Available NICS\n";
foreach (@devs) {
print "NIC: ", $_->get_name(), "\n";
}
|