]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: rewrite routel in python
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 1 Sep 2021 20:47:01 +0000 (13:47 -0700)
committerDavid Ahern <dsahern@kernel.org>
Mon, 6 Sep 2021 22:31:24 +0000 (16:31 -0600)
commit6d676ad93408800b199fed69f9ee0e4f923a736f
tree81a3799c50f40beb6a2906e8285b9bf8db958d41
parent1eaebad2c536b9ef9bd047a45438ae7ed273ee91
ip: rewrite routel in python

Not sure if anyone uses the routel script. The script was
a combination of ip route, shell and awk doing command scraping.
It is now possible to do this much better using the JSON
output formats and python.

Rewriting also fixes the bug where the old script could not parse
the current output format.  At the end was getting:
/usr/bin/routel: 48: shift: can't shift that many

The new script also has IPv6 as option.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/routel
man/man8/routel.8