correcting the ip sequence

corrected the sequence in which private and public IPs of the pods are
generated. each 8bit mask should remain in 0-255 range.
This commit is contained in:
Prasanna Santhanam 2012-03-21 13:56:53 +05:30
parent 9cec7875de
commit 61b7824db5
1 changed files with 7 additions and 3 deletions

View File

@ -55,9 +55,13 @@ if __name__ == "__main__":
ip.startip = "172."+ str(a)+"."+ str(b)+"."+"190"
ip.endip = "172."+ str(a)+"."+ str(b)+"."+"249"
p.guestIpRanges.append(ip)
b = b+1
b = b + 1
if b == 256:
a = a+1
a = a + 1
b = 1
if a == 256:
raise ValueError("Out of IP ranges")
#Define Cluster (10 clusters/pod)
for j in range(10):
c = cluster()
@ -93,4 +97,4 @@ if __name__ == "__main__":
zs.dbSvr = db
generate_setup_config(zs,opts.output)