Fixed issue in client_disconnect method for multiple resources

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
jitendracandela
2023-12-11 23:01:22 +05:30
parent 9e900b8cd1
commit a81971debc

View File

@@ -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: