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:
parent
a53ce7a950
commit
81405faf3e
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,4 +2,4 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
graph.json
|
graph.json
|
||||||
mapper-confs/*
|
mapper-confs/*
|
||||||
mapperconf_sh.py
|
conf_sh.py
|
||||||
|
@ -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
|
@ -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()
|
@ -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)
|
Loading…
Reference in New Issue
Block a user