From: Ian Campbell Subject: Re: [PATCH] hotplug/Linux: update to new ip command syntax. Date: Mon, 19 Aug 2013 18:01:12 +0100 Message-ID: <1376931672.9708.91.camel@dagon.hellion.org.uk> References: <1376663503-24736-1-git-send-email-ijc@hellion.org.uk> <21010.19305.453261.252793@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21010.19305.453261.252793@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Mike , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2013-08-19 at 17:44 +0100, Ian Jackson wrote: > Ian Campbell writes ("[PATCH] hotplug/Linux: update to new ip command syntax."): > > From: Mike > > > > This is Debian bug #705659. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705659 > > > > Mike provided the initial patch to tools/hotplug/Linux/xen-network-common.sh > > and I extended it to catch some cases in vif-* too. > > > > Signed-off-by: Ian Campbell > > Cc: Mike > > Do we know whether this new syntax is backwards-compatible ? Good question. Squeeze's ip(8) doesn't mention dev for "ip link show" in the synopsis by virtue of not defining DEVICE anywhere but it does show the use of dev later on and the tool accepts it. Likewise for "ip link set". Given this, as Mike says, makes it impossible to name a device "dev" it seems likely to be a documentation bug. "ip addr flush" is correctly documented as needing the dev (by saying "dev STRING" and not "DEVICE" , I didn't try without but I assume it works since our scripts do that right now. I wasn't easily able to come up with an older machine. Ian.