15
0
Files
python-junos-eznc/python-311.patch
Daniel Garcia 6a54ddccb7 - Add python-311.patch to support python 3.11, gh#Juniper/py-junos-eznc#1236
- Remove python-junos-eznc-fix-unittests.patch, not needed anymore
- Update to 2.6.7:
  * Supported option to set look_for_keys with bool True/False #1234
  * Fixed build failure against setuptools #1231
- 2.6.6
  * Fixed reboot failing on other RE #1199
  * Fixed passing 'sleep' arg to StartShell run() #1202
  * Fixed PyEZ get-facts support for ACX model #1209
  * Fixed EthPortTable regex pattern #1215
  * Fixed StartShell UnboundLocalError #1203 #1211
- 2.6.5
  * Supported multi-gig ports for EthPortTable.yml #1177
  * Fixed on-box support for start shell types #1190 #1186
  * Fixed conn_open_timeout value was getting set None , changed it to
    default 30 seconds #1184
- 2.6.4
  * Supported start_shell options to choose the shell types (sh or csh) #995
  * Supported for python 3.9
  * Fixed Device facts current_re returns the SRX cluster node0 and
    node1 details with cluster ID 16 #1135
  * Fixed upgrade ncclient version 0.6.13, updated requirements.txt to
    install ncclient==0.6.13 #1153
  * Fixed deprecation warning due to invalid escape sequences #1034
  * Fixed Unit tests test_sw_put_ftp failure #1165

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-junos-eznc?expand=0&rev=26
2023-03-02 07:18:00 +00:00

33 lines
1.2 KiB
Diff

Index: py-junos-eznc-2.6.7/lib/jnpr/junos/device.py
===================================================================
--- py-junos-eznc-2.6.7.orig/lib/jnpr/junos/device.py
+++ py-junos-eznc-2.6.7/lib/jnpr/junos/device.py
@@ -43,6 +43,11 @@ from jnpr.junos.exception import JSONLoa
from ncclient.operations.third_party.juniper.rpc import ExecuteRpc
import inspect
+# Python 3.11 compatibility
+# gh#Juniper/py-junos-eznc#1236
+if not hasattr(inspect, "getargspec"):
+ inspect.getargspec = inspect.getfullargspec
+
if sys.version_info.major >= 3:
NCCLIENT_FILTER_XML = len(inspect.signature(ExecuteRpc.request).parameters) == 3
else:
Index: py-junos-eznc-2.6.7/lib/jnpr/junos/utils/scp.py
===================================================================
--- py-junos-eznc-2.6.7.orig/lib/jnpr/junos/utils/scp.py
+++ py-junos-eznc-2.6.7/lib/jnpr/junos/utils/scp.py
@@ -1,6 +1,11 @@
from __future__ import absolute_import
import inspect
+# Python 3.11 compatibility
+# gh#Juniper/py-junos-eznc#1236
+if not hasattr(inspect, "getargspec"):
+ inspect.getargspec = inspect.getfullargspec
+
from scp import SCPClient
from jnpr.junos.utils.ssh_client import open_ssh_client