Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
Merge d13da5a into bff0185
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Aug 7, 2017
2 parents bff0185 + d13da5a commit 28d5f2f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion napalm_eos/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
if optional_args is None:
optional_args = {}

self.recorder_options = {
"mode": optional_args.get("recorder_mode", "pass"),
"path": optional_args.get("recorder_path", ""),
}

# eos_transport is there for backwards compatibility, transport is the preferred method
self.transport = optional_args.get('transport', optional_args.get('eos_transport', 'https'))

Expand Down Expand Up @@ -106,7 +111,10 @@ def open(self):
raise ConnectionException("Unknown transport: {}".format(self.transport))

if self.device is None:
self.device = pyeapi.client.Node(connection, enablepwd=self.enablepwd)
self.device = napalm_base.recorder.Recorder(pyeapi.client.Node,
recorder_options=self.recorder_options,
connection=connection,
enablepwd=self.enablepwd)
# does not raise an Exception if unusable

# let's try to run a very simple command
Expand Down

0 comments on commit 28d5f2f

Please sign in to comment.