8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-28 01:43:46 +00:00

Adapte auth.py pour la nouvelle gestion switchs

This commit is contained in:
Gabriel Detraz 2018-03-25 18:31:50 +02:00 committed by chirac
parent 81ec19ecce
commit 3b18d308be

View file

@ -301,7 +301,7 @@ def decide_vlan_and_register_switch(nas, nas_type, port_number, mac_address):
sw_name = str(nas)
port = Port.objects.filter(switch=Switch.objects.filter(switch_interface=nas), port=port_number).first()
port = Port.objects.filter(switch=Switch.objects.filter(interface_ptr=nas), port=port_number).first()
#Si le port est inconnu, on place sur le vlan defaut
if not port:
return (sw_name, "Chambre inconnue", u'Port inconnu', VLAN_OK)