Make it napalm 5 compliant (#92)

* use netmiko_args

* Add changes for 4.1.0 (#89)

* Update requirements.txt

* Typpo in requirements

* _send_command has only two parameters

* Adapt to stricter Unit tests

---------

Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* Remove s350_base_interfaces custom map - it is allready in napalm base

* Adapt Unit tests to canonical_interface_name()

* Add format parameter to get_config()

* Add badges

---------

Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>
This commit is contained in:
authored and GitHub committed 2024-04-22 16:08:58 +02:00
1 parent 1efdaaf26b
commit d76fa4cd46
2 files changed
+11 -4

No files matched your search

+4 -3
View File
@@ -3,11 +3,12 @@
NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG3xx, SG5xx, CBS35x). NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG3xx, SG5xx, CBS35x).
## Status ## Status
Master: ![Build](https://github.com/napalm-automation-community/napalm-s350/workflows/Test%20before%20push/badge.svg?branch=master&event=push)
Develop: ![Build](https://github.com/napalm-automation-community/napalm-s350/workflows/Test%20before%20push/badge.svg?branch=develop&event=push) Master: [![Thorough Test](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml/badge.svg?branch=master)](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml)
PyPi: [![Upload](https://github.com/napalm-automation-community/napalm-s350/workflows/Upload%20Python%20Package%20to%20PyPi.org/badge.svg)](https://github.com/napalm-automation-community/napalm-s350/actions?query=workflow%3A%22Upload+Python+Package+to+PyPi.org%22) Develop: [![Thorough Test](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml/badge.svg?branch=develop)](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml)
PyPi.org: [![Publish To PyPi.org](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/PublishToPIP.yml/badge.svg?branch=master)](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/PublishToPIP.yml)
## Requirements ## Requirements
+7 -1
View File
@@ -157,7 +157,13 @@ class S350Driver(NetworkDriver):
return arp_table return arp_table
def get_config(self, retrieve="all", full=False, sanitized=False): def get_config(
self,
retrieve="all",
full=False,
sanitized=False,
format: str = "text",
):
""" """
get_config for S350. Since this firmware doesn't support a candidate get_config for S350. Since this firmware doesn't support a candidate
configuration we leave it empty. configuration we leave it empty.