Commit 65b029b2 by Tomas Hlavacek

Cisco disable debug logging from pexpect

Disable debug logging from pexpect (contains passwords!).
parent 2a4c139d
......@@ -825,7 +825,9 @@ class CiscoRouter(ulgmodel.RemoteRouter):
# connect
c=defaults.bin_ssh+' -p'+str(self.getPort())+' '+str(self.getUser())+'@'+self.getHost()
s=pexpect.spawn(c,timeout=defaults.timeout)
s.logfile = open('/tmp/ulgcisco.log', 'w')
## Debug logging
# s.logfile = open('/tmp/ulgcisco.log', 'w')
y=0
p=0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment