Commit b336be17 authored by Tomas Hlavacek's avatar Tomas Hlavacek

Speed up Juniper expect routine (veeery slightly)

parent a23402de
......@@ -167,7 +167,7 @@ class JuniperRouterRemoteTelnet(JuniperRouter):
elif(i==1):
if(capture and line >= skiplines):
outfile.write(s.before + "\n")
line=line+1
line+=1
elif(i==2): # EOF -> process output
break
elif(i==3):
......@@ -175,7 +175,7 @@ class JuniperRouterRemoteTelnet(JuniperRouter):
else:
raise Exception("pexpect session failed: Unknown error. last output: "+s.before)
s.expect([pexpect.EOF,pexpect.TIMEOUT])
s.expect([pexpect.EOF])
class JuniperRouterRemoteSSH(JuniperRouter):
......
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