osmith has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/31000 )
Change subject: network_create: set NET_NAME after next SUBNET ......................................................................
network_create: set NET_NAME after next SUBNET
Put the current SUBNET into NET_NAME, not the previous one. Without this patch it works too, but this makes more sense.
Related: OS#5802 Change-Id: I6c90505fd6c0ba62244ff67709b0bf31bf44b449 --- M jenkins-common.sh 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved
diff --git a/jenkins-common.sh b/jenkins-common.sh index 484e513..2eb9aad 100644 --- a/jenkins-common.sh +++ b/jenkins-common.sh @@ -200,8 +200,8 @@ network_create() { SUBNET="$PPID" for i in $(seq 1 30); do - NET_NAME="$SUITE_NAME-$SUBNET" SUBNET="$(echo "($SUBNET + 1) % 256" | bc)" + NET_NAME="$SUITE_NAME-$SUBNET" SUB4="172.18.$SUBNET.0/24" SUB6="fd02:db8:$SUBNET::/64" set +x