diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index a9e129ea..7cd87ab3 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -3277,7 +3277,7 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3) #print sorted(rid_pris) # Par defaut la plage est pas v6 (cf bornes/bornes v6) v6 = False - for rid in range(plage[0],plage[1]): + for rid in range(plage[0],plage[1] + 1): if rid not in rid_pris: # On verifie que l'ip se termine pas par 0 ou 255 et que il y a une ipv4 dispo (on sort si on est dans une plage v6) if not ridtools.Rid(rid=rid).ipv4_dispo: