diff options
author | Nick <nick@somerandomnick.ano> | 2010-06-11 11:40:32 +0000 |
---|---|---|
committer | Nick <nick@somerandomnick.ano> | 2010-06-11 11:40:32 +0000 |
commit | f8938c5c6f8ad6fff2c4b1771a7d53b290667343 (patch) | |
tree | fc9c5023575713bf0d62ba32d7f274da996ca0ce /doc | |
parent | 3c3c14021ebf96db815678ce9cca2aef5021df16 (diff) | |
download | resdb-f8938c5c6f8ad6fff2c4b1771a7d53b290667343.tar.gz resdb-f8938c5c6f8ad6fff2c4b1771a7d53b290667343.zip |
fixed last two of UFO's scripts to take local ASN from env
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/ucis.ano/bgp_graph/bgp_path_list_bird.php | 2 | ||||
-rwxr-xr-x | doc/ucis.ano/bgp_graph/bgp_path_list_quagga.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/ucis.ano/bgp_graph/bgp_path_list_bird.php b/doc/ucis.ano/bgp_graph/bgp_path_list_bird.php index 6ef71c7..cec2692 100755 --- a/doc/ucis.ano/bgp_graph/bgp_path_list_bird.php +++ b/doc/ucis.ano/bgp_graph/bgp_path_list_bird.php @@ -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); diff --git a/doc/ucis.ano/bgp_graph/bgp_path_list_quagga.sh b/doc/ucis.ano/bgp_graph/bgp_path_list_quagga.sh index 97d750f..6f19cb6 100755 --- a/doc/ucis.ano/bgp_graph/bgp_path_list_quagga.sh +++ b/doc/ucis.ano/bgp_graph/bgp_path_list_quagga.sh @@ -1,6 +1,6 @@ #!/bin/sh -LOCALNODE=64520 +LOCALNODE=${LOCALNODE:-0} (sleep 0.2; echo "insecure"; |