[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150324150021.1cf3a756@urahara>
Date: Tue, 24 Mar 2015 15:00:21 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: roopa@...ulusnetworks.com
Cc: netdev@...r.kernel.org, haegar@...net.de
Subject: Re: [PATCH iproute2] fix ip -force -batch to continue on errors
On Tue, 17 Mar 2015 19:26:32 -0700
roopa@...ulusnetworks.com wrote:
> From: Roopa Prabhu <roopa@...ulusnetworks.com>
>
> This patch replaces exits with returns in several
> iproute2 commands. This fixes `ip -batch -force`
> to not exit but continue on errors.
>
> $cat c.txt
> route del 1.2.3.0/24 dev eth0
> route del 1.2.4.0/24 dev eth0
> route del 1.2.5.0/24 dev eth0
> route add 1.2.3.0/24 dev eth0
>
> $ip -force -batch c.txt
> RTNETLINK answers: No such process
> Command failed c.txt:2
> RTNETLINK answers: No such process
> Command failed c.txt:3
>
> Reported-by: Sven-Haegar Koch <haegar@...net.de>
> Signed-off-by: Roopa Prabhu <roopa@...ulusnetworks.com>
Applied thanks
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists