mirror of
git://git.proxmox.com/git/pve-common.git
synced 2025-01-26 22:03:33 +03:00
replace /sbin/vconfig with /sbin/ip call
This commit is contained in:
parent
4d25f4aafe
commit
6fc54cb240
@ -375,7 +375,7 @@ sub activate_bridge_vlan_slave {
|
|||||||
|
|
||||||
# create vlan on $iface is not already exist
|
# create vlan on $iface is not already exist
|
||||||
if (! -d "/sys/class/net/$ifacevlan") {
|
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";
|
die "can't add vlan tag $tag to interface $iface\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user