Accepting request 925087 from home:ecsos:server
- Update to version 2.6.3 * Enhancements done Adding ignore warning for rollback api #1131 Add escaped $ Bourne-style shell prompt support #868 * Bugs Fixed - Fix for junos versions returning a bool value for config diff if there are no changes #1093 - Handle ncclient timeout exception at close. #787 - Newer junos versions return a bool for config diff and not etree if there are no changes #1093 - Changes from 2.6.2 * Bugs Fixed - Fix for evo device as Password prompt comes directly during telnet #1112 - Changes from 2.6.1 * Enhancement Added - Flag for json.loads() for special character like newline was made false by default. #1029 * Bugs Fixed - Transform function modified only for the rpc and set back to original value. #1108 - Skip the values returned in re-list without numbers during multi re software install #1099 - getiterator() replaced with iter() as was deprecated in Python 3.2 and removed in Python 3.9 #1110 - Drop python-junos-eznc-py39xml.patch because now in upstream. OBS-URL: https://build.opensuse.org/request/show/925087 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-junos-eznc?expand=0&rev=22
This commit is contained in:
parent
75b935bb81
commit
c37451ffcc
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b23f34fbf2011c4cd71e20b90c0314fb4cf73ba05ccb5f66b557b8cf295f9842
|
||||
size 581200
|
3
python-junos-eznc-2.6.3.tar.gz
Normal file
3
python-junos-eznc-2.6.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c50e9e4a86126ff0e6a6b4810f421a24173fb54bfa3c31c49b099ae85cc01d49
|
||||
size 582708
|
@ -1,48 +0,0 @@
|
||||
Index: py-junos-eznc-2.6.0/lib/jnpr/junos/factory/cfgtable.py
|
||||
===================================================================
|
||||
--- py-junos-eznc-2.6.0.orig/lib/jnpr/junos/factory/cfgtable.py
|
||||
+++ py-junos-eznc-2.6.0/lib/jnpr/junos/factory/cfgtable.py
|
||||
@@ -158,7 +158,7 @@ class CfgTable(Table):
|
||||
add_field = self._grindfield(lxpath[-1], field_value)
|
||||
for _add in add_field:
|
||||
if len(_add.attrib) > 0:
|
||||
- for i in dot.getiterator():
|
||||
+ for i in dot.iter():
|
||||
if i.tag == _add.tag:
|
||||
i.attrib.update(_add.attrib)
|
||||
break
|
||||
Index: py-junos-eznc-2.6.0/lib/jnpr/junos/jxml.py
|
||||
===================================================================
|
||||
--- py-junos-eznc-2.6.0.orig/lib/jnpr/junos/jxml.py
|
||||
+++ py-junos-eznc-2.6.0/lib/jnpr/junos/jxml.py
|
||||
@@ -161,7 +161,7 @@ strip_rpc_error_transform = etree.XSLT(s
|
||||
|
||||
|
||||
def remove_namespaces(xml):
|
||||
- for elem in xml.getiterator():
|
||||
+ for elem in xml.iter():
|
||||
if elem.tag is etree.Comment:
|
||||
continue
|
||||
i = elem.tag.find("}")
|
||||
@@ -171,7 +171,7 @@ def remove_namespaces(xml):
|
||||
|
||||
|
||||
def remove_namespaces_and_spaces(xml):
|
||||
- for elem in xml.getiterator():
|
||||
+ for elem in xml.iter():
|
||||
if elem.tag is etree.Comment:
|
||||
continue
|
||||
# Remove namespace from attributes
|
||||
Index: py-junos-eznc-2.6.0/tests/unit/test_jxml.py
|
||||
===================================================================
|
||||
--- py-junos-eznc-2.6.0.orig/tests/unit/test_jxml.py
|
||||
+++ py-junos-eznc-2.6.0/tests/unit/test_jxml.py
|
||||
@@ -40,7 +40,7 @@ class Test_JXML(unittest.TestCase):
|
||||
parser = ET.XMLParser()
|
||||
root = ET.parse(StringIO(xmldata), parser)
|
||||
test = remove_namespaces(root)
|
||||
- for elem in test.getiterator():
|
||||
+ for elem in test.iter():
|
||||
i = elem.tag.find("}")
|
||||
if i > 0:
|
||||
i = i + 1
|
@ -1,3 +1,33 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 13 10:15:04 UTC 2021 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Update to version 2.6.3
|
||||
* Enhancements done
|
||||
Adding ignore warning for rollback api #1131
|
||||
Add escaped $ Bourne-style shell prompt support #868
|
||||
* Bugs Fixed
|
||||
- Fix for junos versions returning a bool value for config diff
|
||||
if there are no changes #1093
|
||||
- Handle ncclient timeout exception at close. #787
|
||||
- Newer junos versions return a bool for config diff and not
|
||||
etree if there are no changes #1093
|
||||
- Changes from 2.6.2
|
||||
* Bugs Fixed
|
||||
- Fix for evo device as Password prompt comes directly during
|
||||
telnet #1112
|
||||
- Changes from 2.6.1
|
||||
* Enhancement Added
|
||||
- Flag for json.loads() for special character like newline was
|
||||
made false by default. #1029
|
||||
* Bugs Fixed
|
||||
- Transform function modified only for the rpc and set back to
|
||||
original value. #1108
|
||||
- Skip the values returned in re-list without numbers during
|
||||
multi re software install #1099
|
||||
- getiterator() replaced with iter() as was deprecated in
|
||||
Python 3.2 and removed in Python 3.9 #1110
|
||||
- Drop python-junos-eznc-py39xml.patch because now in upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 26 16:58:17 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-junos-eznc
|
||||
Version: 2.6.0
|
||||
Version: 2.6.3
|
||||
Release: 0
|
||||
Summary: Junos 'EZ' automation for non-programmers
|
||||
License: Apache-2.0
|
||||
@ -32,8 +32,6 @@ Patch0: python-junos-eznc-remove-nose.patch
|
||||
# replace deprecated yamlordereddictloader by yamlloader
|
||||
# https://github.com/Juniper/py-junos-eznc/pull/1078
|
||||
Patch1: python-junos-eznc-remove-yamlordereddictloader.patch
|
||||
# https://github.com/Juniper/py-junos-eznc/pull/1110
|
||||
Patch2: python-junos-eznc-py39xml.patch
|
||||
BuildRequires: %{python_module Jinja2 >= 2.7.1}
|
||||
BuildRequires: %{python_module PyYAML >= 5.1}
|
||||
BuildRequires: %{python_module lxml >= 3.2.4}
|
||||
|
Loading…
x
Reference in New Issue
Block a user