Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-napalm-arubaos-switch for 
openSUSE:Factory checked in at 2022-08-26 09:08:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-napalm-arubaos-switch (Old)
 and      /work/SRC/openSUSE:Factory/.python-napalm-arubaos-switch.new.2083 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-napalm-arubaos-switch"

Fri Aug 26 09:08:14 2022 rev:3 rq:999332 version:0.2.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-napalm-arubaos-switch/python-napalm-arubaos-switch.changes
        2021-12-21 18:41:03.141896500 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-napalm-arubaos-switch.new.2083/python-napalm-arubaos-switch.changes
      2022-08-26 09:08:16.105383173 +0200
@@ -1,0 +2,5 @@
+Mon Aug 22 17:20:03 UTC 2022 - Mark??ta Machov?? <mmach...@suse.com>
+
+- Add patch float-speed.patch to fix build
+
+-------------------------------------------------------------------

New:
----
  float-speed.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-napalm-arubaos-switch.spec ++++++
--- /var/tmp/diff_new_pack.6I2ZHl/_old  2022-08-26 09:08:16.653383734 +0200
+++ /var/tmp/diff_new_pack.6I2ZHl/_new  2022-08-26 09:08:16.657383737 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-napalm-arubaos-switch
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 # Copyright (c) 2021, Martin Hauke <mar...@gmx.de>
 #
 # All modifications and additions to the file contributed by third parties
@@ -27,11 +27,14 @@
 URL:            
https://github.com/napalm-automation-community/napalm-arubaos-switch/
 Group:          Development/Languages/Python
 Source:         
https://github.com/napalm-automation-community/napalm-arubaos-switch/archive/%{version}.tar.gz#/napalm-arubaos-switch-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM 
gh/napalm-automation-community/napalm-arubaos-switch/commit/ebd48e46 the driver 
needs to return the speed as float instead of an integer
+Patch0:         float-speed.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
 # SECTION test requirements
 BuildRequires:  %{python_module napalm >= 3.3.0}
 BuildRequires:  %{python_module netaddr}
+BuildRequires:  %{python_module netutils}
 BuildRequires:  %{python_module pytest-cov}
 BuildRequires:  %{python_module pytest-json-report}
 BuildRequires:  %{python_module pytest}
@@ -55,6 +58,7 @@
 
 %prep
 %setup -q -n napalm-arubaos-switch-%{version}
+%autopatch -p1
 
 %build
 %python_build

++++++ float-speed.patch ++++++
>From ebd48e4679f284a1c76441feef15c528867a718c Mon Sep 17 00:00:00 2001
From: Christian Schirge <schi...@zalando.de>
Date: Tue, 24 May 2022 11:05:39 +0200
Subject: [PATCH] float speed

the driver needs to return the speed as float instead of an integer
---
 napalm_arubaoss/helper/get_interfaces.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/napalm_arubaoss/helper/get_interfaces.py 
b/napalm_arubaoss/helper/get_interfaces.py
index 0949f1a..8c1674f 100644
--- a/napalm_arubaoss/helper/get_interfaces.py
+++ b/napalm_arubaoss/helper/get_interfaces.py
@@ -15,7 +15,7 @@ def get_interfaces(self):
         'is_enabled': False,
         'description': '',
         'last_flapped': -1.0,
-        'speed': 1000,
+        'speed': 1000.0,
         'mtu': -1,
         'mac_address': 'FA:16:3E:57:33:61',
     }
@@ -55,7 +55,7 @@ def get_interfaces(self):
         if i_id not in output.keys():
             output[i_id] = interface_template.copy()
 
-        output[i_id]["speed"] = speed
+        output[i_id]["speed"] = float(speed)
 
     for interface_id, interface_values in output.items():
         resp = self.connection.run_cmd(

Reply via email to