diff options
author | EUcancER <root@euer.krebsco.de> | 2011-09-01 11:00:15 +0200 |
---|---|---|
committer | EUcancER <root@euer.krebsco.de> | 2011-09-01 11:00:15 +0200 |
commit | 9a7a3afcb949ebe807965d154c00836c462177ff (patch) | |
tree | a39af009c646e6faf6e843745227fa15ef0b7a4c /retiolum/scripts/adv_graphgen/parse.py | |
parent | d88d17941f4b2f249747fd90ac5c40349d8f2392 (diff) |
adv_graphgen: fix sanitize and parse
sanitze.sh now creates dot file in temp directory
parse now correctly creates group attribute
Diffstat (limited to 'retiolum/scripts/adv_graphgen/parse.py')
-rwxr-xr-x | retiolum/scripts/adv_graphgen/parse.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/retiolum/scripts/adv_graphgen/parse.py b/retiolum/scripts/adv_graphgen/parse.py index 4b9314cc..0bcf42a0 100755 --- a/retiolum/scripts/adv_graphgen/parse.py +++ b/retiolum/scripts/adv_graphgen/parse.py @@ -47,6 +47,7 @@ def write_node(k,v): edges are weightet with the informations inside the nodes provided by tinc """ + node = " "+k+"[label=\"" node += k+"\\l" node += "external:"+v['external-ip']+":"+v['external-port']+"\\l" @@ -57,7 +58,7 @@ def write_node(k,v): node +="\"" if v['external-ip'] == "MYSELF": node += ",fillcolor=steelblue1" - node +=",group="+v['external-ip'].replace(".","")+"" + node +=",group=\""+v['external-ip'].replace(".","")+"\"" node += "]" print node |