Skip to content

Commit

Permalink
Merge pull request #213 from arif-ali/fix_prodstack6_vip_allocation
Browse files Browse the repository at this point in the history
Fix prodstack6 VIP allocation
  • Loading branch information
dnegreira authored Aug 1, 2024
2 parents 612d8dc + 67377cd commit 14153ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/generate_bundle_base
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ if [[ -z $vip_start ]] && [[ -e ~/novarc ]]; then
# Our primary network is /25 and we are arbitrarily using the
# last 20 addresses for vips which is prone to collisions but
# we have no alternative currently.
vip_start=$(echo $cidr| sed -r 's/([0-9]+\.[0-9]+\.[0-9]+).+/\1/g').106
net_start=$(awk -F'.' '/HostMin/{print $NF}' <<<$(ipcalc -b $cidr))
net_start_suffix=${net_start##*\.}
vip_start=$(echo $cidr| sed -r 's/([0-9]+\.[0-9]+\.[0-9]+).+/\1/g').$((net_start_suffix + 105))
fi
fi
VIP_START_PREFIX=${vip_start%\.*}
Expand Down

0 comments on commit 14153ff

Please sign in to comment.