Commit d8e85f02 authored by Mike Hibler's avatar Mike Hibler
Browse files

Make sure we don't produce vnode IP addresses with leading zeros in the octets.

This is apparently a no-no and was happening at DETER.
parent da508469
...@@ -311,7 +311,7 @@ sub CreateVnodes($$) ...@@ -311,7 +311,7 @@ sub CreateVnodes($$)
# #
foreach my $i (@tocreate) { foreach my $i (@tocreate) {
my $vpriority = 10000000 + ($nodenum * 1000) + $i; my $vpriority = 10000000 + ($nodenum * 1000) + $i;
my $jailip = "${IPBASE}.${nodenum}.${i}"; my $jailip = "${IPBASE}." . int(${nodenum}) . ".${i}";
my $vnodeid = $nodeprefix . "vm" . $nodenum . "-" . $i; my $vnodeid = $nodeprefix . "vm" . $nodenum . "-" . $i;
if ($verbose) { if ($verbose) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment