Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-napalm for openSUSE:Factory checked in at 2023-08-23 14:58:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-napalm (Old) and /work/SRC/openSUSE:Factory/.python-napalm.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-napalm" Wed Aug 23 14:58:51 2023 rev:15 rq:1105467 version:4.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-napalm/python-napalm.changes 2023-01-02 15:02:42.625533729 +0100 +++ /work/SRC/openSUSE:Factory/.python-napalm.new.1766/python-napalm.changes 2023-08-23 14:59:58.614243580 +0200 @@ -1,0 +2,25 @@ +Wed Aug 23 08:11:59 UTC 2023 - Georg Pfuetzenreuter <[email protected]> + +- Update to 4.1.0 + Improvements + ============ + + Improve get_bgp_config behavior across platforms. + EOS and Salt add optional_arg force_cfg_session_invalid that allows the config session to be invalidated on failure. + Improve EOS VRF parsing + + Bug and doc fixes + ================= + + Minor doc fixes + CI-CD fixes + Properly close Netmiko SSH connections for EOS-SSH + Improve EOS get_bgp_neighbors() + Increase default commit_config timeout on IOS/IOS-XE + NX-OS pull full configuration for merge operation diff + Improve NX-OS SSH Netmiko behavior (for Netmiko V4) + +- Add pending upstream patch to resolve an exception while reading XML output from Junos + napalm-gh-pr1796-xmlgetparent.patch: https://github.com/napalm-automation/napalm/pull/1796 + +------------------------------------------------------------------- Old: ---- napalm-4.0.0.tar.gz New: ---- napalm-4.1.0.tar.gz napalm-gh-pr1796-xmlgetparent.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-napalm.spec ++++++ --- /var/tmp/diff_new_pack.aDSfEY/_old 2023-08-23 14:59:59.222244666 +0200 +++ /var/tmp/diff_new_pack.aDSfEY/_new 2023-08-23 14:59:59.226244673 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-napalm # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-napalm -Version: 4.0.0 +Version: 4.1.0 Release: 0 Summary: Network Automation and Programmability Abstraction Layer License: Apache-2.0 @@ -28,6 +28,8 @@ Source: https://github.com/napalm-automation/napalm/archive/%{version}.tar.gz#/napalm-%{version}.tar.gz # https://github.com/napalm-automation/napalm/issues/1594 Patch0: python-napalm-no-mock.patch +# https://github.com/napalm-automation/napalm/pull/1796 +Patch1: napalm-gh-pr1796-xmlgetparent.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -48,8 +50,8 @@ Requires: python-scp Requires: python-setuptools >= 38.4.0 Requires: python-textfsm -Requires: python-ttp-templates Requires: python-ttp +Requires: python-ttp-templates Requires: python-typing_extensions Requires(post): update-alternatives Requires(postun):update-alternatives ++++++ napalm-4.0.0.tar.gz -> napalm-4.1.0.tar.gz ++++++ ++++ 5051 lines of diff (skipped) ++++++ napalm-gh-pr1796-xmlgetparent.patch ++++++ >From adb91dffa829127319903fee985a02d127fe13fc Mon Sep 17 00:00:00 2001 From: Chris Moore <[email protected]> Date: Fri, 11 Nov 2022 15:46:47 -0600 Subject: [PATCH] fix call to lxml.etree._ElementTree.getparent lxml.etree._ElementTree.get_parent() doesn't exist - it's getparent() - https://lxml.de/apidoc/lxml.etree.html#lxml.etree.ElementBase.getparent This enables fetching junos command output as XML through `<command> | display xml` --- napalm/junos/junos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm/junos/junos.py b/napalm/junos/junos.py index 8d56b0fbc..81c83a6c4 100644 --- a/napalm/junos/junos.py +++ b/napalm/junos/junos.py @@ -1136,7 +1136,7 @@ def _process_pipe(cmd, txt): ) raw_txt = self.device.cli(safe_command, warning=False, format=encoding) if isinstance(raw_txt, etree._Element): - raw_txt = etree.tostring(raw_txt.get_parent()).decode() + raw_txt = etree.tostring(raw_txt.getparent()).decode() cli_output[str(command)] = raw_txt else: cli_output[str(command)] = str(_process_pipe(command, raw_txt))
