diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 988766b..f2ce5cb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: strategy: max-parallel: 5 matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] # in line with Napalm base project steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/napalm_srl/srl.py b/napalm_srl/srl.py index 5ab832c..b9e92e2 100644 --- a/napalm_srl/srl.py +++ b/napalm_srl/srl.py @@ -1675,7 +1675,13 @@ def get_snmp_information(self): # } - def get_config(self, retrieve='all', full=False, sanitized=False): + def get_config( + self, + retrieve: str = "all", + full: bool = False, + sanitized: bool = False, + format: str = "text", # This driver supports 'cli' for CLI, else default 'json' + ): """ :param retrieve: Which configuration type you want to populate, default is all of them. The rest will be set to “”. :param full:Retrieve all the configuration. For instance, on ios, “sh run all”. @@ -1691,7 +1697,7 @@ def get_config(self, retrieve='all', full=False, sanitized=False): "startup": "" } - if self.running_format == 'cli': + if self.running_format == 'cli' or format == 'cli': if sanitized: raise NotImplementedError( "sanitized=True is not implemented with CLI format") diff --git a/pyproject.toml b/pyproject.toml index a155c1d..04eb2a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,16 +7,16 @@ name = "napalm-srl" version="1.0.4" description="Network Automation and Programmability Abstraction Layer driver for Nokia SR Linux" readme = "README.md" -requires-python = ">=3.7" +requires-python = ">=3.8" dynamic = [ "dependencies" ] classifiers = [ "Topic :: System :: Networking", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Natural Language :: English", ] authors = [ diff --git a/setup.py b/setup.py index c4567c7..c872be4 100644 --- a/setup.py +++ b/setup.py @@ -17,17 +17,17 @@ classifiers=[ 'Topic :: Utilities', "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Natural Language :: English", 'Operating System :: POSIX :: Linux', 'Operating System :: MacOS', ], url="https://github.com/napalm-automation-community/napalm-srlinux", - python_requires=">=3.7", + python_requires=">=3.8", include_package_data=True, install_requires=reqs, )