2020-07-21 00:19:10 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -xeuo pipefail
|
|
|
|
IFS=$'\n\t'
|
|
|
|
|
|
|
|
export MAX_LEN_4=29
|
|
|
|
export MAX_LEN_6=64
|
|
|
|
|
|
|
|
if [ ! -d .venv ]; then
|
|
|
|
python3 -m venv .venv
|
|
|
|
fi
|
|
|
|
|
|
|
|
source .venv/bin/activate
|
|
|
|
|
|
|
|
mkdir -p "generated"
|
2020-07-21 00:22:03 +08:00
|
|
|
pushd generated
|
2020-07-21 00:19:10 +08:00
|
|
|
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -o roa46_bird2.conf
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -4 -o roa4_bird2.conf
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -6 -o roa6_bird2.conf
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -j -o roa46.json
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -e -o neonetwork.json
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -r -o rfc8416.json
|
|
|
|
.scripts/roa.py --summary --output README.txt
|