]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
Use ip from iproute2 package instead of net-tools
authorEmmanuel Kasper <e.kasper@proxmox.com>
Mon, 6 Feb 2017 14:37:23 +0000 (15:37 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 8 Feb 2017 09:00:55 +0000 (10:00 +0100)
iproute2 is a direct depency from pve-qemu-kvm and should
be always available

use -statistics so we get the RX/TX traffic sum like ifconfig
use -details to get extra info like current vlan_protocol

PVE/Report.pm

index 901fcf851870344dd68372446cb522d39b556f1a..6717d28603a3d242193479fcccf9f5f6733fcf46 100644 (file)
@@ -27,7 +27,7 @@ if (system('command -v multipath > /dev/null 2>&1') == 0) {
 
 my @machines = ('qm list', sub { dir2text('/etc/pve/qemu-server/', '\d.*conf') });
 
-my @net = ('ifconfig', 'cat /etc/network/interfaces', sub { dir2text('/etc/pve/firewall/', '.*fw') },
+my @net = ('ip -details -statistics address', 'cat /etc/network/interfaces', sub { dir2text('/etc/pve/firewall/', '.*fw') },
   'iptables-save');
 
 my @cluster = ('pvecm nodes', 'pvecm status');