Commit 65b029b2 authored by Tomas Hlavacek's avatar 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): ...@@ -825,7 +825,9 @@ class CiscoRouter(ulgmodel.RemoteRouter):
# connect # connect
c=defaults.bin_ssh+' -p'+str(self.getPort())+' '+str(self.getUser())+'@'+self.getHost() c=defaults.bin_ssh+' -p'+str(self.getPort())+' '+str(self.getUser())+'@'+self.getHost()
s=pexpect.spawn(c,timeout=defaults.timeout) 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 y=0
p=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 to comment