From 3b18d308be27ce158e007fd199217a1b42836771 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sun, 25 Mar 2018 18:31:50 +0200 Subject: [PATCH] Adapte auth.py pour la nouvelle gestion switchs --- freeradius_utils/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeradius_utils/auth.py b/freeradius_utils/auth.py index 823d0d58..17b9513d 100644 --- a/freeradius_utils/auth.py +++ b/freeradius_utils/auth.py @@ -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)