#!/bin/sh
set -eu

BRIDGE_RAW="${1:-bridge0}"
BRIDGE_NAME="${2:-warden0}"
BRIDGE_ADDR="${3:-192.168.100.1/24}"

cat <<EOF
cloned_interfaces="${BRIDGE_RAW}"
ifconfig_${BRIDGE_RAW}_name="${BRIDGE_NAME}"
ifconfig_${BRIDGE_NAME}="inet ${BRIDGE_ADDR} up"
EOF

