#!/bin/sh # 2022-03-18, ungleich (foss at ungleich.ch) # Copying: GPL3+ if [ $# -lt 2 ] ; then echo "$0 network asn [nodryrun]" exit 1 fi set -x network=$1; shift asn=$1; shift if [ $# -ge 1 ]; then dryrun="" else dryrun="&dry-run" fi form=$(mktemp) case ${network} in *:*) obj_type=route6 ;; *.*) obj_type=route ;; *) echo "No idea what to do with $network" exit 1 ;; esac cat > $form <