Re: [PATCH iproute2] routel: fix infinite loop in line parser

2017-04-28 Thread Michal Kubecek
On Thu, Apr 27, 2017 at 04:46:47PM -0700, Stephen Hemminger wrote: > > Appled, but this really needs to be done better. > Either as a simplified output of route command. See ip -br link > Or ip route should have a json output option and use python/perl/xss > to reformat. Agreed, parsing the outpu

Re: [PATCH iproute2] routel: fix infinite loop in line parser

2017-04-27 Thread Stephen Hemminger
On Thu, 27 Apr 2017 11:43:47 +0200 (CEST) Michal Kubecek wrote: > As noticed by one of the few users of routel script, it ends up in an > infinite loop when they pull out the cable from the NIC used for some > route. This is caused by its parser expecting the line of "ip route show" > output cons

[PATCH iproute2] routel: fix infinite loop in line parser

2017-04-27 Thread Michal Kubecek
As noticed by one of the few users of routel script, it ends up in an infinite loop when they pull out the cable from the NIC used for some route. This is caused by its parser expecting the line of "ip route show" output consists of "key value" pairs (except for the initial target range), together