[pve-devel] [PATCH] replace /sbin/vconfig with /sbin/ip call

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Jul 29 10:17:20 CEST 2015


---
 src/PVE/Network.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/Network.pm b/src/PVE/Network.pm
index e51099e..c6583d8 100644
--- a/src/PVE/Network.pm
+++ b/src/PVE/Network.pm
@@ -355,7 +355,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";
     }
 
-- 
2.1.4





More information about the pve-devel mailing list