Skip to content

Commit

Permalink
Merge pull request #74 from fooelisa/iosxr-timeout
Browse files Browse the repository at this point in the history
added iosxr timeout
  • Loading branch information
dbarrosop committed Oct 29, 2015
2 parents ef98031 + 8560418 commit 30ba3a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions napalm/iosxr.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@

class IOSXRDriver(NetworkDriver):

def __init__(self, hostname, username, password):
def __init__(self, hostname, username, password, timeout=60):
self.hostname = hostname
self.username = username
self.password = password
self.device = IOSXR(hostname, username, password)
self.timeout = timeout
self.device = IOSXR(hostname, username, password, timeout=timeout)
self.pending_changes = False
self.replace = False

Expand Down

0 comments on commit 30ba3a6

Please sign in to comment.