From 5a2cafd8d33434810d750ef455faa3315b4d5a20ad4c716cc9dfb402e986e183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 16 Jan 2020 08:16:46 +0000 Subject: [PATCH] Accepting request 764882 from home:mnhauke:network:automation - Upate to version 3.0.0: Key enhancements/changes * PY3.6+ support only (all support for PY27 removed) * Significant reliability improvements to reduce loss of session state problems * Add support for direct use of TextFSM template * Allow custom socket timeout in SCP file_transfer * Improve MD5 hashing mechanism in SCP checks * Add sock parameter support * Increase default banner_timeout to 15 New Drivers * Eltex ESR * Juniper ScreenOS * Ruijei RGOS Driver Updates * Huawei driver improvements * Ciena driver improvements * NX-OS driver improvements * Nokia SR-OS driver improvements * HP ProCurve driver improvements * Juniper Junos driver improvements * Fortinet banner fix * Ruckus handling of failed enable * Linux enable/sudo improvements OBS-URL: https://build.opensuse.org/request/show/764882 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netmiko?expand=0&rev=19 --- netmiko-2.4.2.tar.gz | 3 --- netmiko-3.0.0.tar.gz | 3 +++ python-netmiko.changes | 28 ++++++++++++++++++++++++++++ python-netmiko.spec | 13 +++++-------- 4 files changed, 36 insertions(+), 11 deletions(-) delete mode 100644 netmiko-2.4.2.tar.gz create mode 100644 netmiko-3.0.0.tar.gz diff --git a/netmiko-2.4.2.tar.gz b/netmiko-2.4.2.tar.gz deleted file mode 100644 index 2bed2ea..0000000 --- a/netmiko-2.4.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e6b0cb98afb51fd1fb1d04d024d7572a0b5297dfa0bd18405ee36580deea65a1 -size 88802 diff --git a/netmiko-3.0.0.tar.gz b/netmiko-3.0.0.tar.gz new file mode 100644 index 0000000..643162a --- /dev/null +++ b/netmiko-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac33f17c4eb2fcf8331c2a5d00331bf1e9ce3672b40e5736c17cdb62ce92761b +size 282994 diff --git a/python-netmiko.changes b/python-netmiko.changes index c92e4eb..2f1ce91 100644 --- a/python-netmiko.changes +++ b/python-netmiko.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Thu Jan 16 07:29:20 UTC 2020 - Martin Hauke + +- Upate to version 3.0.0: + Key enhancements/changes + * PY3.6+ support only (all support for PY27 removed) + * Significant reliability improvements to reduce loss of session + state problems + * Add support for direct use of TextFSM template + * Allow custom socket timeout in SCP file_transfer + * Improve MD5 hashing mechanism in SCP checks + * Add sock parameter support + * Increase default banner_timeout to 15 + New Drivers + * Eltex ESR + * Juniper ScreenOS + * Ruijei RGOS + Driver Updates + * Huawei driver improvements + * Ciena driver improvements + * NX-OS driver improvements + * Nokia SR-OS driver improvements + * HP ProCurve driver improvements + * Juniper Junos driver improvements + * Fortinet banner fix + * Ruckus handling of failed enable + * Linux enable/sudo improvements + ------------------------------------------------------------------- Wed Sep 11 11:08:13 UTC 2019 - Tomáš Chvátal diff --git a/python-netmiko.spec b/python-netmiko.spec index 5caf545..72a29f7 100644 --- a/python-netmiko.spec +++ b/python-netmiko.spec @@ -1,7 +1,7 @@ # # spec file for package python-netmiko # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,8 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-netmiko -Version: 2.4.2 +Version: 3.0.0 Release: 0 Summary: Multi-vendor library to simplify Paramiko SSH connections to network devices License: MIT @@ -28,18 +29,12 @@ Source: https://files.pythonhosted.org/packages/source/n/netmiko/netmiko BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python2-enum34 -BuildRequires: python2-ipaddress Requires: python-PyYAML Requires: python-paramiko >= 2.4.1 Requires: python-pyserial Requires: python-scp >= 0.13.2 Requires: python-textfsm BuildArch: noarch -%ifpython2 -Requires: python-enum34 -Requires: python-ipaddress -%endif # SECTION test requirements BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module paramiko >= 2.4.3} @@ -54,6 +49,8 @@ Multi-vendor library to simplify Paramiko SSH connections to network devices. %prep %setup -q -n netmiko-%{version} +# drop shebang +sed -i -e '/^#!\//, 1d' netmiko/nokia/nokia_sros_ssh.py %build %python_build