From a81971debccdb758dc3d37a9e50ee927edb22d68 Mon Sep 17 00:00:00 2001 From: jitendracandela Date: Mon, 11 Dec 2023 23:01:22 +0530 Subject: [PATCH] Fixed issue in client_disconnect method for multiple resources Signed-off-by: jitendracandela --- lf_libs/lf_libs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lf_libs/lf_libs.py b/lf_libs/lf_libs.py index f7993f25..87be3fb8 100644 --- a/lf_libs/lf_libs.py +++ b/lf_libs/lf_libs.py @@ -1400,7 +1400,7 @@ class lf_libs: exist_sta = [] for u in client_dis.json_get("/port/?fields=port+type,alias")['interfaces']: if list(u.values())[0]['port type'] not in ['Ethernet', 'WIFI-Radio', 'NA']: - exist_sta.append(list(u.values())[0]['alias']) + exist_sta.append(list(u.keys())[0]) client_dis.station_profile.cleanup(desired_stations=exist_sta) if clean_l3_traffic: try: