forked from pool/python-napalm
Accepting request 1105467 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1105467 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-napalm?expand=0&rev=15
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:439df0c08b2dcfaab240bb03e92ba3bd0b09f7861e7c1d97c9b5ccb26d5c240a
|
||||
size 1559011
|
||||
3
napalm-4.1.0.tar.gz
Normal file
3
napalm-4.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3ee779fa3949bc34efa1a32ae7b81074bc916c4b9b5a9c8bcd289660bddee6ef
|
||||
size 1565210
|
||||
25
napalm-gh-pr1796-xmlgetparent.patch
Normal file
25
napalm-gh-pr1796-xmlgetparent.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From adb91dffa829127319903fee985a02d127fe13fc Mon Sep 17 00:00:00 2001
|
||||
From: Chris Moore <cmoore79@depaul.edu>
|
||||
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))
|
||||
@@ -1,3 +1,28 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 23 08:11:59 UTC 2023 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 2 12:53:17 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -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 @@ URL: https://github.com/napalm-automation/napalm
|
||||
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-requests >= 2.7.0
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user