diff options
author | makefu <github@syntax-fehler.de> | 2011-08-08 23:36:42 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-08-08 23:39:50 +0200 |
commit | 02824eed4f957e25bf9bfda6bf09e093447abb68 (patch) | |
tree | 23c035ccade485dd8f6b7f36fddd726a71c7081c /retiolum | |
parent | 116083fb44afdee12f59a80be7d7a2d6c9416831 (diff) |
retiolum/scripts/adv_graphgen: verb krebs output
retiolum/scripts/adv_graphgen/parse.py:
add the group info to the krebs parser
retiolum/scripts/adv_graphgen/sanitize.sh:
fixed bug which prevents generation of 4 graph
new graph setter at retiolum_4.png
Diffstat (limited to 'retiolum')
-rwxr-xr-x | retiolum/scripts/adv_graphgen/parse.py | 1 | ||||
-rwxr-xr-x | retiolum/scripts/adv_graphgen/sanitize.sh | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/retiolum/scripts/adv_graphgen/parse.py b/retiolum/scripts/adv_graphgen/parse.py index 9c2dd051..0744b262 100755 --- a/retiolum/scripts/adv_graphgen/parse.py +++ b/retiolum/scripts/adv_graphgen/parse.py @@ -57,6 +57,7 @@ def write_node(k,v): node +="\"" if v['external-ip'] == "MYSELF": node += ",fillcolor=steelblue1" + node +=",group="+v['external-ip'].replace(".","")+"" node += "]" print node diff --git a/retiolum/scripts/adv_graphgen/sanitize.sh b/retiolum/scripts/adv_graphgen/sanitize.sh index 2febc54c..c0d4e52e 100755 --- a/retiolum/scripts/adv_graphgen/sanitize.sh +++ b/retiolum/scripts/adv_graphgen/sanitize.sh @@ -1,7 +1,7 @@ GRAPH_SETTER1=dot GRAPH_SETTER2=circo -GRAPH_SETTER3=neato -GRAPH_SETTER3=sfdp +GRAPH_SETTER3='neato -Goverlap=prism ' +GRAPH_SETTER4=sfdp LOG_FILE=/var/log/everything.log OPENER=/bin/true @@ -13,5 +13,6 @@ $GRAPH_SETTER1 -Tpng -o $1retiolum_1.png retiolum.dot $GRAPH_SETTER2 -Tpng -o $1retiolum_2.png retiolum.dot $GRAPH_SETTER3 -Tpng -o $1retiolum_3.png retiolum.dot $GRAPH_SETTER4 -Tpng -o $1retiolum_4.png retiolum.dot +sfdp -Goverlap=prism retiolum.dot | gvmap -e retiolum.dot | neato -n2 -Tpng -o $!retiolum_6.png $OPENER retiolum_1.png &>/dev/null #rm retiolum.dot |