]> git.proxmox.com Git - mirror_iproute2.git/commit - bridge/link.c
fix ip -force -batch to continue on errors
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 18 Mar 2015 02:26:32 +0000 (19:26 -0700)
committerStephen Hemminger <shemming@brocade.com>
Tue, 24 Mar 2015 21:59:40 +0000 (14:59 -0700)
commit42ecedd4bae534fc688194a795eb4548c6530cda
tree61a03452fe32b659b405bfbc0f03f54f9c1aad05
parent822e9609e7ae8e7dee27355d89d778f14cc27a2d
fix ip -force -batch to continue on errors

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@sdinet.de>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
bridge/fdb.c
bridge/link.c
bridge/mdb.c
bridge/vlan.c
ip/iproute.c