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
cd056c8d01
commit
3c897c5b27
|
|
@ -490,7 +490,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