Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #94 from The-Loeki/develop
Browse files Browse the repository at this point in the history
NXOS protocol param to standarized 'transport' param
  • Loading branch information
mirceaulinic committed Jun 27, 2017
2 parents 63c2d19 + b1764f8 commit d37ec4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion napalm_nxos/nxos.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
if optional_args is None:
optional_args = {}

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

if self.transport == 'https':
self.port = optional_args.get('port', 443)
Expand Down

0 comments on commit d37ec4e

Please sign in to comment.