summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdoc/ucis.ano/bgp_graph/graph.sh3
-rwxr-xr-xdoc/ucis.ano/bgp_graph/path_list_to_dot.php7
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/ucis.ano/bgp_graph/graph.sh b/doc/ucis.ano/bgp_graph/graph.sh
new file mode 100755
index 0000000..2e7fbec
--- /dev/null
+++ b/doc/ucis.ano/bgp_graph/graph.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+./path_list_to_dot.php < /home/vpn/public_html/.stats/bgp_paths.txt | \
+twopi -T svg -o /home/vpn/public_html/.stats/anonet.svg
diff --git a/doc/ucis.ano/bgp_graph/path_list_to_dot.php b/doc/ucis.ano/bgp_graph/path_list_to_dot.php
index 1aa487c..03c9b04 100755
--- a/doc/ucis.ano/bgp_graph/path_list_to_dot.php
+++ b/doc/ucis.ano/bgp_graph/path_list_to_dot.php
@@ -30,10 +30,7 @@ function static_nodename ($node) { switch ($node) {
function nodenickname ($node) { switch ($node) {
case '64731': return 'SRN';
case '64766': return 'UFO';
- case '64768': return 'yang';
- case '64738': return 'welterde';
- case '64827': return 'deelkar';
- case '64680': case '64692': return rtrim(`echo $node | ./asn2descr`);
+ case '3090': return 'lex';
}; return NULL; };
function nodename ($node) {
@@ -41,7 +38,7 @@ function nodename ($node) {
if (($name=static_nodename($node))!==NULL) return $name;
$nameparts=array();
if (($nick=nodenickname($node))!==NULL) $nameparts[]=$nick;
- $name=rtrim(`echo $node | ./asn2adminc | ./hdl2person`);
+ $name=""; // rtrim(`echo $node | ./asn2adminc | ./hdl2person`);
if (empty($name)) $name='AS'.$node; else $name="AS$node ($name)";
$nameparts[]=$name;
return join(' - ',$nameparts); };