Route summarisation with python
There used to be a great little website for route summarisation and it did it far more intelligently than Cisco kit does it. It looks like the site has dropped off the internet which is a shame but there is a handy python library called netaddr with has the same capabilities.
I have written a little wrapper for it which will regex the prefixes out of a ‘show ip bgp’ and then list the summary routes. You pass the output of ‘show ip bgp’ as a text file, it’s the only argument the script expects.
https://gist.github.com/simonpainter/4c1771f6c6580164c0f46f0fb5368617
You’ll need to install netaddr – the easiest way is probably ‘pip install netaddr’