From patchwork Tue Oct 7 12:20:56 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Fedoryshchenko X-Patchwork-Id: 3173 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 9AF78DDE26 for ; Tue, 7 Oct 2008 23:23:11 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753275AbYJGMXG (ORCPT ); Tue, 7 Oct 2008 08:23:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753252AbYJGMXF (ORCPT ); Tue, 7 Oct 2008 08:23:05 -0400 Received: from relay2.globalproof.net ([194.146.153.25]:39856 "EHLO relay2.globalproof.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753231AbYJGMXE (ORCPT ); Tue, 7 Oct 2008 08:23:04 -0400 Received: from [195.69.208.252] (unknown [195.69.208.252]) by relay2.globalproof.net (Postfix) with ESMTP id 84C1E13104E; Tue, 7 Oct 2008 15:23:00 +0300 (EEST) From: Denys Fedoryshchenko Organization: Virtual ISP To: Patrick McHardy Subject: Re: Could you make vconfig less stupid? Date: Tue, 7 Oct 2008 15:20:56 +0300 User-Agent: KMail/1.9.9 Cc: Ben Greear , Stephen Hemminger , netdev@vger.kernel.org References: <20081006202401.14f03be2@speedy> <48EACA2A.1030005@candelatech.com> <48EB488A.40409@trash.net> In-Reply-To: <48EB488A.40409@trash.net> MIME-Version: 1.0 Message-Id: <200810071520.56610.denys@visp.net.lb> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Probably to make people use iproute2, it is good to inform them, that iproute2 can do that job. For example i didn't knew that ip can make vlan's and etc. And even embedded help doesn't help almost. Something like attached trivial patch, at least will give idea, what to do. man page i can edit too, but i guess it is better someone with good english will do that. On Tuesday 07 October 2008, Patrick McHardy wrote: > Ben Greear wrote: > > Patrick McHardy wrote: > >> Actually I don't maintain vconfig and I don't think Ben does either. > >> Its deprecated and iproute is what people should use, all the new > >> features are not supported by vconfig. > > > > I can fix these things if anyone cares, but leaving it crufty might be a > > better way to encourage folks to use 'ip'. > > I think it would make sense to add a note to the manpage > or something like that. Maybe also a runtime warning in > case its really (going to be) unmaintained. > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html diff -Naur iproute2.backup/ip/iplink.c iproute2/ip/iplink.c --- iproute2.backup/ip/iplink.c 2008-10-05 15:41:59.000000000 +0000 +++ iproute2/ip/iplink.c 2008-10-07 12:14:28.000000000 +0000 @@ -54,6 +54,10 @@ fprintf(stderr, " mtu MTU }\n"); fprintf(stderr, " netns PID }\n"); fprintf(stderr, " ip link show [ DEVICE ]\n"); + fprintf(stderr, " ip link add link PARENTDEV type { vlan | veth } { ... | help }\n"); + fprintf(stderr, " ip link add link PARENTDEV NEWDEVICE type macvlan { ... | help }\n"); + fprintf(stderr, " ip link change link PARENTDEV type { vlan | veth } { ... | help}\n"); + fprintf(stderr, " ip link del dev DEVICE\n"); exit(-1); }