[ldap_crans] on se base sur le nom de machine pour attribuer les IPs du G
darcs-hash:20091119015608-61eff-e8f4b626cca4f11ad5b19acf24e2f954543ae351.gz
This commit is contained in:
parent
dd8a054692
commit
d3501e0754
1 changed files with 1 additions and 2 deletions
|
@ -2839,8 +2839,7 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3)
|
|||
elif not isinstance(proprio, Adherent) or proprio.adherentPayant():
|
||||
proprio_subnet = 'adherents'
|
||||
try:
|
||||
chbre = proprio.chbre()
|
||||
if chbre and chbre[0] == 'G':
|
||||
if self.nom().endswith("-g.crans.org"):
|
||||
proprio_subnet = 'adh-g'
|
||||
net = config.NETs[proprio_subnet]
|
||||
pool_ip = lister_ip_dispo(proprio_subnet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue