summaryrefslogtreecommitdiff
path: root/doc/ucis.ano
diff options
context:
space:
mode:
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();