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
This commit is contained in:
Oliver Smith 2023-01-17 13:23:44 +01:00
parent 998bc92f07
commit 381e2f3a0e
1 changed files with 1 additions and 1 deletions

View File

@ -200,8 +200,8 @@ network_clean() {
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