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:24:29 +08:00
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -o generated/roa46_bird2.conf
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -4 -o generated/roa4_bird2.conf
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -6 -o generated/roa6_bird2.conf
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -j -o generated/roa46.json
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -e -o generated/neonetwork.json
|
|
|
|
.scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -r -o generated/rfc8416.json
|
|
|
|
.scripts/roa.py --summary --output generated/README.txt
|