wakurtosis/gennet-module
Alberto Soutullo 5addeb00a8 Quick change to gennet so it takes arguments and file, prioritizing cli 2023-01-19 19:23:40 +01:00
..
config Refactoring 2023-01-16 14:01:43 +00:00
Dockerfile Moved topology generation to a step before calling Kurtosis 2023-01-17 18:21:58 +01:00
Readme.md Gennet accepts single command line parameter and reads config from global json file 2023-01-13 11:25:26 +00:00
batch_gen.sh Gennet accepts single command line parameter and reads config from global json file 2023-01-13 11:25:26 +00:00
gennet.py Quick change to gennet so it takes arguments and file, prioritizing cli 2023-01-19 19:23:40 +01:00
requirements.txt Gennet accepts single command line parameter and reads config from global json file 2023-01-13 11:25:26 +00:00

Readme.md

This repo contains scripts to generate network models (in JSON) and waku configuration files (in TOMLs) for wakukurtosis runs.

generate_network.py

generate_network.py generates one network and per-node configuration files. The tool is configurable with specified number of nodes, topics, network types, node types and number of subnets. Use with Python3. Comment out the #draw(fname, H) line to visualise the generated graph.

usage: $./generate_network --help

batch_gen.sh

batch_gen.sh can generate given number of Waku networks and outputs them to a directory. Please make sure that the output directory does NOT exist; both relative and absolute paths work. The Wakunode parameters are generated at random; edit the MIN and MAX for finer control. The script requires bc & /dev/urandom.

usage: $./batch_gen.sh <#number of networks needed>