pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/upf-benchmark/+/39887?usp=email )
Change subject: testsuites: tunmap,tunend: cpf: Set IP address explicitly ......................................................................
testsuites: tunmap,tunend: cpf: Set IP address explicitly
Don't require the IP address to be set by external means.
Change-Id: Ib13f1065151b0e539d40b7849c1d884bd965080f --- M testsuites/gtplab-sysmo2025/tunend/cpf/configure.sh M testsuites/gtplab-sysmo2025/tunmap/cpf/configure.sh 2 files changed, 32 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/upf-benchmark refs/changes/87/39887/1
diff --git a/testsuites/gtplab-sysmo2025/tunend/cpf/configure.sh b/testsuites/gtplab-sysmo2025/tunend/cpf/configure.sh index 2b24a65..5270225 100755 --- a/testsuites/gtplab-sysmo2025/tunend/cpf/configure.sh +++ b/testsuites/gtplab-sysmo2025/tunend/cpf/configure.sh @@ -1 +1,17 @@ #!/bin/bash -xe + +case $(hostname) in +gtplab0) + IFACE_UPF="enp2s0f0np0" + ;; +c240-3) + IFACE_UPF="ens2f0np0" + ;; +*) + echo "UNEXPECTED HOSTNAME: $(hostname)" + exit 1 + ;; +esac + +sudo ip addr add 172.16.31.1/24 dev $IFACE_UPF || true +sudo ip link set up dev $IFACE_UPF || true diff --git a/testsuites/gtplab-sysmo2025/tunmap/cpf/configure.sh b/testsuites/gtplab-sysmo2025/tunmap/cpf/configure.sh index 2b24a65..5270225 100755 --- a/testsuites/gtplab-sysmo2025/tunmap/cpf/configure.sh +++ b/testsuites/gtplab-sysmo2025/tunmap/cpf/configure.sh @@ -1 +1,17 @@ #!/bin/bash -xe + +case $(hostname) in +gtplab0) + IFACE_UPF="enp2s0f0np0" + ;; +c240-3) + IFACE_UPF="ens2f0np0" + ;; +*) + echo "UNEXPECTED HOSTNAME: $(hostname)" + exit 1 + ;; +esac + +sudo ip addr add 172.16.31.1/24 dev $IFACE_UPF || true +sudo ip link set up dev $IFACE_UPF || true