Skip to content

Commit

Permalink
M #-: Fix dummy ipam driver (#2875)
Browse files Browse the repository at this point in the history
  • Loading branch information
paczerny committed Jan 3, 2024
1 parent e2f2782 commit 9177157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipamm_mad/remotes/dummy/get_address
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9177157

Please sign in to comment.