mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
test_ipv4_connection.py : expected ap status to always be present
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -106,8 +106,11 @@ class IPv4Test(LFCliBase):
|
||||
eidn = self.local_realm.name_to_eid(sta_name)
|
||||
url = "/port/1/%s/%s" % (eidn[1], eidn[2])
|
||||
sta_status = self.json_get(url + "?fields=port,alias,ip,ap", debug_=self.debug)
|
||||
# print(sta_status)
|
||||
if (sta_status is None) or (sta_status['interface'] is None) or (sta_status['interface']['ap'] is None):
|
||||
print(sta_status)
|
||||
try:
|
||||
if (sta_status is None) or (sta_status['interface'] is None) or (sta_status['interface']['ap'] is None):
|
||||
continue
|
||||
except:
|
||||
continue
|
||||
if (len(sta_status['interface']['ap']) == 17) and (sta_status['interface']['ap'][-3] == ':'):
|
||||
if self.debug:
|
||||
|
||||
Reference in New Issue
Block a user