diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index e87bc18..f40c08c 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v2 diff --git a/src/rest/connector/libs/iosxe/implementation.py b/src/rest/connector/libs/iosxe/implementation.py index 843c2d2..4bba2ab 100644 --- a/src/rest/connector/libs/iosxe/implementation.py +++ b/src/rest/connector/libs/iosxe/implementation.py @@ -96,6 +96,7 @@ def connect(self, log.debug("Timeout: %s" % timeout) self.content_type = default_content_type + self.verify = self.connection_info.get('verify', True) # support sshtunnel if 'sshtunnel' in self.connection_info: try: @@ -136,6 +137,7 @@ def connect(self, self.session = requests.Session() self.session.auth = (username, password) + self.session.verify = self.verify header = 'application/yang-data+{fmt}' @@ -150,7 +152,7 @@ def connect(self, # Connect to the device via requests response = self.session.get( - login_url, proxies=self.proxies, timeout=timeout, verify=False) + login_url, proxies=self.proxies, timeout=timeout) output = response.text log.debug("Response: {c} {r}, headers: {h}, payload {p}".format( c=response.status_code,