Skip to content

Commit

Permalink
Merge pull request #114 from WhaleJ84/dev
Browse files Browse the repository at this point in the history
cleanup for 0.4.0
  • Loading branch information
WhaleJ84 authored May 11, 2022
2 parents 0f2f035 + 1b47e92 commit 4266986
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="librenms-handler",
version="0.3.2",
version="0.4.0",
author="James Whale",
author_email="[email protected]",
description="A Python library to interact with the LibreNMS API (v0)",
Expand Down
9 changes: 4 additions & 5 deletions src/librenms_handler/switching/switching.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4266986

Please sign in to comment.