From b8400635e0c9d5fae3c350405059014e1811c4ae Mon Sep 17 00:00:00 2001 From: SOHAN TIRPUDE Date: Tue, 26 Nov 2024 17:17:15 +0530 Subject: [PATCH] Set session wide SSL verification to False for NXOS --- src/rest/connector/libs/nxos/implementation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rest/connector/libs/nxos/implementation.py b/src/rest/connector/libs/nxos/implementation.py index e1ccbfd..53b537e 100644 --- a/src/rest/connector/libs/nxos/implementation.py +++ b/src/rest/connector/libs/nxos/implementation.py @@ -168,7 +168,8 @@ def connect(self, timeout=30, port=443, protocol='https', retries=3, retry_wait= try: # Connect to the device via requests if protocol == 'https': - response = self.session.post(login_url, data=_data, timeout=timeout, verify=False) + self.session.verify = False + response = self.session.post(login_url, data=_data, timeout=timeout) else: response = self.session.post(login_url, data=_data, timeout=timeout) break