#!/usr/bin/env bash
set -eu
# Run on the disposable Linux test host before the scenario.
sudo -n ip link add fhciowner type bridge
sudo -n ip addr add 10.221.0.1/24 dev fhciowner
sudo -n ip link add fhciveth type veth peer name fhcipeer
sudo -n ip link set fhciveth master fhciowner
sudo -n ip link set fhciowner up
sudo -n ip link set fhciveth up
sudo -n ip link set fhcipeer up
ls /sys/class/net/fhciowner/brif
test ! -e /sys/class/net/fhciveth/device
# After the proof:
# sudo -n ip link delete fhciveth
# sudo -n ip link delete fhciowner
