#!/bin/bash # SPDX-License-Identifier: Apache-2.0 # Client container entrypoint for the ASan test suite. Identical in # spirit to tests/01-module/lab/client/start.sh — kept as a separate # file so this suite's lab can be torn down and redeployed without # affecting 01-module state. set -e apt-get update -qq apt-get install -y -qq curl iproute2 > /dev/null 2>&1 echo "Waiting for eth1 ..." while ! ip link show eth1 > /dev/null 2>&1; do sleep 0.2 done ip link set eth1 up ip addr add ${MY_IP} dev eth1 # Drop the mgmt default route so data-plane traffic goes out eth1. ip route del default 2>/dev/null || true exec sleep infinity