From d76fa4cd46aa3a87b659553da7c9bce5c7c91924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Kl=C3=ADma?= Date: Mon, 22 Apr 2024 16:08:58 +0200 Subject: [PATCH] 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 * 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 Co-authored-by: Anton Gridnev --- README.md | 7 ++++--- napalm_s350/s350.py | 8 +++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 760050b..446614b 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,12 @@ NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG3xx, SG5xx, CBS35x). ## 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 diff --git a/napalm_s350/s350.py b/napalm_s350/s350.py index 9da78d9..59d9f3b 100644 --- a/napalm_s350/s350.py +++ b/napalm_s350/s350.py @@ -157,7 +157,13 @@ class S350Driver(NetworkDriver): 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 configuration we leave it empty.