summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2010-06-11 11:40:32 +0000
committerNick <nick@somerandomnick.ano>2010-06-11 11:40:32 +0000
commitf8938c5c6f8ad6fff2c4b1771a7d53b290667343 (patch)
treefc9c5023575713bf0d62ba32d7f274da996ca0ce /doc
parent3c3c14021ebf96db815678ce9cca2aef5021df16 (diff)
downloadresdb-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-xdoc/ucis.ano/bgp_graph/bgp_path_list_bird.php2
-rwxr-xr-xdoc/ucis.ano/bgp_graph/bgp_path_list_quagga.sh2
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";