Enlève import numdisp, correction de bugs.
This commit is contained in:
parent
8745a89176
commit
729be231ee
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,6 @@ from calendar import monthrange
|
|||
from affich_tools import coul, prompt, cprint
|
||||
from email_tools import send_email
|
||||
from syslog import openlog, closelog, syslog
|
||||
from numeros_disponibles import lister_ip_dispo
|
||||
from unicodedata import normalize
|
||||
import secrets_new as secrets
|
||||
import ridtools
|
||||
|
@ -3271,6 +3270,7 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3)
|
|||
raise RuntimeError(u'Impossible de trouver le réseau où placer la machine.')
|
||||
|
||||
#On essaye d'attribuer une ipv4, on cherche un rid dispo
|
||||
v6 = False
|
||||
if ip == '<automatique>':
|
||||
for plage in plage_rid:
|
||||
rid_pris = [int(elem[1]['rid'][0]) for elem in self.conn.search_ext_s(self.base_dn, ldap.SCOPE_SUBTREE, "(&(rid>=%s)(rid<=%s))" % (plage[0], plage[1]))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue