From 7a76d1fa1db15da819be74973689d83b02899487 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Sat, 8 Dec 2018 21:59:42 +0100 Subject: [PATCH] Fix vlan_id in vlan_decision_ok --- 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 3fa7e23f..87d5ed64 100644 --- a/freeradius_utils/auth.py +++ b/freeradius_utils/auth.py @@ -398,7 +398,7 @@ def decide_vlan_switch(nas_machine, nas_type, port_number, DECISION_VLAN = int(port_profile.vlan_untagged.vlan_id) extra_log = u"Force sur vlan " + str(DECISION_VLAN) else: - DECISION_VLAN = RadiusOption.get_cached_value('vlan_decision_ok') + DECISION_VLAN = RadiusOption.get_cached_value('vlan_decision_ok').vlan_id # Si le port est désactivé, on rejette la connexion if not port.state: