fix #871: netstat: include veth devices
Include container's veth devices in /nodes/{node}/netstat
This commit is contained in:
parent
cab2875f4f
commit
675946f221
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user