diff doc/ucis.ano/bgp_graph/bgp_path_list_bird.php @ 32:d44b9afb4a25 draft

fixed last two of UFO's scripts to take local ASN from env
author Nick <nick@somerandomnick.ano>
date Fri, 11 Jun 2010 11:40:32 +0000
parents 4dbe5bf653bb
children
line wrap: on
line diff
--- a/doc/ucis.ano/bgp_graph/bgp_path_list_bird.php	Fri Jun 11 09:22:45 2010 +0000
+++ b/doc/ucis.ano/bgp_graph/bgp_path_list_bird.php	Fri Jun 11 11:40:32 2010 +0000
@@ -1,6 +1,6 @@
 #!/usr/bin/php
 <?php
-$mynode = 64766;
+$mynode = array_key_exists('LOCALNODE',$_SERVER)?$_SERVER['LOCALNODE']:0;
 
 $fds = NULL;
 $proc = proc_open('birdc', array(0 => array('pipe','r'), 1 => array('pipe','w'), 2 => STDERR), $fds);