Skip to content

Commit

Permalink
Merge pull request #7 from napalm-automation-community/develop
Browse files Browse the repository at this point in the history
Release 2.0.5
  • Loading branch information
bewing authored Dec 17, 2018
2 parents 450d12e + 8150d3d commit f7fc664
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion napalm_mos/mos.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

import napalm.base.helpers
from napalm.base import NetworkDriver
from napalm.base.netmiko_helpers import netmiko_args
from napalm.base.utils import string_parsers, py23_compat
from napalm.base.exceptions import (
ConnectionException,
Expand Down Expand Up @@ -99,6 +100,8 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
self.path = optional_args.get('path', '/command-api')
self.enablepwd = optional_args.get('enable_password', '')

self.netmiko_args = netmiko_args(optional_args)

def open(self):
"""Implementation of NAPALM method open."""
if self.transport not in TRANSPORTS:
Expand All @@ -123,7 +126,8 @@ def open(self):
# This is to get around user mismatch in API/FileCopy
if self._ssh is None:
self._ssh = ConnectHandler(device_type='cisco_ios', ip=self.hostname,
username=self.username, password=self.password)
username=self.username, password=self.password,
timeout=self.timeout, **self.netmiko_args)
self._ssh.enable()
except ConnectionError as ce:
raise ConnectionException(ce.message)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="napalm-mos",
version="2.0.4",
version="2.0.5",
packages=find_packages(),
author="Benny Holmgren, Brandon Ewing",
author_email="benny@holmgren.id.au, brandon.ewing@warningg.com",
Expand Down

0 comments on commit f7fc664

Please sign in to comment.