Hello community,
here is the log from the commit of package python-napalm-procurve for
openSUSE:Factory checked in at 2020-03-31 17:14:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-napalm-procurve (Old)
and /work/SRC/openSUSE:Factory/.python-napalm-procurve.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-napalm-procurve"
Tue Mar 31 17:14:09 2020 rev:2 rq:789774 version:0.5.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-napalm-procurve/python-napalm-procurve.changes
2019-10-28 16:46:59.324748377 +0100
+++
/work/SRC/openSUSE:Factory/.python-napalm-procurve.new.3160/python-napalm-procurve.changes
2020-03-31 17:14:18.519591911 +0200
@@ -1,0 +2,6 @@
+Mon Mar 30 11:56:54 UTC 2020 - [email protected]
+
+- version update to 0.5.0
+ * no upstream changelog found
+
+-------------------------------------------------------------------
Old:
----
napalm-procurve-0.4.0.tar.gz
New:
----
napalm-procurve-0.5.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-napalm-procurve.spec ++++++
--- /var/tmp/diff_new_pack.YrFt4O/_old 2020-03-31 17:14:20.539593194 +0200
+++ /var/tmp/diff_new_pack.YrFt4O/_new 2020-03-31 17:14:20.583593222 +0200
@@ -1,6 +1,7 @@
#
# spec file for package python-napalm-procurve
#
+# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2019, Martin Hauke <[email protected]>
#
# All modifications and additions to the file contributed by third parties
@@ -12,27 +13,30 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+# python-napalm is python3 only
+%define skip_python2 1
Name: python-napalm-procurve
-Version: 0.4.0
+Version: 0.5.0
Release: 0
-License: Apache-2.0
Summary: NAPALM - HP ProCurve network driver
-Url: https://github.com/ixs/napalm-procurve
+License: Apache-2.0
Group: Development/Languages/Python
+URL: https://github.com/ixs/napalm-procurve
Source:
https://github.com/ixs/napalm-procurve/archive/%{version}.tar.gz#/napalm-procurve-%{version}.tar.gz
-BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module napalm >= 2.4.0}
BuildRequires: %{python_module netmiko}
-BuildRequires: %{python_module pytest}
-BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pylama}
+BuildRequires: %{python_module pytest-cov}
+BuildRequires: %{python_module pytest}
# /SECTION
BuildRequires: fdupes
Requires: python-napalm >= 2.4.0
++++++ napalm-procurve-0.4.0.tar.gz -> napalm-procurve-0.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/napalm-procurve-0.4.0/napalm_procurve/procurve.py
new/napalm-procurve-0.5.0/napalm_procurve/procurve.py
--- old/napalm-procurve-0.4.0/napalm_procurve/procurve.py 2019-04-19
13:43:20.000000000 +0200
+++ new/napalm-procurve-0.5.0/napalm_procurve/procurve.py 2019-11-08
17:38:52.000000000 +0100
@@ -20,13 +20,12 @@
from __future__ import print_function
from __future__ import unicode_literals
-import difflib
import re
import sys
import socket
import telnetlib
-from netmiko import ConnectHandler, FileTransfer, InLineTransfer
+from netmiko import ConnectHandler
from napalm.base.base import NetworkDriver
from napalm.base.exceptions import (
CommandErrorException,
@@ -218,7 +217,8 @@
def _get_interface_map(self):
"""Build an interface map that matches interface name to interface
index id"""
if len(self.interface_map) < 1 or "pytest" in sys.modules:
- self.interface_map = {v: k for k, v in
self._walkMIB_values('ifName').items()}
+ self.interface_map = {v: k for k,
+ v in self._walkMIB_values('ifName').items()}
return self.interface_map
def get_facts(self):
@@ -394,8 +394,6 @@
6: 'agentCircuitId',
7: 'local'}
-
-
# Check if router supports the command
if 'Invalid input' in output:
raise ValueError("Command not supported by network device")
@@ -499,7 +497,7 @@
environment[env_category][sname] = env_value
return environment
- def get_config(self, retrieve='all'):
+ def get_config(self, retrieve='all', full=False):
config = {
'startup': '',
@@ -519,6 +517,7 @@
r'^; .* Configuration Editor;.*$', startup_config,
flags=re.M)[1].strip()
config['startup'] = py23_compat.text_type(startup_config)
+ config['candidate'] = ''
return config
def _ping_caps(self):
@@ -672,7 +671,8 @@
arp_table = []
if vrf:
- raise NotImplementedError('No VRF support with this
driver/platform.')
+ raise NotImplementedError(
+ 'No VRF support with this driver/platform.')
command = 'show arp'
output = self._send_command(command)
@@ -739,7 +739,7 @@
for line in output.splitlines():
try:
- mac, port = line.split()
+ mac, port = line.split()
except IndexError:
raise ValueError("Unexpected output from: {}".format(line))
@@ -764,6 +764,7 @@
if_alias = self._walkMIB_values('ifAlias')
if_speed = self._walkMIB_values('ifSpeed')
if_macs = self._walkMIB_values('ifPhysAddress')
+ if_mtu = self._walkMIB_values('ifMtu')
if_adm_state = self._walkMIB_values('ifAdminStatus')
if_lnk_state = self._walkMIB_values('ifOperStatus')
if_last_change = self._walkMIB_values('ifLastChange')
@@ -777,7 +778,8 @@
'last_flapped':
-1.0, # Data makes no sense... unsupported for now.
'speed': int(int(if_speed[idx].replace(',', '')) / 1000 /
1000),
- 'mac_address': py23_compat.text_type(if_macs[idx])
+ 'mac_address': py23_compat.text_type(if_macs[idx]),
+ 'mtu': int(if_mtu[idx]),
}
return interfaces
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/napalm-procurve-0.4.0/setup.py
new/napalm-procurve-0.5.0/setup.py
--- old/napalm-procurve-0.4.0/setup.py 2019-04-19 13:43:20.000000000 +0200
+++ new/napalm-procurve-0.5.0/setup.py 2019-11-08 17:38:52.000000000 +0100
@@ -14,7 +14,7 @@
setup(
name="napalm-procurve",
- version="0.4.0",
+ version="0.5.0",
packages=find_packages(),
author="Andreas Thienemann",
author_email="[email protected]",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/napalm-procurve-0.4.0/test/unit/mocked_data/test_get_interfaces/normal/expected_result.json
new/napalm-procurve-0.5.0/test/unit/mocked_data/test_get_interfaces/normal/expected_result.json
---
old/napalm-procurve-0.4.0/test/unit/mocked_data/test_get_interfaces/normal/expected_result.json
2019-04-19 13:43:20.000000000 +0200
+++
new/napalm-procurve-0.5.0/test/unit/mocked_data/test_get_interfaces/normal/expected_result.json
2019-11-08 17:38:52.000000000 +0100
@@ -5,6 +5,7 @@
"last_flapped":-1,
"is_up":true,
"mac_address":"00 17 08 c8 21 3f",
+ "mtu":1500,
"speed":100
},
"3":{
@@ -13,6 +14,7 @@
"last_flapped":-1,
"is_up":true,
"mac_address":"00 17 08 c8 21 3d",
+ "mtu":1500,
"speed":1000
},
"2":{
@@ -21,6 +23,7 @@
"last_flapped":-1,
"is_up":false,
"mac_address":"00 17 08 c8 21 3e",
+ "mtu":1500,
"speed":1000
},
"5":{
@@ -29,6 +32,7 @@
"last_flapped":-1,
"is_up":true,
"mac_address":"00 17 08 c8 21 3b",
+ "mtu":1500,
"speed":1000
},
"4":{
@@ -37,6 +41,7 @@
"last_flapped":-1,
"is_up":false,
"mac_address":"00 17 08 c8 21 3c",
+ "mtu":1500,
"speed":1000
},
"7":{
@@ -45,6 +50,7 @@
"last_flapped":-1,
"is_up":true,
"mac_address":"00 17 08 c8 21 39",
+ "mtu":1500,
"speed":1000
},
"6":{
@@ -53,6 +59,7 @@
"last_flapped":-1,
"is_up":false,
"mac_address":"00 17 08 c8 21 3a",
+ "mtu":1500,
"speed":1000
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/napalm-procurve-0.4.0/test/unit/mocked_data/test_get_interfaces/normal/walkMIB_ifMtu.txt
new/napalm-procurve-0.5.0/test/unit/mocked_data/test_get_interfaces/normal/walkMIB_ifMtu.txt
---
old/napalm-procurve-0.4.0/test/unit/mocked_data/test_get_interfaces/normal/walkMIB_ifMtu.txt
1970-01-01 01:00:00.000000000 +0100
+++
new/napalm-procurve-0.5.0/test/unit/mocked_data/test_get_interfaces/normal/walkMIB_ifMtu.txt
2019-11-08 17:38:52.000000000 +0100
@@ -0,0 +1,9 @@
+ifMtu.1 = 1500
+ifMtu.2 = 1500
+ifMtu.3 = 1500
+ifMtu.4 = 1500
+ifMtu.5 = 1500
+ifMtu.6 = 1500
+ifMtu.7 = 1500
+ifMtu.8 = 1500
+ifMtu.9 = 1500