15
0
Files
python-junos-eznc/python-311.patch
Daniel Garcia a666ed656d - Update to 2.7.0:
- Support added for Python 3.10 and above version.
- 2.6.8:
  - Introduced optional argument routing instance for fs.cp() API
  - Introduced optional argument member_id for installation of pkg on
    specific member id of EX-VC
  - Changed the VlanTable field name to vlan-name and BfdSessionTable
    field name to client-name #423
  - Fixed the port details in StartShell to use the port from Device
    object instead of default Port 22 #573
  - Fixed the sw.install to use Windows file path for package copy
    #1206
  - Fixed the sw.install to install the vc_master after the other
    vc_members gets installed for EX-3400 where unlink is set by
    default #1247
  - Removed Unused Dependency: Netaddr #1257
  - Fixed "object": version_info(re_version) emits ValueError: invalid
    literal for int() with base 10: '17-EVO' for EVO version
    X50.17-EVO#1264
- Drop python-junos-eznc-remove-nose.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-junos-eznc?expand=0&rev=28
2024-02-12 11:03:19 +00:00

34 lines
1.2 KiB
Diff

Index: py-junos-eznc-2.7.0/lib/jnpr/junos/device.py
===================================================================
--- py-junos-eznc-2.7.0.orig/lib/jnpr/junos/device.py
+++ py-junos-eznc-2.7.0/lib/jnpr/junos/device.py
@@ -43,6 +43,12 @@ 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[0] >= 3:
NCCLIENT_FILTER_XML = len(inspect.signature(ExecuteRpc.request).parameters) == 3
else:
Index: py-junos-eznc-2.7.0/lib/jnpr/junos/utils/scp.py
===================================================================
--- py-junos-eznc-2.7.0.orig/lib/jnpr/junos/utils/scp.py
+++ py-junos-eznc-2.7.0/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