annotate doc/ucis.ano/bgp_graph/bgp_path_list_bird.sh @ 29:159a026a8bb1 draft

Added bgp graph readme
author ivo <ivo@UFO-Net.nl>
date Thu, 10 Jun 2010 00:34:05 +0200
parents 4dbe5bf653bb
children 77b07c336f91
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
4dbe5bf653bb Added bgp graph scripts
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
1 #!/bin/sh
4dbe5bf653bb Added bgp graph scripts
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
2 LOCALNODE=0
4dbe5bf653bb Added bgp graph scripts
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
3 echo "show route all" | birdc | grep -F "BGP.as_path:" | sed "s/^\tBGP.as_path: \([0-9 ]*\)$/$LOCALNODE \1/" | sort -u