cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [26/50] [abbrv] git commit: updated refs/heads/saml2 to ba68616
Date Sun, 24 Aug 2014 14:04:46 GMT
replace vconfig with ip link


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b37ee253
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b37ee253
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b37ee253

Branch: refs/heads/saml2
Commit: b37ee25359b724613e9ce5f93423d99f76c2fe5e
Parents: 3e0c55c
Author: Kishan Kavala <kishan.kavala@citrix.com>
Authored: Mon Aug 11 22:28:39 2014 +0530
Committer: root <root@kk-dev47.lab.citrite.net>
Committed: Fri Aug 22 15:39:04 2014 +0530

----------------------------------------------------------------------
 scripts/vm/network/vnet/modifyvlan.sh | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b37ee253/scripts/vm/network/vnet/modifyvlan.sh
----------------------------------------------------------------------
diff --git a/scripts/vm/network/vnet/modifyvlan.sh b/scripts/vm/network/vnet/modifyvlan.sh
index 8ed3905..490fe9c 100755
--- a/scripts/vm/network/vnet/modifyvlan.sh
+++ b/scripts/vm/network/vnet/modifyvlan.sh
@@ -30,12 +30,10 @@ addVlan() {
 	local pif=$2
 	local vlanDev=$pif.$vlanId
 	local vlanBr=$3
-    
-    vconfig set_name_type DEV_PLUS_VID_NO_PAD	
 
 	if [ ! -d /sys/class/net/$vlanDev ]
 	then
-		vconfig add $pif $vlanId > /dev/null
+		ip link add link $pif name $vlanDev type vlan id $vlanId > /dev/null
 		
 		if [ $? -gt 0 ]
 		then
@@ -102,7 +100,7 @@ deleteVlan() {
 	local vlanDev=$pif.$vlanId
         local vlanBr=$3
 
-	vconfig rem $vlanDev > /dev/null
+	ip link delete $vlanDev type vlan > /dev/null
 	
 	if [ $? -gt 0 ]
 	then


Mime
View raw message