# HG changeset patch # User Nick # Date 1276481064 0 # Node ID 0e7ba1239f5a222c500033396010b89b61aba309 # Parent c2a5a961039b8fb34564ae9698165710dc0649de now pulls AS info from dn42 registry diff -r c2a5a961039b -r 0e7ba1239f5a doc/ucis.ano/bgp_graph/path_list_to_dot.php --- a/doc/ucis.ano/bgp_graph/path_list_to_dot.php Sun Jun 13 21:49:59 2010 +0200 +++ b/doc/ucis.ano/bgp_graph/path_list_to_dot.php Mon Jun 14 02:04:24 2010 +0000 @@ -22,9 +22,17 @@ } } -function nodename ($node) { switch ($node) { +function static_nodename ($node) { switch ($node) { case '64731': return 'SRN (AS64731)'; -}; return 'AS'.$node; }; + case '64766': return 'UFO (AS64766)'; +}; return NULL; }; + +function nodename ($node) { + $node=preg_replace('/[^0-9]+/','',$node); + if (($name=static_nodename($node))!==NULL) return $name; + $name=rtrim(`echo $node | ./asn2adminc | ./hdl2person`); + if (empty($name)) return 'AS'.$node; +return 'AS'.$node.' ('.$name.')'; }; $nodelist=array(); foreach ($nodes as $node => $links) {