* Quelques erreurs, maintenant ça marche
This commit is contained in:
parent
6b55396794
commit
d12ad982cd
3 changed files with 7 additions and 3 deletions
|
@ -60,6 +60,7 @@ def prefixev6_of_rid(rid):
|
|||
|
||||
Cette fonction retourne l'ip de début de ce sous-réseau.
|
||||
"""
|
||||
# Au cas où
|
||||
rid = int(rid)
|
||||
|
||||
for net, plage in config.rid.items():
|
||||
|
@ -75,6 +76,8 @@ def ip6_of_mac(mac, rid):
|
|||
"""
|
||||
Retourne la bonne ipv6 de la machine en fonction de sa mac et de son rid.
|
||||
"""
|
||||
# Au cas où
|
||||
rid = int(rid)
|
||||
|
||||
for net, plage in config.rid.items():
|
||||
if rid >= plage[0] and rid <= plage[1]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue