From a8e26bcf82a6305e509358e748b72219ca91dc55 Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Thu, 23 Nov 2023 10:43:59 +0530 Subject: [PATCH 01/34] Fix for issue #1245 --- lib/jnpr/junos/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jnpr/junos/utils/config.py b/lib/jnpr/junos/utils/config.py index d53baf2b7..619595075 100644 --- a/lib/jnpr/junos/utils/config.py +++ b/lib/jnpr/junos/utils/config.py @@ -495,7 +495,7 @@ def _lset_from_rexp(rpc): elif re.search(r"^\s*\{", rpc) and re.search(r".*}\s*$", rpc): kvargs["format"] = "json" - def try_load(rpc_contents, rpc_xattrs, ignore_warning=False): + def try_load(rpc_contents, rpc_xattrs, ignore_warning=ignore_warning): try: got = self.rpc.load_config( rpc_contents, ignore_warning=ignore_warning, **rpc_xattrs From bfc58a910852be57a43ef90218aef0a45c3ad079 Mon Sep 17 00:00:00 2001 From: Alexandre L Date: Mon, 3 Jun 2024 18:41:55 +0200 Subject: [PATCH 02/34] Fix Python 3.12: `SyntaxWarning: invalid escape sequence '\s'` (closes #1312) --- lib/jnpr/junos/transport/tty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jnpr/junos/transport/tty.py b/lib/jnpr/junos/transport/tty.py index 0de9338d0..34ae5ff94 100644 --- a/lib/jnpr/junos/transport/tty.py +++ b/lib/jnpr/junos/transport/tty.py @@ -52,7 +52,7 @@ class Terminal(object): "(?Pogin incorrect)", r"(?P\s*)", r"(?P%|#|(~\$)\s*$)", - '(?P[^\\-"]>\s*$)', + r'(?P[^\-"]>\s*$)', r"(?P