15
0
forked from pool/python-napalm
Files
python-napalm/netmiko-4-support.patch
Steve Kowalik 88294feff3 - Add patch netmiko-4-support.patch:
* Support netmiko >= 4
  * As a consequence, bump {Build,}Requires on netmiko to >= 4.
- Remove unneeded BuildRequires on mock

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-napalm?expand=0&rev=22
2022-08-05 04:59:58 +00:00

16 lines
655 B
Diff

Index: napalm-3.4.0/napalm/pyIOSXR/iosxr.py
===================================================================
--- napalm-3.4.0.orig/napalm/pyIOSXR/iosxr.py
+++ napalm-3.4.0/napalm/pyIOSXR/iosxr.py
@@ -35,8 +35,8 @@ from xml.sax.saxutils import escape as e
# third party lib
from lxml import etree as ET
from netmiko import ConnectHandler
-from netmiko.ssh_exception import NetMikoTimeoutException
-from netmiko.ssh_exception import NetMikoAuthenticationException
+from netmiko.exceptions import NetMikoTimeoutException
+from netmiko.exceptions import NetMikoAuthenticationException
# local modules
from napalm.pyIOSXR.exceptions import LockError