forked from pool/python-junos-eznc
* Enhancements done
+ Introduced bind_addr parameter in Device() API #1279
+ Introduced vmhost paramater in dev.facts #1333
+ Introduced hostkey_verify paramater in Device() API #1321
* Bugs Fixed
+ Fixed the missing key to EthernetSwitchingTable #1228
+ Fixed error handling on HelloHandler #1339
+ Fixed the version check #1338
+ Removed Google and Stackflow link from the ReadME #1337
+ Fixed SystemStorageTable tables and views to handles multiple
routing-engine file system storage information.#1244
+ Fixed Console' object has no attribute '_use_filter' error when
executed Table/View script #1335
+ Fixed cli function to get full RPC response #1315
+ Fixed sw.install to set no_validate option when validate=False for
NSSU and ISSU upgrade #1323
+ Fixed UT framework mock to use built-in unittest.mock #1311
+ Fixed specific VC member reboot handling #1308 #1310
+ Supported latest paramiko version which supports aes128-gcm and
aes256-gcm cipher
- Dropped patches:
* python-311.patch
* python-junos-eznc-no-mock.patch
- Refreshed all other patches.
- Switch to pyproject macros.
- Use nose2 to run the testsuite, like upstream.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-junos-eznc?expand=0&rev=32
34 lines
1.2 KiB
Diff
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
|
|
|