Mercurial > hg > anonet-resdb
changeset 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 | 15b952d82e4c |
children | 6e8078af6baf |
files | doc/ucis.ano/bgp_graph/bgp_path_list_bird.php doc/ucis.ano/bgp_graph/bgp_path_list_quagga.sh |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
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);