mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-12-28 11:45:40 +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
|
||||
graph.json
|
||||
mapper-confs/*
|
||||
mapperconf_sh.py
|
||||
conf_sh.py
|
||||
|
@ -2,9 +2,8 @@
|
||||
# This file should be runnable by bash and python!
|
||||
#
|
||||
|
||||
|
||||
cjdns_path="/home/user/cjdns"
|
||||
|
||||
graph_output="../web/static/graph.json"
|
||||
num_of_nodes=30
|
||||
|
||||
# Where mapper nodes connect to
|
@ -198,6 +198,6 @@ for e in G.iteredges():
|
||||
|
||||
json_output = json.dumps(out_data)
|
||||
|
||||
f = open('web/static/graph.json', 'w')
|
||||
f = open(graph_output, 'w')
|
||||
f.write(json_output)
|
||||
f.close()
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source mapperconf_sh.py
|
||||
source conf_sh.py
|
||||
mkdir -p mapper-confs
|
||||
|
||||
for i in $(seq 1 $num_of_nodes)
|
Loading…
Reference in New Issue
Block a user