]> git.proxmox.com Git - pve-manager.git/commitdiff
fix #871: netstat: include veth devices
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 19 Jan 2016 08:45:38 +0000 (09:45 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 25 Jan 2016 09:59:48 +0000 (10:59 +0100)
Include container's veth devices in /nodes/{node}/netstat

PVE/API2/Nodes.pm

index 311d8743f21e8b159ce63e61cb2488b4b1f2c06b..b48478d2c38c70091337ebee0ad96369729fe603 100644 (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;