summaryrefslogtreecommitdiff
path: root/doc/ucis.ano
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2010-06-11 09:05:23 +0000
committerNick <nick@somerandomnick.ano>2010-06-11 09:05:23 +0000
commit7b158680dac708fc8d9aa74a87d5b6aa4644cd84 (patch)
tree76b33b045206d771f5d0486b3af852f049826eae /doc/ucis.ano
parent4467e5a8e4849f6a5903b9cc1a63f794635b4668 (diff)
downloadresdb-7b158680dac708fc8d9aa74a87d5b6aa4644cd84.tar.gz
resdb-7b158680dac708fc8d9aa74a87d5b6aa4644cd84.zip
added the AnoNet1 domains, and UFO's graphing scripts now use env for local ASN
Diffstat (limited to 'doc/ucis.ano')
-rwxr-xr-xdoc/ucis.ano/bgp_graph/bgp_path_list_bird.sh2
-rwxr-xr-xdoc/ucis.ano/bgp_graph/bgp_path_list_xml.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/ucis.ano/bgp_graph/bgp_path_list_bird.sh b/doc/ucis.ano/bgp_graph/bgp_path_list_bird.sh
index 747f017..882699d 100755
--- a/doc/ucis.ano/bgp_graph/bgp_path_list_bird.sh
+++ b/doc/ucis.ano/bgp_graph/bgp_path_list_bird.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-LOCALNODE=0
+LOCALNODE=${LOCALNODE:-0}
echo "show route all" | birdc | grep -F "BGP.as_path:" | sed "s/^\tBGP.as_path: \([0-9 ]*\)$/$LOCALNODE \1/" | sort -u
diff --git a/doc/ucis.ano/bgp_graph/bgp_path_list_xml.php b/doc/ucis.ano/bgp_graph/bgp_path_list_xml.php
index 96e2ab6..c6212f6 100755
--- a/doc/ucis.ano/bgp_graph/bgp_path_list_xml.php
+++ b/doc/ucis.ano/bgp_graph/bgp_path_list_xml.php
@@ -1,6 +1,6 @@
#!/usr/bin/php
<?php
-$mynode = 0;
+$mynode = array_key_exists('LOCALNODE',$ENV)?$ENV['LOCALNODE']:0;
$file = STDIN;
$paths = array();