From 72d7bbbbc04b78a36a9cf02ef07def3c3d3c5538 Mon Sep 17 00:00:00 2001 From: James Whale Date: Wed, 11 May 2022 18:03:43 +0100 Subject: [PATCH 1/3] changed version to 0.4.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b6484ca..fb0bb89 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="librenms-handler", - version="0.3.2", + version="0.4.0", author="James Whale", author_email="james@james-whale.com", description="A Python library to interact with the LibreNMS API (v0)", From be84d6c6ad66805e1762de921c3bb4231c2caa24 Mon Sep 17 00:00:00 2001 From: James Whale Date: Wed, 11 May 2022 18:16:44 +0100 Subject: [PATCH 2/3] simplified list_fdb --- src/librenms_handler/switching/switching.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/librenms_handler/switching/switching.py b/src/librenms_handler/switching/switching.py index 4bd249f..4bffcbc 100644 --- a/src/librenms_handler/switching/switching.py +++ b/src/librenms_handler/switching/switching.py @@ -62,8 +62,7 @@ def list_fdb(self, mac: str = None): :param mac: is the specific MAC address you would like to query """ - if mac: - return get( - f"{self.url}/fdb/{mac}", headers=self.headers, verify=self.verify - ) - return get(f"{self.url}/fdb", headers=self.headers, verify=self.verify) + if not mac: + mac = '' + + return get(f"{self.url}/fdb/{mac}", headers=self.headers, verify=self.verify) From 1b47e9275ae25d302f04aac55dfcd9fedfe30eb6 Mon Sep 17 00:00:00 2001 From: James Whale Date: Wed, 11 May 2022 18:17:04 +0100 Subject: [PATCH 3/3] updated endpoints table --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 77cc604..1092faf 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Each function will have its own issue tracked, so you can search to see if imple | [Ports](https://github.com/WhaleJ84/librenms_handler/projects/3) | False | | [Routing](https://github.com/WhaleJ84/librenms_handler/projects/6) | False | | [Services](https://github.com/WhaleJ84/librenms_handler/projects/11) | False | -| [Switching](https://github.com/WhaleJ84/librenms_handler/projects/7) | False | +| [Switching](https://github.com/WhaleJ84/librenms_handler/projects/7) | True | | [System](https://github.com/WhaleJ84/librenms_handler/projects/12) | True | ## Collaboration