Closed OliElli closed 7 years ago
Removing the above workaround and trying --optional_args 'port=9998,nxos_protocol=https'
also works, as suggest by ubaumann.
NXOSDriver constructor is looking for nxos_protocol
in optinal_args
and not for transport
https://github.com/napalm-automation/napalm-nxos/blob/develop/napalm_nxos/nxos.py#L64
This has been fixed in https://github.com/napalm-automation/napalm-nxos/pull/94 and included in 0.6.0, which I forgot to release -- https://github.com/napalm-automation/napalm-nxos/pull/98. Thanks for reporting and pointing this out @ubaumann
Description of Issue/Question
Did you follow the steps from https://github.com/napalm-automation/napalm#faq
[X] Yes [ ] No
Setup
napalm-nxos version
(Paste verbatim output from
pip freeze | grep napalm-nxos
between quotes below)NX-OS version
(Paste verbatim output from
show version | json
between quotes below)Steps to Reproduce the Issue
Configure nxapi with https:
Error Traceback
(Paste the complete traceback of the exception between quotes below)
Workaround
With help from dbarroso, hard coding
transport='https'
inpynxos/device.py
has resolved the issue. I am not interested in using http for now.