mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	lf_cisco_dfs.py : changes wait from 2 to 5 sec for root password on lanforge
This commit is contained in:
		@@ -1491,10 +1491,12 @@ class L3VariableTime(Realm):
 | 
			
		||||
            child.sendline('lanforge')
 | 
			
		||||
            time.sleep(0.4)
 | 
			
		||||
            self.dfs_epoch_start = int(time.time())
 | 
			
		||||
            j = child.expect(['>>>',pexpect.TIMEOUT], timeout=2) 
 | 
			
		||||
            j = child.expect(['>>>',pexpect.TIMEOUT], timeout=5) 
 | 
			
		||||
            if j == 0:
 | 
			
		||||
                logg.info(">>> prompt received i: {} j: {} before {} after {}".format(i,j,child.before.decode('utf-8', 'ignore'),child.after.decode('utf-8', 'ignore')))
 | 
			
		||||
                child.sendline('s')
 | 
			
		||||
                logg.info("Let the radar run for 5 sec")
 | 
			
		||||
                time.sleep(5)
 | 
			
		||||
                child.sendline('s') # stop
 | 
			
		||||
                time.sleep(0.4)
 | 
			
		||||
                k = child.expect(['>>>',pexpect.TIMEOUT], timeout=2) 
 | 
			
		||||
                if k == 0:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user