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:
Chuck SmileyRekiere
2021-05-21 11:32:54 -06:00
parent 9580704b73
commit 3e54b14098
2 changed files with 13 additions and 9 deletions

View File

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