5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-09 23:00:26 +00:00

Move mapping tools to mapper/

This commit is contained in:
Vanhala Antti 2014-03-30 14:34:08 +03:00
parent a53ce7a950
commit 81405faf3e
4 changed files with 4 additions and 5 deletions

2
.gitignore vendored
View File

@ -2,4 +2,4 @@
*.pyc *.pyc
graph.json graph.json
mapper-confs/* mapper-confs/*
mapperconf_sh.py conf_sh.py

View File

@ -2,9 +2,8 @@
# This file should be runnable by bash and python! # This file should be runnable by bash and python!
# #
cjdns_path="/home/user/cjdns" cjdns_path="/home/user/cjdns"
graph_output="../web/static/graph.json"
num_of_nodes=30 num_of_nodes=30
# Where mapper nodes connect to # Where mapper nodes connect to

View File

@ -198,6 +198,6 @@ for e in G.iteredges():
json_output = json.dumps(out_data) json_output = json.dumps(out_data)
f = open('web/static/graph.json', 'w') f = open(graph_output, 'w')
f.write(json_output) f.write(json_output)
f.close() f.close()

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
source mapperconf_sh.py source conf_sh.py
mkdir -p mapper-confs mkdir -p mapper-confs
for i in $(seq 1 $num_of_nodes) for i in $(seq 1 $num_of_nodes)