mirror of https://github.com/apache/cloudstack.git
bug 5532: allow more instances. could still fail with a very long instance name
This commit is contained in:
parent
0141be3d80
commit
7b03b6a4fe
|
|
@ -1478,7 +1478,7 @@ def ipset(ipsetname, proto, start, end, ips):
|
|||
util.SMlog("ipset chain already exists" + ipsetname)
|
||||
|
||||
result = True
|
||||
ipsettmp = ipsetname + str(int(time.time())%3600)
|
||||
ipsettmp = ''.join(''.join(ipsetname.split('-')).split('_')) + str(int(time.time()) % 1000)
|
||||
|
||||
try:
|
||||
util.pread2(['ipset', '-N', ipsettmp, 'iptreemap'])
|
||||
|
|
|
|||
Loading…
Reference in New Issue