From ab2ad3485fbc3f76d7325585bbe70af7a68f858b Mon Sep 17 00:00:00 2001 From: nwinemiller-dbx <67482339+nwinemiller-dbx@users.noreply.github.com> Date: Tue, 18 Oct 2022 07:59:06 -0700 Subject: [PATCH 1/3] Update README.md Updated to reflect new Netmiko required version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6db3598..0859db0 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ It is now maintained by Mircea Ulinic [@mirceaulinic](https://github.com/mirceau Requirements ============= -* netmiko >= 0.5.2 +* netmiko >= 4.0.0 * lxml >= 3.4.2 * IOS-XR >= 5.1.0 From 313c63c70f9519ba292c368b44761ef9c10b9025 Mon Sep 17 00:00:00 2001 From: nwinemiller-dbx <67482339+nwinemiller-dbx@users.noreply.github.com> Date: Tue, 18 Oct 2022 08:02:42 -0700 Subject: [PATCH 2/3] Update Netmiko Exceptions locations --- pyIOSXR/iosxr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyIOSXR/iosxr.py b/pyIOSXR/iosxr.py index 5cb3467..f1fdeb5 100644 --- a/pyIOSXR/iosxr.py +++ b/pyIOSXR/iosxr.py @@ -26,8 +26,8 @@ # 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 pyIOSXR.exceptions import LockError From 2febcfe0e0af717207fd7653ff035c6db53e4011 Mon Sep 17 00:00:00 2001 From: nwinemiller-dbx <67482339+nwinemiller-dbx@users.noreply.github.com> Date: Tue, 18 Oct 2022 08:04:52 -0700 Subject: [PATCH 3/3] Update requirements to pull in netmiko>=4.0.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1406164..1b5c6bf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -netmiko>=1.4.3 +netmiko>=4.0.0 lxml>=3.2.4