From 9177157e2a74b6084ef5214e230d6cf88b69fdd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Czern=C3=BD?= Date: Wed, 3 Jan 2024 14:13:34 +0100 Subject: [PATCH] M #-: Fix dummy ipam driver (#2875) --- src/ipamm_mad/remotes/dummy/get_address | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipamm_mad/remotes/dummy/get_address b/src/ipamm_mad/remotes/dummy/get_address index cbc2de5d27..b194020d0a 100755 --- a/src/ipamm_mad/remotes/dummy/get_address +++ b/src/ipamm_mad/remotes/dummy/get_address @@ -104,7 +104,7 @@ ADDR_SIZE="${XPATH_ELEMENTS[i++]}" BASE_IP=$(echo $AR_IP | cut -d'.' -f-3) HOST_ID=$RANDOM -let "HOST_ID %= $AR_SIZE" +let "HOST_ID %= $AR_SIZE - $ADDR_SIZE" HOST_ID=$(($HOST_ID+1)) cat << EOT