Andrew: BGP->Route object translator
Selina Priestley
Wed May 3 16:10:46 CEST 1995
Curtis pointed out that they'd want to do some checking so that only routes with aspaths they should register for were registered and that diffing daily pulls would be fairly simple and save you folks a lot of work. Route 10 could get registered? What do we have now that checks registrations? Could it be altered to also look for Martians? Selina > All FYI: > > Andrew has come up with a clever way around the IRR intent: simply > machine-generate his route objects from the live BGP tables and submit > them daily. > > Advantages: everything is registered, just like we want it. > > Disadvantages: even things we'd have hoped a human would filter out > (net 10) get registered. (Also, a certain amount of thrash in the DB). > > Comments? > > --Dale > > > ============ From: Andrew Partan > > > From asp at uunet.uu.net Tue May 2 15:16:11 1995 > > Subject: Re: Something to make you vomit... > > To: smd at sprint.net > > Date: Tue, 2 May 1995 14:46:30 -0400 (EDT) > > Cc: heimlich at ans.net, dsj at merit.edu > > > > Here is something that I hacked together. Generates route objects from > > "show ip bgp" output. [I'm not quite sure that I have everything that I > > want in the route object yet.] > > > > I'm thinking of running it once/day out of cron and sending the output > > to the RADB. > > --asp > > > > #!/bin/sh > > # > > # Generate RADB route objects from a "show ip bgp reg ^$" dump. > > # The dump is in $1 > > > > # Who is running this. > > who=`whoami` > > > > # Current date, YYMMDD > > yymmdd=`date +%y%m%d` > > > > # The route object > > cat << EOF > /tmp/ro.$$ > > { > > print "route:", \$1 > > print "descr: AlterNet route - AS 701" > > print "origin: AS701" > > print "advisory: AS690 1:701" > > print "mnt-by: MAINT-AS701" > > print "changed: $who at uunet.uu.net $yymmdd" > > print "source: RADB" > > print "" > > } > > EOF > > > > # Get the routes (if there is one). > > gawk 'substr($0,4,2) ~ /[0-9][0-9.]/ {print substr($0,4,17)}' $1 \ > > | gawk -f /tmp/ro.$$ > > > > # Clean up > > rm -f /tmp/ro.$$ -------- Logged at Wed May 3 16:23:27 MET DST 1995 ---------
[ rr-impl Archive ]