mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +00:00
Fixed the bug in pre_cleanup method
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
@@ -772,7 +772,7 @@ class lf_libs:
|
|||||||
exist_sta = []
|
exist_sta = []
|
||||||
for u in self.json_get("/port/?fields=port+type,alias")['interfaces']:
|
for u in self.json_get("/port/?fields=port+type,alias")['interfaces']:
|
||||||
if list(u.values())[0]['port type'] not in ['Ethernet', 'WIFI-Radio', 'NA']:
|
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])
|
||||||
if len(exist_sta) == 0:
|
if len(exist_sta) == 0:
|
||||||
logging.info("Existing stations are not available")
|
logging.info("Existing stations are not available")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user