fix #871: netstat: include veth devices

Include container's veth devices in /nodes/{node}/netstat
This commit is contained in:
Wolfgang Bumiller 2016-01-19 09:45:38 +01:00 committed by Dietmar Maurer
parent cab2875f4f
commit 675946f221

View File

@ -290,7 +290,7 @@ __PACKAGE__->register_method({
my $netdev = PVE::ProcFSTools::read_proc_net_dev();
foreach my $dev (keys %$netdev) {
next if $dev !~ m/^tap([1-9]\d*)i(\d+)$/;
next if $dev !~ m/^(?:tap|veth)([1-9]\d*)i(\d+)$/;
my $vmid = $1;
my $netid = $2;