From: Wolfgang Bumiller Date: Wed, 29 Jul 2015 08:17:20 +0000 (+0200) Subject: replace /sbin/vconfig with /sbin/ip call X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=6fc54cb2408d45852ff231867dbd954e4879b413 replace /sbin/vconfig with /sbin/ip call --- diff --git a/src/PVE/Network.pm b/src/PVE/Network.pm index 387f192..9c05e78 100644 --- a/src/PVE/Network.pm +++ b/src/PVE/Network.pm @@ -375,7 +375,7 @@ sub activate_bridge_vlan_slave { # create vlan on $iface is not already exist if (! -d "/sys/class/net/$ifacevlan") { - system("/sbin/vconfig add $iface $tag") == 0 || + system("/sbin/ip link add link $iface name ${iface}.${tag} type vlan id $tag") == 0 || die "can't add vlan tag $tag to interface $iface\n"; }