5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-25 18:03:33 +03:00

replace /sbin/vconfig with /sbin/ip call

This commit is contained in:
Wolfgang Bumiller 2015-07-29 10:17:20 +02:00 committed by Dietmar Maurer
parent 4d25f4aafe
commit 6fc54cb240

View File

@ -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";
}