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 <[email protected]> --- 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 _______________________________________________ devel mailing list [email protected] https://lists.open-fcoe.org/mailman/listinfo/devel
