realm.py: added NA "" in wait_for_ip lf_cisco_snp.py : ablility to create a log file and append to csv

This commit is contained in:
Chuck SmileyRekiere
2020-11-10 15:38:14 -07:00
parent e12d003a9e
commit cab9056c5f
2 changed files with 223 additions and 190 deletions

View File

@@ -502,6 +502,7 @@ class Realm(LFCliBase):
def wait_for_ip(self, station_list=None, ipv4=True, ipv6=False, timeout_sec=60, debug=False):
print("Waiting for ips, timeout: %i..."%(timeout_sec))
#print(station_list)
waiting_states = ["0.0.0.0", "NA", ""]
if (station_list is None) or (len(station_list) < 1):
raise ValueError("wait_for_ip: expects non-empty list of ports")
@@ -527,7 +528,7 @@ class Realm(LFCliBase):
if ipv4:
v = response['interface']
if v['ip'] == '0.0.0.0':
if (v['ip'] in waiting_states):
wait_more = True
if debug:
print("Waiting for port %s to get IPv4 Address."%(sta_eid))

File diff suppressed because it is too large Load Diff