Skip to content

Commit 6ed6d58

Browse files
authored
update pyats (#71)
* update pyats
1 parent 43d0e29 commit 6ed6d58

File tree

4 files changed

+1776
-383
lines changed

4 files changed

+1776
-383
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
- Fixed a problem where the backup task might fail with a "KeyError: 'label'"
44
- Migrated CLI interface from argparse to click library
5+
- Bump pyats version to 25.1
6+
- Bump minimal python version to 3.9.2 due to https://github.com/pyca/cryptography/pull/12045
57

68
# Catalyst SD-WAN Lab 2.0.14 [Aug 2, 2024]
79

catalyst_sdwan_lab/cli.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,20 @@ def cli(
9595
ctx.obj["LOGLEVEL"] = loglevel
9696
log = logging.getLogger(__name__)
9797
log.setLevel(loglevel)
98-
logger = logging.getLogger("virl2_client.virl2_client")
99-
logger.addFilter(
98+
virl2_client_logger = logging.getLogger("virl2_client.virl2_client")
99+
virl2_client_logger.addFilter(
100100
lambda record: "SSL Verification disabled" not in record.getMessage()
101101
)
102+
pyats_logger = logging.getLogger("pyats.utils.fileutils.bases.fileutils")
103+
pyats_logger.addFilter(
104+
lambda record: not any(
105+
msg in record.getMessage()
106+
for msg in [
107+
"Could not find details in testbed for server terminal_server.",
108+
"No details found in testbed for hostname terminal_server.",
109+
]
110+
)
111+
)
102112
logging.basicConfig(format="%(levelname)s - %(message)s")
103113
urllib3.disable_warnings(InsecureRequestWarning)
104114

0 commit comments

Comments
 (0)