[numeros_disponibles] Style
darcs-hash:20090128152859-ffbb2-c4fda7ecde1a7bc9ab137e31bb49083efa16a189.gz
This commit is contained in:
parent
8a64abd2c4
commit
e9b58e4c4e
1 changed files with 1 additions and 6 deletions
|
@ -62,12 +62,7 @@ def update_ip(plage, occupees):
|
|||
break
|
||||
pool_ip.append(ip)
|
||||
|
||||
resultat = ''
|
||||
|
||||
for ip in pool_ip:
|
||||
if ip not in occupees :
|
||||
if not AddrInNet(ip, ancien_vlan_adm):
|
||||
resultat += '%s\n' % ip
|
||||
resultat = ''.join('%s\n' % ip for ip in pool_ip if ip not in occupees and not AddrInNet(ip, ancien_vlan_adm))
|
||||
|
||||
f = open(repertoire + 'ip_' + plage,'w')
|
||||
f.write(resultat)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue