fcoe-utils/fcoe-utils-1.0.18-fcoe-utils-Use-iproute2-instead-of-deprecated-vconfi.patch
Petr Sabata 9a79b1c7b8 1.0.18+ bump
BuildRoot and ExcludeArch cleanup
2011-04-20 11:03:37 +02:00

34 lines
1.1 KiB
Diff

From 5300772f83c8f3eeb1dbb972d36b4112ec01a51f Mon Sep 17 00:00:00 2001
From: Petr Sabata <psabata@redhat.com>
Date: Fri, 1 Apr 2011 00:00:28 +0000
Subject: [PATCH 12/16] fcoe-utils: Use iproute2 instead of deprecated vconfig
vconfig has been considered generally deprecated in favor of iproute2 for
some time now. This patch utilizes `ip link' and removes vconfig dependency.
Signed-off-by: Petr Sabata <psabata@redhat.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
---
contrib/fcoe-setup.sh | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/contrib/fcoe-setup.sh b/contrib/fcoe-setup.sh
index ab23400..2142c42 100755
--- a/contrib/fcoe-setup.sh
+++ b/contrib/fcoe-setup.sh
@@ -24,9 +24,8 @@ create_vlan () {
vif=$(scan_vlan $ifname $vlan)
if [ -z "$vif" ] ; then
- vconfig set_name_type DEV_PLUS_VID_NO_PAD
- vconfig add $ifname $vlan > /dev/null
- vif="$ifname.$vlan"
+ vif="$ifname.$vlan"
+ ip link add dev $vif link $ifname type vlan id $vlan
fi
ip link set $vif up
echo "$vif"
--
1.7.4.4