mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-23 05:25:02 +00:00
lf_cisco_dfs.py : send password for lanforge
This commit is contained in:
@@ -1449,9 +1449,9 @@ class L3VariableTime(Realm):
|
|||||||
child.expect([pexpect.TIMEOUT], timeout=1) # do not delete this for it allows for subprocess to see output
|
child.expect([pexpect.TIMEOUT], timeout=1) # do not delete this for it allows for subprocess to see output
|
||||||
print(child.before.decode('utf-8', 'ignore')) # do not delete this for it allows for subprocess to see output
|
print(child.before.decode('utf-8', 'ignore')) # do not delete this for it allows for subprocess to see output
|
||||||
|
|
||||||
#child.expect('password for user:')
|
child.expect('lanforge:')
|
||||||
#print(child.before.decode('utf-8', 'ignore'))
|
print(child.before.decode('utf-8', 'ignore'))
|
||||||
#child.sendline('user123')
|
child.sendline('lanforge')
|
||||||
child.expect('>>>')
|
child.expect('>>>')
|
||||||
print(child.before.decode('utf-8', 'ignore'))
|
print(child.before.decode('utf-8', 'ignore'))
|
||||||
child.sendline('s')
|
child.sendline('s')
|
||||||
|
|||||||
Reference in New Issue
Block a user