From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Dichtel Subject: Re: [PATCH iproute2] ip: Simplify executing ip cmd within namespace Date: Thu, 11 Dec 2014 13:50:17 +0100 Message-ID: <54899309.7050109@6wind.com> References: <1418252195-2612-1-git-send-email-vadim4j@gmail.com> <548978CD.80404@6wind.com> <20141211105733.GA17601@angus-think.wlc.globallogic.com> Reply-To: nicolas.dichtel@6wind.com Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: netdev@vger.kernel.org To: vadim4j@gmail.com Return-path: Received: from mail-wg0-f53.google.com ([74.125.82.53]:42226 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753153AbaLKMuU (ORCPT ); Thu, 11 Dec 2014 07:50:20 -0500 Received: by mail-wg0-f53.google.com with SMTP id l18so6285132wgh.40 for ; Thu, 11 Dec 2014 04:50:19 -0800 (PST) In-Reply-To: <20141211105733.GA17601@angus-think.wlc.globallogic.com> Sender: netdev-owner@vger.kernel.org List-ID: Le 11/12/2014 11:57, vadim4j@gmail.com a =E9crit : > On Thu, Dec 11, 2014 at 11:58:21AM +0100, Nicolas Dichtel wrote: >> Le 10/12/2014 23:56, Vadim Kochan a =E9crit : >>> From: Vadim Kochan >>> >>> Added new '-ns' option to simplify executing following cmd: >>> >>> ip netns exec NETNS ip OPTIONS COMMAND OBJECT >>> >>> to >>> >>> ip -ns NETNS OPTIONS COMMAND OBJECT >>> >>> e.g.: >>> >>> ip -ns vnet0 link add br0 type bridge >>> >>> Signed-off-by: Vadim Kochan >>> --- >>> May be new option should have better name than '-ns' ? >> What about 'ip -netns' to be explicit like other options? >> user may still use 'ip -n' at the end. >> >> >> Regards, >> Nicolas > > May be left '-n' for some other future option, but use the following Options parsing in iproute2 will match -netns when typing -n because th= ere is no other options that begin with a 'n' (I've done a quick look, mayb= e I've missed one). Like -d which matches -details, etc. > options: -net[ns] and -ns ? What do you think ? One option is enough. '-netns' is an explicit reference to 'ip netns'. Regards, Nicolas